<?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: Why i can't GET the xml from URL </title>
	<link>http://www.trirand.com/blog/?page_id=393/help/why-i-cant-get-the-xml-from-url</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/why-i-cant-get-the-xml-from-url/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>murdoc on Why i can't GET the xml from URL </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/why-i-cant-get-the-xml-from-url#p973</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/why-i-cant-get-the-xml-from-url#p973</guid>
        	        	<description><![CDATA[<p><span style="text-decoration: underline;"><span style="color: #810081;">I have a web server set up and running on my machine, and I can post an XML document to the server<br />and process the response from the server(which are also another XML document).</span></span></p>
<p><span style="text-decoration: underline;"><span style="color: #810081;">I enter the address as "server ip:13310/stat/tasks", minus the quotes,and 13310 is the porter number.<br />then I can get the XML data in browser. <br />but When I use the "jqgrid",I can&#39;t perform the XML data to the grid with the following code.</span></span></p>
<p><span style="text-decoration: underline;"><span style="color: #810081;">================================================================================================<br />jQuery("#list19").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: "xml",<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 : "TaskList",<br />&#160;&#160;&#160;row: "Task",<br />&#160;&#160;&#160;repeatitems: false,<br />&#160;&#160;&#160;id: "TASK_ID"<br />&#160;},<br />&#160;caption: "TASK LIST"</span></span></p>
<p><span style="text-decoration: underline;"><span style="color: #810081;">});<br />============================================================================================================</span></span></p>
<p><span style="text-decoration: underline;"></span></p>
<p><span style="text-decoration: underline;"></span></p>
<p><span style="text-decoration: underline;"><span style="color: #810081;">but I put the XML document on my own localdisk,the program work well,the code like this.<br />===============================================================================================================<br />jQuery("#list19").jqGrid({&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160; &#160;url: &#39;tasks.xml&#39;,<br />&#160;datatype: "xml",<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 : "TaskList",<br />&#160;&#160;&#160;row: "Task",<br />&#160;&#160;&#160;repeatitems: false,<br />&#160;&#160;&#160;id: "TASK_ID"<br />&#160;},<br />&#160;caption: "TASK LIST"</span></span></p>
<p><span style="text-decoration: underline;"><span style="color: #810081;">});</span></span></p>
<p><span style="text-decoration: underline;"></span></p>
<p><span style="text-decoration: underline;"><span style="color: #810081;"><br /></span></span><a href="http://down2.photops.com/soft/2007/12/zine/zine0801.rar" target="_blank"></a></p>
]]></description>
        	        	<pubDate>Wed, 02 Jul 2008 21:19:12 +0300</pubDate>
        </item>
        <item>
        	<title>Reg on Why i can't GET the xml from URL </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/why-i-cant-get-the-xml-from-url#p948</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/why-i-cant-get-the-xml-from-url#p948</guid>
        	        	<description><![CDATA[<p>Hi Murdoc,</p>
<p>If you are still having problems with reading your data, could you show us a portion of your xml file, please?</p>
<p>Reg</p>
]]></description>
        	        	<pubDate>Mon, 30 Jun 2008 09:52:10 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Why i can't GET the xml from URL </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/why-i-cant-get-the-xml-from-url#p939</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/why-i-cant-get-the-xml-from-url#p939</guid>
        	        	<description><![CDATA[<p>Check your xmlReader configuration again.</p>
<p>You can use inlineedit or formedit modules depending on your need - refer to docs and demos</p>
<p>You can get the grid data using the methods</p>
<p>getDataIDs - to grab all the ids of the grid - and then use</p>
<p>getRowData method to get the contents and put this in format what you want.</p>
]]></description>
        	        	<pubDate>Mon, 30 Jun 2008 03:25:19 +0300</pubDate>
        </item>
        <item>
        	<title>murdoc on Why i can't GET the xml from URL </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/why-i-cant-get-the-xml-from-url#p934</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/why-i-cant-get-the-xml-from-url#p934</guid>
        	        	<description><![CDATA[<p>And i&#160; want to set my grid editable.&#160; how can i make</p>
<p>the xml sting&#160; from the grid&#160; ,and how to&#160; post it to a URL.</p>
</p>
<p>regards</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; murdoc</p>
]]></description>
        	        	<pubDate>Mon, 30 Jun 2008 01:34:07 +0300</pubDate>
        </item>
        <item>
        	<title>murdoc on Why i can't GET the xml from URL </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/why-i-cant-get-the-xml-from-url#p933</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/why-i-cant-get-the-xml-from-url#p933</guid>
        	        	<description><![CDATA[<p>jQuery("#list19").jqGrid({&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160; &#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;&#160;&#160; datatype: "xml",<br />&#160;&#160; &#160;&#160;&#160; colNames:["TASK_ID","START_TIME", "END_TIME", "ENABLE","DESC","STATUS"],<br />&#160;&#160; &#160;&#160;&#160; colModel:[<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:"TASK_ID",index:"ID", width:80, xmlmap:"TASK_ID"},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:"TASK_START_TIME",index:"START_TIME", </p>
<p>width:180,align:"right",xmlmap:"TASK_START_TIME",sorttype:"date"},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:"TASK_END_TIME",index:"END_TIME", width:180, align:"right",xmlmap:"TASK_END_TIME", </p>
<p>sorttype:"date"},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:"TASK_ENABLE",index:"ENABLE", width:130,xmlmap:"TASK_ENABLE"},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:"TASK_DESC",index:"DESC", width:100, xmlmap:"TASK_DESC"},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:"TASK_STATUS",index:"STATUS", width:100, xmlmap:"TASK_STATUS"}<br />&#160;&#160; &#160;&#160;&#160; ],<br />&#160;&#160;&#160; &#160; height:250,<br />&#160;&#160; &#160;&#160;&#160; rowNum:10,<br />&#160;&#160; &#160;&#160;&#160; rowList:[10,20,30],<br />&#160;&#160; &#160;&#160;&#160; imgpath: gridimgpath,<br />&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; loadonce: true,<br />&#160;&#160;&#160; xmlReader: {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; root : "TaskList",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; row: "Task",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; repeatitems: false,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; id: "TASK_ID"<br />&#160;&#160;&#160; },<br />&#160;&#160;&#160; caption: "TASK LIST"</p>
<p>});</p>
</p>
<p>I can GET the XML file from "http://127.0.0.1:13310/stat/tasks" and show it in the xml in IE,but why i can&#39;t get the xml using the code above and put it&#160; into grid?</p>
]]></description>
        	        	<pubDate>Mon, 30 Jun 2008 00:42:58 +0300</pubDate>
        </item>
</channel>
</rss>