| Welcome to WebmasterWorld Guest from 220.127.116.11 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Scripting Error Help|
unterminated string constant error in java script
| 8:22 am on Jun 17, 2003 (gmt 0)|
I can't seem to determine where the error is here - someone?
href="http://maps.yahoo.com/py/maps.py?BFCat=&Pyt=Tmap&newFL=Use+Address+Below&addr=5155+West+Point+Loma+Boulevard&csz=Ocean+Beach%2C+CA%2C+92107&country=us&Get%A0Map=Get+Map" target="_new">Ocean Beach (map)</a>');</script>
| 8:49 am on Jun 17, 2003 (gmt 0)|
What error are you getting?
Is the document.write all on one line? If it has link break in the code, it will fail! Also, is there a space between the " at the end of the href and before 'target'?
| 9:00 am on Jun 17, 2003 (gmt 0)|
Getting "unterminated string constant" on my test page.
Yes, all on one line, and the space should be before the target.
| 9:08 am on Jun 17, 2003 (gmt 0)|
Got it - it was a break in the string due to the wrap.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
© Webmaster World 1996-2014 all rights reserved