<?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: Regarding the implementation of function jqGridInclude()</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/regarding-the-implementation-of-function-jqgridinclude</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/discussion/regarding-the-implementation-of-function-jqgridinclude/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Regarding the implementation of function jqGridInclude()</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/regarding-the-implementation-of-function-jqgridinclude#p4660</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/regarding-the-implementation-of-function-jqgridinclude#p4660</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Yes the loader makes some problems and my plans are to change this behaviour in next release. The only problem browsers will be Safari and google Chrome, but I hope to find solution for this.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 17 Feb 2009 01:21:18 +0200</pubDate>
        </item>
        <item>
        	<title>mjcoder on Regarding the implementation of function jqGridInclude()</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/regarding-the-implementation-of-function-jqgridinclude#p4652</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/regarding-the-implementation-of-function-jqgridinclude#p4652</guid>
        	        	<description><![CDATA[<p>Tony, any reason why you exclude Firefox from using the jQuery.ajax loader to bring in the jqGrid includes?:</p>
<p>&#160;&#160;&#160;&#160; 32&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if(jQuery.browser.safari &#124;&#124; jQuery.browser.msie ) {<br />&#160;&#160;&#160;&#160; 33&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery.ajax({url:filename,dataType:&#39;script&#39;, async:false, cache: true});<br />&#160;&#160;&#160;&#160; 34&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } else {<br />&#160;&#160;&#160;&#160; 35&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; IncludeJavaScript(filename);<br />&#160;&#160;&#160;&#160; 36&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>I was not able to get Firefox to load the grid when IncludeJavaScript() was used.&#160; The reason being is I am using jQuery.ajax to bring in jquery.jqgrid.js.&#160;</p>
<p>IncludeJavaScript() only works with Firefox when I statically include the jquery.jqgrid.js file with script tags.</p>
<p>Firefox seems to use jQuery.ajax() w/o any issue.</p>
]]></description>
        	        	<pubDate>Mon, 16 Feb 2009 17:39:56 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Regarding the implementation of function jqGridInclude()</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/regarding-the-implementation-of-function-jqgridinclude#p4274</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/regarding-the-implementation-of-function-jqgridinclude#p4274</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You are absolutley right. During all releases of jqGrid I have try to implement diffrent ways to make this work. None of them was cross browser. If you look into this forum you will see that many users reported problems loading the modules in IE. Until now this is the only solution that work in FF,IE, Opera and Safari.</p>
<p>If you have time to google this problem you will see that currently there is no cross browser solution of dynamic loading the javascript.</p>
<p>At last there are some solutions, but the size of code is too big.</p>
<p>Also, I will be glad to see a really cross browser solution that do not have the current limitations of the jqGrid loader.</p>
<p>Thank you</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 31 Jan 2009 05:22:20 +0200</pubDate>
        </item>
        <item>
        	<title>milestogo80 on Regarding the implementation of function jqGridInclude()</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/regarding-the-implementation-of-function-jqgridinclude#p4233</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/regarding-the-implementation-of-function-jqgridinclude#p4233</guid>
        	        	<description><![CDATA[<p>I am facing a difficult problem with JqGrid . I know it&#39;s not a bug as such. But trying to find out if there is any solution. Let me explain the problem.</p>
<p>My JQuery &#160;js files are hosted in a webserver , say, <a href="http://abc.com" rel="nofollow" target="_blank">http://abc.com</a> . Now I have an html page hosted in a different web server , say , <a href="http://xyz.com" rel="nofollow" target="_blank">http://xyz.com</a> . I have set base href to <a href="http://abc.com" rel="nofollow" target="_blank">http://abc.com</a> and included the main jqgrid scripts like below</p>
</p>
<p>&#60;script src=&#8221;/jquery/plugins/jqgrid/js/jquery.jqGrid.js&#8221;</p>
<p>&#160;&#160; &#160; &#160; &#160;type=&#8221;text/javascript&#8221;&#62;&#60;/script&#62;</p>
<p>&#60;script src=&#8221;/jquery/plugins/jqgrid/js/jqModal.js&#8221;</p>
<p>&#160;&#160; &#160; &#160; &#160;type=&#8221;text/javascript&#8221;&#62;&#60;/script&#62;</p>
<p>&#60;script src=&#8221;/jquery/plugins/jqgrid/js/jqDnR.js&#8221;</p>
<p>&#160;&#160; &#160; &#160; &#160;type=&#8221;text/javascript&#8221;&#62;&#60;/script&#62;</p>
</p>
<p>I see with this approach , js script was loaded fine and it tried to execute the function jqGridInclude() .Then, it tried&#160;to call  some js files from the path /jquery/plugins/jqgrid/js . But in IE it&#160;failed  to include them whereas in firefox it was able to load those files.Upon&#160;closer inspection into the function I found that jqGridInclude() has the&#160;following piece of code which is causing the issue in IE.&#160;</p>
<p>if(jQuery.browser.safari &#124;&#124; jQuery.browser.msie ) {  </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;jQuery.ajax({url:filename,dataType:&#39;script&#39;, async:false,  <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; cache: true}); <br />} else {  </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;IncludeJavaScript(filename); <br />} </p>
<p>So,in case of IE  , it tried to make the ajax call by referring to the <br />relative path and it  failed.But in firefox it executed the function <br />IncludeJavaScript() which is  putting a script tag dynamically with href set to <br />a relative path which is  working since we have base href set to <br /><a href="http://isd.us.oracle.com/" target="_blank">http://abc.com</a>&#160;, the webserver hosting the js files. Code from IncludeJavaScript function is shown below.  </p>
<p>&#160;&#160;&#160;&#160;function IncludeJavaScript(jsFile) <br />&#160;&#160;&#160;&#160;{ <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;var oHead =  document.getElementsByTagName(&#39;head&#39;)[0]; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;var oScript =  document.createElement(&#39;script&#39;); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;oScript.type = &#39;text/javascript&#39;;  <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;oScript.src = jsFile; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;oHead.appendChild(oScript);  <br />&#160;&#160;&#160;&#160;}; </p>
<p>Please let me know</p>
<p>i)if there is any solution for this scenario.</p>
<p>ii)Also,could anybody please tell me why the jqGrid&#39;s approach for loading the internal js files differs from one browser to another.just inquisitive.</p>
]]></description>
        	        	<pubDate>Thu, 29 Jan 2009 15:01:00 +0200</pubDate>
        </item>
</channel>
</rss>