<?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: Can't get the xml from my webserver</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/cant-get-the-xml-from-my-webserver</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/cant-get-the-xml-from-my-webserver/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Can't get the xml from my webserver</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cant-get-the-xml-from-my-webserver#p985</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cant-get-the-xml-from-my-webserver#p985</guid>
        	        	<description><![CDATA[<p>Use loadError(xhr,st,err) event to determine if you have error from</p>
<p>the server. More information you can find in this forum in topic Releases</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 05 Jul 2008 03:05:32 +0300</pubDate>
        </item>
        <item>
        	<title>murdoc on Can't get the xml from my webserver</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cant-get-the-xml-from-my-webserver#p982</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cant-get-the-xml-from-my-webserver#p982</guid>
        	        	<description><![CDATA[<p>I have a web server set up and running on my machine, and I can post an XML document to the server and process the response from the server(which are also another XML document).</p>
<p>I enter the address as &#8220;server ip:13310/stat/tasks&#8221;, minus the quotes,and 13310 is the porter number.then I can get the XML data in browser. <br />but When I use the &#8220;jqgrid&#8221;,I can&#39;t perform the XML data to the grid with the following code.</p>
<p>=====================================</p>
<p>jQuery(&#8221;#list19&#8243;).jqGrid({&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160; &#160;url: &#39;<a href="http://127.0.0.1:13310/stat/tasks&#038;#39" rel="nofollow" target="_blank"><a href="http://127.0.0.1:13310/stat/ta" rel="nofollow">http://127.0.0.1:13310/stat/ta</a>.....s&#038;#39</a>;,<br />&#160;datatype: &#8220;xml&#8221;,<br />&#160;&#160; &#160;colNames:["TASK_ID","START_TIME", "END_TIME", "ENABLE","DESC","STATUS"],<br />&#160;&#160; &#160;colModel:[<br />&#160;&#160; &#160;&#160;{name:"TASK_ID",index:"ID", width:80, xmlmap:"TASK_ID"},<br />&#160;&#160; &#160;&#160;{name:"TASK_START_TIME",index:"START_TIME", width:180,align:"right",xmlmap:"TASK_START_TIME",sorttype:"date"},<br />&#160;&#160; &#160;&#160;{name:"TASK_END_TIME",index:"END_TIME", width:180, align:"right",xmlmap:"TASK_END_TIME", sorttype:"date"},<br />&#160;&#160; &#160;&#160;{name:"TASK_ENABLE",index:"ENABLE", width:130,xmlmap:"TASK_ENABLE"},<br />&#160;&#160; &#160;&#160;{name:"TASK_DESC",index:"DESC", width:100, xmlmap:"TASK_DESC"},<br />&#160;&#160; &#160;&#160;{name:"TASK_STATUS",index:"STATUS", width:100, xmlmap:"TASK_STATUS"}<br />&#160;&#160; &#160;],<br />&#160;&#160; height:250,<br />&#160;&#160; &#160;rowNum:10,<br />&#160;&#160; &#160;rowList:[10,20,30],<br />&#160;&#160; &#160;imgpath: gridimgpath,<br />&#160;&#160;&#160; viewrecords: true,<br />&#160;loadonce: true,<br />&#160;xmlReader: {<br />&#160;&#160;&#160;root : &#8220;TaskList&#8221;,<br />&#160;&#160;&#160;row: &#8220;Task&#8221;,<br />&#160;&#160;&#160;repeatitems: false,<br />&#160;&#160;&#160;id: &#8220;TASK_ID&#8221;<br />&#160;},<br />&#160;caption: &#8220;TASK LIST&#8221;</p>
<p>});<br />==================================</p>
<p>but I put the XML document on my own localdisk,the program workwell,the code like this.</p>
<p>===================================</p>
<p>jQuery(&#8221;#list19&#8243;).jqGrid({&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160; &#160;url: &#39;tasks.xml&#39;,<br />&#160;datatype: &#8220;xml&#8221;,<br />&#160;&#160; &#160;colNames:["TASK_ID","START_TIME", "END_TIME", "ENABLE","DESC","STATUS"],<br />&#160;&#160; &#160;colModel:[<br />&#160;&#160; &#160;&#160;{name:"TASK_ID",index:"ID", width:80, xmlmap:"TASK_ID"},<br />&#160;&#160; &#160;&#160;{name:"TASK_START_TIME",index:"START_TIME", width:180,align:"right",xmlmap:"TASK_START_TIME",sorttype:"date"},<br />&#160;&#160; &#160;&#160;{name:"TASK_END_TIME",index:"END_TIME", width:180, align:"right",xmlmap:"TASK_END_TIME", sorttype:"date"},<br />&#160;&#160; &#160;&#160;{name:"TASK_ENABLE",index:"ENABLE", width:130,xmlmap:"TASK_ENABLE"},<br />&#160;&#160; &#160;&#160;{name:"TASK_DESC",index:"DESC", width:100, xmlmap:"TASK_DESC"},<br />&#160;&#160; &#160;&#160;{name:"TASK_STATUS",index:"STATUS", width:100, xmlmap:"TASK_STATUS"}<br />&#160;&#160; &#160;],<br />&#160;&#160; height:250,<br />&#160;&#160; &#160;rowNum:10,<br />&#160;&#160; &#160;rowList:[10,20,30],<br />&#160;&#160; &#160;imgpath: gridimgpath,<br />&#160;&#160;&#160; viewrecords: true,<br />&#160;loadonce: true,<br />&#160;xmlReader: {<br />&#160;&#160;&#160;root : &#8220;TaskList&#8221;,<br />&#160;&#160;&#160;row: &#8220;Task&#8221;,<br />&#160;&#160;&#160;repeatitems: false,<br />&#160;&#160;&#160;id: &#8220;TASK_ID&#8221;<br />&#160;},<br />&#160;caption: &#8220;TASK LIST&#8221;</p>
<p>});</p>
]]></description>
        	        	<pubDate>Thu, 03 Jul 2008 20:59:50 +0300</pubDate>
        </item>
</channel>
</rss>