<?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: Another IE Data display problem</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/another-ie-data-display-problem</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/another-ie-data-display-problem/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>newperson on Another IE Data display problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/another-ie-data-display-problem#p21579</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/another-ie-data-display-problem#p21579</guid>
        	        	<description><![CDATA[<p>I am not getting any error messages in IE7 and it works fine on Firefox. I am using the demo files that are free to download on this site just for testing purposes. I do not have a web server this is all local data, I do not plan on using a web server.</p>
<p>The files that I am using are xmlmap.js, xmlmap.html, book.xml from the example with slight modifications. The grid loads but not the xml data nor the row numbers. I have attached a screen shot of what it looks like in IE7 VS FF <a href="http://tinypic.com/r/18n5au/7" rel="nofollow" target="_blank">http://tinypic.com/r/18n5au/7</a> is the url for the pic, if this can&#39;t display it properly. Thank you very much for the help. I did search the forums for similar problems and have tried different things including checking my javascript for extra commas but I can&#39;t find anything. I tried firebug, there are no errors what so ever.</p>
<p><a href="http://tinypic.com/r/18n5au/7"><img src="http://tinypic.com/r/18n5au/7" width="100"  class="sfimageleft spUserImage" alt="grid" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class="sfimageleft sfmouseleft" alt="Image Enlarger" /></a></p>
<p>I am using the latest version of the grid.</p>
</p>
<p><strong>HTML</strong></p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8329' value='Select Code' data-codeid='sfcode8329' /></p>
<div class='sfcode' id='sfcode8329'>&#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Strict//EN&#34; &#34;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&#34;&#038;gt" rel="nofollow" target="_blank"><a href="http://www.w3.org/TR/xhtml1/DT" rel="nofollow">http://www.w3.org/TR/xhtml1/DT</a>.....t;&#038;gt</a>;<br />&#60;html xmlns=&#34;<a href="http://www.w3.org/1999/xhtml&#34;&#038;gt" rel="nofollow" target="_blank"><a href="http://www.w3.org/1999/xhtml&#038;q" rel="nofollow">http://www.w3.org/1999/xhtml&#038;q</a>.....t;&#038;gt</a>;</p>
<p>&#60;HEAD&#62;<br />&#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=UTF-8&#34; /&#62;<br />&#60;title&#62;Inventory&#60;/title&#62;<br />&#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&#62;<br />&#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; media=&#34;screen&#34; href=&#34;css/sunny/jquery-ui-1.8.7.custom.css&#34; /&#62;<br />&#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; media=&#34;screen&#34; href=&#34;css/ui.jqgrid.css&#34; /&#62;<br />&#60;script src=&#34;js/jquery-1.4.4.min.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;<br />&#60;script src=&#34;js/i18n/grid.locale-en.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;<br />&#60;script src=&#34;js/jquery.jqGrid.min.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;<br />&#60;script src=&#34;js/jquery-ui-1.8.7.custom.min.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;</p>
<p>&#60;/HEAD&#62;</p>
<p>&#60;body&#62;</p>
<p>&#60;table id=&#34;list19&#34; class=&#34;scroll&#34; cellpadding=&#34;0&#34; cellspacing=&#34;0&#34;&#62;&#60;/table&#62;<br />&#60;script src=&#34;xmlmap.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;</p>
<p>&#60;/body&#62;<br />&#60;/HTML&#62;</p>
</div>
<p><strong>JAVASCRIPT &#62; </strong>xmlmap.js</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8705' value='Select Code' data-codeid='sfcode8705' /></p>
<div class='sfcode' id='sfcode8705'>$(document).ready(<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; function() {<br />&#160;&#160; &#160;var gridimgpath = &#39;css/sunny/images&#39;;<br />$(&#34;#list19&#34;).jqGrid({<br />&#160; &#160;&#160;&#160; &#160;url: &#39;inventory.xml&#39;,<br />&#160;&#160; &#160;datatype: &#34;xml&#34;,<br />&#160; &#160;&#160;&#160; &#160;colNames:[&#34;On Hand&#34;, &#34;Product Name&#34;, &#34;Product Code&#34;, &#34;Deficit&#34;],<br />&#160; &#160;&#160;&#160; &#160;colModel:[<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#34;On Hand&#34;,index:&#34;onHand&#34;, width:50, xmlmap:&#34;ItemAttributes&#62;onHand&#34;, sorttype:&#34;int&#34;},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#34;Product Name&#34;, index:&#34;productName&#34;, width:310, align:&#34;left&#34;, xmlmap:&#34;ItemAttributes&#62;productName&#34;},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#34;Product Code&#34;, index:&#34;productCode&#34;, width:160, align:&#34;left&#34;, xmlmap:&#34;ItemAttributes&#62;productCode&#34;},<br />&#160;&#160; &#160;&#160;&#160; &#160;{name:&#34;Defecit&#34;, index:&#34;onHand&#34;, width:60, align:&#34;right&#34;, xmlmap:&#34;ItemAttributes&#62;onHand&#34;, formatter:highlight}<br />&#160; &#160;&#160;&#160; &#160;],<br />&#160;&#160; &#160;height:250,<br />&#160; &#160;&#160;&#160; &#160;//rowNum:20,<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;rownumbers: true,<br />&#160;&#160; &#160;rownumWidth: 40,<br />&#160;&#160; &#160;xmlReader: {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;root : &#34;Items&#34;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;row: &#34;Item&#34;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;repeatitems: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;id: &#34;onHand&#34;<br />&#160;&#160; &#160;},<br />&#160;&#160; &#160;caption: &#34;Inventory&#34; + &#34; &#124; &#34; + &#34;Last Inventory Date = 1/3/2011&#34;<br />}); </p>
<p>function highlight (cellValue, options, rowObject) {<br />&#160;&#160;&#160; var color = (parseInt(cellValue-10) &#60; 0) ? &#34;red&#34; : &#34;green&#34;;<br />&#160;&#160;&#160; if(parseInt(cellValue-10) &#62; 0) { <br />&#160;&#160; &#160;var cellHtml = &#34;&#60;span style=&#39;color:&#34; + color + &#34;&#39; originalValue=&#39;&#34; +(cellValue-10) + &#34;&#39;&#62;&#34; + (cellValue-10) + &#34; Extra&#34; + &#34;&#60;/span&#62;&#34;;<br />&#160;&#160; &#160;return cellHtml;<br />&#160;&#160; &#160;} <br />&#160;&#160; &#160;else {<br />&#160;&#160; &#160;var cellHtml = &#34;&#60;span style=&#39;color:&#34; + color + &#34;&#39; originalValue=&#39;&#34; +(cellValue-10) + &#34;&#39;&#62;&#34; + (cellValue-10) + &#34; Missing&#34; + &#34;&#60;/span&#62;&#34;;<br />&#160;&#160; &#160;return cellHtml;<br />&#160;&#160; &#160;}<br />&#160;&#160; &#160;<br />}</p>
<p>});</p>
</div>
<p><strong>XML &#62; </strong>inventory.xml I had to shorten the xml just for testing in case there was something wrong with the data but it doesn&#39;t appear to be.</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2000' value='Select Code' data-codeid='sfcode2000' /></p>
<div class='sfcode' id='sfcode2000'>
<p>&#60;?xml version=&#34;1.0&#34; encoding=&#34;UTF-8&#34;?&#62;<br />&#60;Inventory&#62;</p>
<p>&#60;Items&#62;<br />&#160;&#160;&#160; &#60;Request&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;IsValid&#62;True&#60;/IsValid&#62;<br />&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;ItemSearchRequest&#62;<br />&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;SearchIndex&#62;Inventory&#60;/SearchIndex&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#60;/ItemSearchRequest&#62;<br />&#160;&#160;&#160; &#60;/Request&#62;<br />&#160;&#160; &#160;&#60;Item&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;DetailPageURL&#62;&#60;/DetailPageURL&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;ItemAttributes&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;onHand&#62;9&#60;/onHand&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;productName&#62;Lenovo Thinkcentre Desktop Computers&#60;/productName&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;productCode&#62;7268D1U&#60;/productCode&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#60;/ItemAttributes&#62;<br />&#160;&#160; &#160;&#60;/Item&#62;</p>
<p>&#60;/Items&#62;<br />&#60;/Inventory&#62;</p>
</div>
]]></description>
        	        	<pubDate>Fri, 07 Jan 2011 23:19:37 +0200</pubDate>
        </item>
</channel>
</rss>