Can't get grid.parse to work

Please take a look at modelscope.com/browse_cams.php



Notice that the grid doesn’t display using mygrid.parse.



However, when I load the exact same XML from an external file using mygrid.load, it works perfectly. You can see the mygrid.load statement commented out on the previous line.



My goal is to be able to embed the XML directly in the document, rather than loading it from an external file.



Can you tell me what I’m doing wrong?



Thanks!

init() method should be called before adding data. So, please, try to call methods in the following order:

mygrid.init();
mygrid.parse(…);

Works great! Thanks.