-
MODX Staff
- 1,535 Posts
@rossco: Your problem is perhaps down to the fact you’re missing the </head> tag in the code you posted - that’d be why the actual GoogleMaps JS code is not being included as it should (which would result in the JS error)
Garry Nutting
Senior Developer
MODX, LLC
Email:
[email protected]
Twitter: @garryn
Web: modx.com
-
☆ A M B ☆
- 1,231 Posts
Hmmm how embarrassing! Yeah I missed the tag out lol but Firebug still gives an error.
this.$$handleEvent = handlers<em>;
@Terry - just an idea - maybe slash and strip is working but that is exactly why you’re getting the error? i.e. apostrophe in title but then stripped out means a mismatch?
I had the same problem some time ago but never resolved it - so don’t take too much notice of my theory!
Oh boy. . . I wouldn’t begin to know how to approach that.
As a test using alias instead of title. This worked for all the documents except this one--although they were all displayed as lower case with dashes between the words. Still, this document created an error unless I removed the dash, then it was fine. Again, not really a good solution.
If all else fails, I may have to create a special field just for the map, but this will create duplicate entry for the editors of the site.
www.terrybarthdesign.com
-
☆ A M B ☆
- 1,231 Posts
I just tried this on another one my sites and it’s worked... I retried it on another site and it doesn’t work, so I disabled a custom plugin to replace bbCode with html code and this is what is stopping it working! I didn’t think that would of been the issue but it is.
My plugin was changing the [i] in the script with <em> that’s what was causing the error!
’[i]’ => ’<em>’,
Least I have it working now... i’ll edit the script to stop this error now.