Categories | Question details Back To List | ||||||||
inline xml for dhtmlxgrid - or script or anything (except file reference) that'll work in both ie and ff. Hi, I'm brand new to this product, switching from activewidgets grid. I'm having trouble getting the grid (without a direct reference to a file) to work with both ie and ff. So here's my problem. I cannot use the call (the direct call to a file on my server) mygrid.loadXML("grid.xml"); I cannot use this call because, my god, what, am I supposed to build a new dynamic file everytime someone visits the many different dynamic pages that I have... So I want to put it inline with the html. I tried all of the examples listed in the thread http://dhtmlx.com/docs/products/kb/index.php?s=normal&q=1856, and they don't work consistently (please correctly me if I'm wrong) with both browsers. Here's what I tried: 1) mygrid.loadXMLString("<?xmlversion=\"1.0\"encoding=\"UTF-8\"?><rows><rowid=\"a\"><cell>Model1</cell><cell>100</cell><cell>399</cell></row></rows>"); When I tried this, I get a javascript error: Microsoft JScript runtime error: Object doesn't support this property or method. 2) mygrid.loadXML("gridXML.ASPX"); This is the one that I was REALLY hoping would work... and it DOES in ie, but freaking firefox says there's an error loading the xml. I'm guessing it's because firefox parses out the tags and ie does not. WHAT A BUMMER, I WOULD REALLY LIKE THIS ONE TO WORK. 3) I also tried: mygrid.parseXML('xmlDataIsland'); This was my attempt to make it work in a xml data island... and I got the same javascript error message as above. 4) I tried to download the " sample_of_usage.zip 90.18 Kb " as listed in my above reference to another thread, but the zip appears to be corrupt. So please, this is what I need: A simple example of how to make the grid work with an xml data island in both ie and ff. .... OR .... An explanation as to why firefox will not allow an aspx to create an xml string for me. The weird thing is that if I directly navigate to an xml file on my server from firefox, it shows the xml file, but when I create a xml string from an aspx, it ignores the tags!!! please please please please please........................ help :) Larry Answer posted by dhxSupport on Feb 13, 2009 09:33 1) mygrid.loadXMLString() method is availible at PRO version only. You can test it here http://dhtmlx.com/docs/products/dhtmlxGrid/samples/initialization_loading/pro_config_ext.html 2) FF cannot parse xml if before "<?xml" there is white space. Every xml output should became from "<?xml". Attachments (1)
Answer posted by Larry on Feb 13, 2009 12:36 cool, thanks, the sample you provided works great! expect purchase very soon. I'm moving forward with dhtmlx!!! :) happy camper |