<?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: userdata and alert</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/userdata-and-alert</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/userdata-and-alert/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on userdata and alert</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/userdata-and-alert#p7922</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/userdata-and-alert#p7922</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>If you use php maybe you should check how you obtain values - when using GET a $_GET array is used, when used POST a $_POST array is used - if you do not want to have problems you maybe need to use $_REQUEST.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 20 Jul 2009 11:37:25 +0300</pubDate>
        </item>
        <item>
        	<title>scavanger on userdata and alert</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/userdata-and-alert#p7896</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/userdata-and-alert#p7896</guid>
        	        	<description><![CDATA[<p>Hello again,</p>
<p>I managed to get the userdata to show up in the alert, however it looks like</p>
<p>only the userdata response from the "GET" is being displayed in the alert.</p>
<p>The Reponse for the "POST" is failing to show up.</p>
</p>
<p>Please does anyone have any suggestions?</p>
</p>
<p>Thank you</p>
]]></description>
        	        	<pubDate>Mon, 20 Jul 2009 08:56:14 +0300</pubDate>
        </item>
        <item>
        	<title>scavanger on userdata and alert</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/userdata-and-alert#p7879</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/userdata-and-alert#p7879</guid>
        	        	<description><![CDATA[<p>since I couldn&#39;t make it not quote, I rewrote it</p>
</p>
<p>Hi Tony and anyone that can help,</p>
<p>I am using 3.5 beta, JSON as my datatype, and using the userData to</p>
<p>return Error messages.&#160; According to FireBug, I am getting a response of:</p>
<p>{&#8221;USERDATA&#8221;:{&#8221;MSG&#8221;:&#8221;Duplicate Account, Please try a different</p>
<p>Account Name.&#8221;,&#8221;TYPE&#8221;:&#8221;Error&#8221;}}</p>
</p>
<p>I am trying to create an alert using javascript to display these messages</p>
<p>and have added:</p>
<p>afterSubmit:testThis</p>
<p>to nav.</p>
<p>I have built the function around the method getGridParam(&#39;userData&#39;)</p>
<p>According to the documentation is should return something like:</p>
<p>userData = {&#8221;MSG&#8221;:&#8221;Duplicate Account, Please try a different Account</p>
<p>Name.&#8221;,&#8221;TYPE&#8221;:&#8221;Error&#8221;} correct?</p>
</p>
<p>now when I create this function:</p>
<p>function testThis(){&#160;</p>
<p>&#160;&#160; var recorddata = $(&#39;#AccountList&#39;).getGridParam(&#39;userData&#39;);&#160;</p>
<p>&#160;&#160; alert(recorddata);</p>
<p>}&#160;</p>
</p>
<p>it returns an alert telling me there is an object there, but when i try this:</p>
<p>function testThis(){&#160;</p>
<p>&#160;&#160; var recorddata = $(&#39;#AccountList&#39;).getGridParam(&#39;userData&#39;);&#160;</p>
<p>&#160;&#160; alert(recorddata.length);&#160;</p>
<p>&#160;&#160; alert(recorddata.MSG);&#160;</p>
<p>&#160;&#160; alert(recorddata.USERDATA);&#160;</p>
<p>&#160;&#160; alert(recorddata.TYPE);</p>
<p>}&#160;</p>
<p>It returns nothing but undefined across the board.</p>
<p>I have also tried running the variable recorddata through a print_r setup</p>
<p>for javascript that takes objects and arrays and represents them textually</p>
<p>and it is showing up with nothing, it is just blank.</p>
</p>
<p>Somehow, i am loosing the object or it isn&#39;t being passed right.&#160;</p>
<p>Could there be a problem with getGridParam(&#39;userData&#39;)?</p>
</p>
<p>Any and all help would be very much appriecated and if you need to see</p>
<p>more of my code let me know.</p>
<p>Thanks again.</p>
]]></description>
        	        	<pubDate>Thu, 16 Jul 2009 17:39:39 +0300</pubDate>
        </item>
        <item>
        	<title>scavanger on userdata and alert</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/userdata-and-alert#p7877</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/userdata-and-alert#p7877</guid>
        	        	<description><![CDATA[<p>okay, i have no idea what happen to my post, but i can&#39;t fix it.</p>
</p>
<p>Hi Tony and anyone that can help,</p>
<p>I am using 3.5 beta, JSON as my datatype, and using the userData to return Error messages.&#160; According to FireBug, I am getting a response of:</p>
<pre>{"USERDATA":{"MSG":"Duplicate Account, Please try a different Account Name.",<br />"TYPE":"Error"}}<br /><br />I am trying to create an alert using javascript to display these messages and have added:<br />afterSubmit:testThis<br />to nav.<br /><br />I have built the function around the method getGridParam(&#39;userData&#39;)<br />According to the documentation is should return something like:<br />userData = <br />{"MSG":"Duplicate Account, Please try a different Account Name.",<br />"TYPE":"Error"} correct?<br /><br />now when I create this function:<br /><br />function testThis()<br />{<br />	var recorddata = $(&#39;#AccountList&#39;).getGridParam(&#39;userData&#39;);<br />	alert(recorddata);<br />}	<br /><br />it returns an alert telling me there is an object there, but when i try this:<br /><br />function testThis()<br />{<br />	var recorddata = $(&#39;#AccountList&#39;).getGridParam(&#39;userData&#39;);<br />	alert(recorddata.length);<br />	alert(recorddata.MSG);<br />	alert(recorddata.USERDATA);<br />	alert(recorddata.TYPE);<br />}	<br /><br />It returns nothing but undefined across the board.<br /><br />I have also tried running the variable recorddata through a print_r setup for javascript that takes objects and arrays and <br />represents them textually and it is showing up with nothing, it is just blank.<br />Somehow, i am loosing the object or it isn&#39;t being passed right.  Could there be a problem with getGridParam(&#39;userData&#39;)?<br />Any and all help would be very much appriecated and if you need to see more of my code let me know.<br /><br />Thanks again.</pre>
]]></description>
        	        	<pubDate>Thu, 16 Jul 2009 16:44:39 +0300</pubDate>
        </item>
        <item>
        	<title>tony on userdata and alert</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/userdata-and-alert#p7691</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/userdata-and-alert#p7691</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Maybe this will help.</p>
<p><a href="http://www.secondpersonplural.ca/jqgriddocs/_2ej16ksnu.htm" rel="nofollow" target="_blank"><a href="http://www.secondpersonplural" rel="nofollow">http://www.secondpersonplural</a>......16ksnu.htm</a></p>
]]></description>
        	        	<pubDate>Wed, 08 Jul 2009 05:22:24 +0300</pubDate>
        </item>
        <item>
        	<title>Lotte on userdata and alert</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/userdata-and-alert#p7630</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/userdata-and-alert#p7630</guid>
        	        	<description><![CDATA[<p>Hallo there,</p>
<p>I want to have a server side message an do it like this:</p>
<p>in the grid:</p>
<p>loadComplete:function(){var meldung = jQuery(&#39;#kundenstamm_ed&#39;).getGridParam(&#39;userdata&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(meldung); }</p>
<p>in php/xml:</p>
<p>if ( stristr($_SERVER["HTTP_ACCEPT"],&#8221;application/xhtml+xml&#8221;) ) {<br />header(&#8221;Content-type: application/xhtml+xml;charset=utf-8&#8243;); <br />} else {<br />header(&#8221;Content-type: text/xml;charset=utf-8&#8243;);<br />}<br />echo &#8220;&#60;?xml version=&#39;1.0&#39; encoding=&#39;utf-8&#39;?&#62;&#8221;;<br />echo &#8220;&#60;userdata&#62;Hello&#60;/userdata&#62;&#8221;;</p>
<p>but it doesn&#39;t work. Can somebody help?</p>
<p>Charlotte</p></p>
]]></description>
        	        	<pubDate>Thu, 02 Jul 2009 11:46:22 +0300</pubDate>
        </item>
</channel>
</rss>