Forum Moderators: open

Message Too Old, No Replies

Error: missing } in XML expression

first time I see this error message

         

guarriman

11:09 am on Apr 17, 2007 (gmt 0)

10+ Year Member



Hi.

I get this error message on my Firefox Error Console:
----------------
Error: missing } in XML expression
Source File: [foo.com...]
Line: 273, Column: 18
Source Code:
options2 = { title: "John was here", icon: icon1};
-----------------

The JavaScript code (I use Google Maps):
----
coords2 = new GLatLng(34.3155495, -140.013553246338);
options2 = { title: "John was here", icon: icon1};
marker2 = new GMarker(coords2, options2);
-----------

My JavaScript file's got "Content-Type: application/x-javascript" headers and it uses Ajax.

It's the first time I get this error. Does anybody have any experience with it?

Thank you very much.

Fotiman

5:33 pm on Apr 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



options2 = { title: "John was here", icon: icon1};

icon1 does not appear to be a valid value here. Is that supposed to be a string? Perhaps like this:

options2 = { title: "John was here", icon: "icon1"};