I've wasted long enough on this, it's time to ask for help... I'm making a simple Ajax request with OpenLayers.loadURL, which works perfectly. If I process the return data with:
var info = eval("(" + response.responseText + ")");
a proper object is created in both IE and Firefox. But if I try to use:
var parser = new OpenLayers.Format.JSON();
var info = parser.read(response.responseText);
nothing happens. In fact, if I try:
var parser = new OpenLayers.Format.JSON();
var info = parser.read("{'a': 1}");
in the Firebug console, info will contain null.
Can anyone provide a guess as to what might be going wrong? Any help would be
much appreciated.
--
Mak Kolybabi
Programmer
Telenium Inc.
204-957-2821
pgppBxZx7Ku3Z.pgp
Description: PGP signature
_______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
