Page 1 of 1

JavaScript Error ‘expected identifier, string or number’

Posted: 30 Sep 2011, 11:17
by jegbertzen
Hello, I get a javascript error ‘expected identifier, string or number’ in IE7.
Doing some research this is probably caused by a comma or such.
I seem to have found the one causing this error (developer tools ie9 in ie7 mode) but am unable to locate the actual script to solve this. Found another post on a greyed out map in IE but that one didn't help me. Installing the latest version of both component and plugin unfortunately has not solved anything either.

I think the comma after 'rect' is the one causing this error.

Code: Select all

 var phocaImageShape4 = {
   coord: [0,0,25,30],
   type: 'rect',
 };
This is the link where the error is occuring:

http://ismh.ismh.nl/index.php?option=co ... Itemid=231

And here's an imageshack screenshot of the problem

http://imageshack.us/photo/my-images/36/ie7bug.png/

Re: JavaScript Error ‘expected identifier, string or number’

Posted: 30 Sep 2011, 17:57
by Jan
Hi, which version of Phoca Maps you are using?

Re: JavaScript Error ‘expected identifier, string or number’

Posted: 01 Oct 2011, 13:08
by jegbertzen
was using 2.0.1, upgrade to 2.0.2 does not seem to fix it.

Re: JavaScript Error ‘expected identifier, string or number’

Posted: 04 Oct 2011, 14:28
by mooshoe
Hi

I am getting exactly the same error in IE7 and the upgrade to 2.0.2 did not address it either:

Code: Select all

   coord: [0,0,25,30],
   type: 'rect',
};
any suggestions?

Re: JavaScript Error ‘expected identifier, string or number’

Posted: 07 Oct 2011, 19:21
by Jan
Hi, I will take a look at it.

Jan

Re: JavaScript Error ‘expected identifier, string or number’

Posted: 07 Oct 2011, 22:05
by mooshoe
Thanks Jan, the url for my IE7 map issue can be viewed at http://www.organicseo.co.za/joomla17/co ... nding.html

Re: JavaScript Error ‘expected identifier, string or number’

Posted: 11 Oct 2011, 14:35
by Jan
Hi, confirmed, will be fixed in next version.

For quick fix, just download this file:
https://www.phoca.cz/forumfiles/phocamapsmap.zip
Unzip it and overwrite the following file:
administrator\components\com_phocamaps\helpers\phocamapsmap.php

Jan

Re: JavaScript Error ‘expected identifier, string or number’

Posted: 13 Oct 2011, 09:28
by mooshoe
Thank you so much, this has fixed my problem :-)
I have just made a donation on your Paypal. Keep up the great work!