<?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: import export xmlstring... doesn't work.</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/import-export-xmlstring-doesnt-work</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/import-export-xmlstring-doesnt-work/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>ciao on import export xmlstring... doesn't work.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/import-export-xmlstring-doesnt-work#p27534</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/import-export-xmlstring-doesnt-work#p27534</guid>
        	        	<description><![CDATA[<p>the right error is :</p>
</p>
<p>TypeError: a is undefined<br />file: jquery.jqGrid.min.js<br />Line 491</p>
]]></description>
        	        	<pubDate>Mon, 15 Oct 2012 10:58:35 +0300</pubDate>
        </item>
        <item>
        	<title>ciao on import export xmlstring... doesn't work.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/import-export-xmlstring-doesnt-work#p27533</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/import-export-xmlstring-doesnt-work#p27533</guid>
        	        	<description><![CDATA[<p>ciao said:</p>
<p>hi i do a little program that export one table in XMLSTRING and after i try to import that file but it doesn&#39;t work</p>
</p>
<p>this is the code:</p>
</p>
<blockquote>
<p>&#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&#62;<br />&#60;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&#62;<br />&#60;head&#62;<br />&#60;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&#62;<br />&#60;title&#62;jqGrid Example&#60;/title&#62;<br />&#160;<br />&#60;link rel="stylesheet" type="text/css" media="screen" href="css/ui-lightness/jquery-ui-1.8.9.custom.css" /&#62;<br />&#60;link rel="stylesheet" type="text/css" media="screen" href="css/ui.jqgrid.css" /&#62;<br />&#160;<br />&#60;script src="js/jquery-1.7.2.min.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#60;script src="js/i18n/grid.locale-en.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#60;script src="js/jquery.jqGrid.min.js" type="text/javascript"&#62;&#60;/script&#62;</p>
<p>&#60;script type="text/javascript"&#62;<br />&#160; $(document).ready(function(){</p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;$("#list").jqGrid<br />&#160;&#160; &#160;&#160;&#160; &#160;({ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;url: &#39;myxml.xml&#39;, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;datatype: "xml", <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colNames:["Squadra","Giocate","Vinte","Perse","Pareggiate","Punti"], <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colModel :[ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name:&#39;squadra&#39;, index:&#39;squadra&#39;, width:100, search:true, xmlmap:"squadra"}, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name:&#39;giocate&#39;, index:&#39;giocate&#39;,width:100, xmlmap:"giocate"},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name:&#39;vinte&#39;, index:&#39;vinte&#39;, width:100, xmlmap:"vinte"},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name:&#39;perse&#39;, index:&#39;perse&#39;, width:100, xmlmap:"perse"},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name:&#39;pareggiate&#39;, index:&#39;pareggiate&#39;, width:100, xmlmap:"pareggiate"},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name:&#39;punti&#39;, index:&#39;punti&#39;, width:100, xmlmap:"punti"}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; ], &#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;height:100, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowNum:10, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowList:[10,20,30],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;pager : "#pager",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;viewrecords: true, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;imgpath: &#39;css/ui-lightness/images&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;loadonce: true, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;xmlReader: { <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;root : "NewDataSet", <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;row: "Table", <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;repeatitems: false, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;id: "squadra" <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;sortorder: "punti",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;gridview: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;caption:&#39;Classifica&#39;<br />&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;});<br />&#160;&#160; &#160;&#160;&#160; &#160;//$("#list").jqGrid(&#39;GridUnload&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;var asd<br />&#160;&#160; &#160;&#160;&#160; &#160;asd = $("#list").jqGridExport({exptype: "xmlstring"});</p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;alert(""+asd);</p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;$("#list").jqGrid(&#39;filterToolbar&#39;, {stringResult: true, searchOnEnter: false, defaultSearch:"cn"});<br />&#160;&#160; &#160;&#160;&#160; &#160;$("#list2").jqGridImport(<br />&#160;&#160; &#160;&#160;&#160; &#160;{<br />&#160;&#160; &#160;&#160;&#160; &#160;imptype : &#39;xmlstring&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;impstring : asd ,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;xmlGrid :<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{ // describes from where to read the xml configuration and from where the data if any <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;config : "roots&#62;grid", <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;data: "roots&#62;rows" <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jsonGrid :<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{ // describes from where to read the json configuration and from where the data if any<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;config : "grid",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;data: "data" <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;<br />});<br />&#160;&#160; &#160;});</p>
<p>&#160;&#160; &#160;<br />&#160;&#160; &#160;<br />&#160;&#160; &#160;<br />&#160;&#160; &#160;<br />&#160;&#160; &#160;<br />&#60;/script&#62;</p>
<p>&#160;<br />&#60;/head&#62;<br />&#60;body&#62;<br />&#60;center&#62;<br />&#60;table id="list"&#62;&#60;/table&#62; <br />&#60;div id="pager"&#62;&#60;/div&#62;</p>
<p>&#60;br&#62;&#60;br&#62;&#60;br&#62;&#60;br&#62;asd<br />&#60;table id="list2"&#62;&#60;/table&#62; </p>
<p>&#60;/center&#62; <br />&#60;/body&#62;<br />&#60;/html&#62;</p>
</blockquote>
<p>when i start i receive this message:</p>
</p>
<blockquote>
<div class="errorTitle focusRow subLogRow ">TypeError: a is undefined</div>
<table class=" " border="0" cellspacing="0" cellpadding="0">
<tbody class=" ">
<tr class=" ">
<td class=" ">[Image Can Not Be Found]</td>
<td class=" "><a class="errorSource a11yFocus " target="_blank"></p>
<pre class="errorSourceCode " title="var xmlJsonClass={xml2json:function(a,b){9===a.nodeType&#38;&#38;(a=a.documentElement);var g=this.toJson(this.toObj(this.removeWhite(a)),a.nodeName,&#34;t&#34;);return&#34;{n&#34;+b+(b?g.replace(/t/g,b):g.replace(/t&#124;n/g,&#34;&#34;))+&#34;n}&#34;},json2xml:function(a,b){var g=function(a,b,e){var d=&#34;&#34;,f,i;if(a instanceof Array)if(0===a.length)d+=e+&#34;&#60;&#34;+b+&#34;&#62;__EMPTY_ARRAY_&#60;/&#34;+b+&#34;&#62;n&#34;;else{f=0;for(i=a.length;f&#60;i;f+=1)var l=e+g(a[f],b,e+&#34;t&#34;)+&#34;n&#34;,d=d+l}else if(&#34;object&#34;===typeof a){f=!1;d+=e+&#34;&#60;&#34;+b;for(i in a)a.hasOwnProperty(i)&#38;&#38;(&#34;@&#34;===">..."},json2xml:function(a,b){var g=function(a,b,e){var d="",f,i;if(a instanceof Arr...</pre>
</p>
<p></a></td>
</tr>
</tbody>
</table>
</blockquote>
<p>help me Plz<img class="spSmiley" style="margin:0" title="Cry" src="/blog/wp-content/forum-smileys/sf-cry.gif" alt="Cry" /><img class="spSmiley" style="margin:0" title="Cry" src="/blog/wp-content/forum-smileys/sf-cry.gif" alt="Cry" /><img class="spSmiley" style="margin:0" title="Cry" src="/blog/wp-content/forum-smileys/sf-cry.gif" alt="Cry" /><img class="spSmiley" style="margin:0" title="Cry" src="/blog/wp-content/forum-smileys/sf-cry.gif" alt="Cry" /></p>
]]></description>
        	        	<pubDate>Mon, 15 Oct 2012 10:57:45 +0300</pubDate>
        </item>
</channel>
</rss>