<?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: Parenthesis after function name causing error in IE</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/parenthesis-after-function-name-causing-error-in-ie</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/parenthesis-after-function-name-causing-error-in-ie/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>markw65 on Parenthesis after function name causing error in IE</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/parenthesis-after-function-name-causing-error-in-ie#p10352</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/parenthesis-after-function-name-causing-error-in-ie#p10352</guid>
        	        	<description><![CDATA[<p><span style="font-size: x-small;">the setGridParam fails in a similar way.&#160; if i use:</span></p>
</p>
<p>setGridParam({ datatype: <span style="font-size: x-small;">getFromFunction</span>(data.dataobject), page: 1 })</p>
<p>I get the same error in IE, and data fails to load correctly&#8230; no problem in Firefox.</p>
<p>am I missing something?</p>
<hr />
<p>You cant specify a parameter like that - think about it for a while: thats a function call. So it calls the function, and tries to use the return value as the datatype...</p>
</p>
<p>If you need to pass a parameter to your function, you will need to use a wrapper function:</p>
<p>setGridParam({ datatype: <span style="font-size: x-small;">function() {return getFromFunction</span>(data.dataobject)}, page: 1 })</p>
</p>
<p>But you also need to be aware of scoping issues...</p>
</p>
<p>Mark</p></p>
]]></description>
        	        	<pubDate>Fri, 02 Oct 2009 15:50:07 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Parenthesis after function name causing error in IE</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/parenthesis-after-function-name-causing-error-in-ie#p10344</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/parenthesis-after-function-name-causing-error-in-ie#p10344</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Please the code?</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 02 Oct 2009 10:32:28 +0300</pubDate>
        </item>
        <item>
        	<title>minjaeapa on Parenthesis after function name causing error in IE</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/parenthesis-after-function-name-causing-error-in-ie#p10265</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/parenthesis-after-function-name-causing-error-in-ie#p10265</guid>
        	        	<description><![CDATA[<p>if i use a datatype of function for a grid, example:</p>
</p>
<p><span style="font-size: x-small;">...<br />jQuery("#list").jqGrid({<br />datatype: getFromFunction,<br />...</span></p>
<p>i find that anytime i have to specify a parameter for the function, or if i follow the function name&#160;with (), i get an error in Internet Explorer, and the grids dont always work.&#160; Firefox always works.&#160; The javascript error is always:</p>
<p>Line: 13</p>
<p>Char: 7209</p>
<p>Error: Object Required</p>
<p>Code: 0&#160;</p>
<p><span style="font-size: x-small;">the setGridParam fails in a similar way.&#160; if i use:</span></p>
<p><span style="font-size: x-small;"></span></p>
<p>setGridParam({ datatype: <span style="font-size: x-small;">getFromFunction</span>(data.dataobject), page: 1 })</p>
<p>I get the same error in IE, and data fails to load correctly... no problem in Firefox.</p>
</p>
<p>am I missing something?</p></p>
]]></description>
        	        	<pubDate>Tue, 29 Sep 2009 16:11:08 +0300</pubDate>
        </item>
</channel>
</rss>