<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: Passing string variables from within jqgrid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/passing-string-variables-from-within-jqgrid</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/passing-string-variables-from-within-jqgrid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>sagana on Passing string variables from within jqgrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/passing-string-variables-from-within-jqgrid#p9393</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/passing-string-variables-from-within-jqgrid#p9393</guid>
        	        	<description><![CDATA[<p>Sorry to trouble you. Solution found although I thought I had tried it before without success.</p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; var address = "&#39;"+ad1+&#39;,&#39;+ad2+&#39;,&#39;+suburb+&#39;,&#39;+town+&#39;,&#39;+state+&#39;,&#39;+country+"&#39;";</p></p>
]]></description>
        	        	<pubDate>Sat, 05 Sep 2009 19:39:28 +0300</pubDate>
        </item>
        <item>
        	<title>sagana on Passing string variables from within jqgrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/passing-string-variables-from-within-jqgrid#p9392</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/passing-string-variables-from-within-jqgrid#p9392</guid>
        	        	<description><![CDATA[<p>I do not know if this is a problem with my Javascript or specific to JqGrid. I am tring to pass a string variable, address, to a javascript function, mapad, from the loadComplete method of the grid. The address variable contains the relevant details, but I get syntax error with the code below and also if if have</p>
<p>&#160;mp = &#39;&#60;img src="../images/map.gif" title="Map" onclick="javascript:mapad(\\"&#39;+address+&#39;\\")" &#62;&#60;/ids&#62;&#39;;</p>
<p>but it works fine if I pass it just a number</p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; loadComplete: function(){ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var ids = jQuery("#adlist2").getDataIDs(); <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;for(var i=0;i&#60;ids.length;i++){ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var cl = ids[i]; <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var rowdata = $("#adlist2").getRowData(cl);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var ad1 = rowdata.ad1;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var ad2 = rowdata.ad2;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var suburb = rowdata.suburb;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var town = rowdata.town;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var state = rowdata.state;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var country = rowdata.country;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var address = ad1+&#39;,&#39;+ad2+&#39;,&#39;+suburb+&#39;,&#39;+town+&#39;,&#39;+state+&#39;,&#39;+country;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;be = &#39;&#60;img src="../images/edit.png" title="Edit" onclick="javascript:editad(&#39;+cl+&#39;)" &#62;&#60;/ids&#62;&#39;; <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;mp = &#39;&#60;img src="../images/map.gif" title="Map" onclick="javascript:mapad(&#39;+address+&#39;)" &#62;&#60;/ids&#62;&#39;;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;se = &#39;&#60;img src="../images/delete.png" title="Delete" onclick="javascript:delad(&#39;+cl+&#39;)" /&#62;&#39;; <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery("#adlist2").setRowData(ids[i],{act:be+&#39;&#38;nbsp;&#38;nbsp;&#38;nbsp;&#38;nbsp;&#39;+mp+&#39;&#38;nbsp;&#38;nbsp;&#38;nbsp;&#38;nbsp;&#39;+se}) <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;} <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}</p></p>
]]></description>
        	        	<pubDate>Sat, 05 Sep 2009 18:15:03 +0300</pubDate>
        </item>
</channel>
</rss>