homepage Welcome to WebmasterWorld Guest from 107.20.131.154
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Need help with Syntax error
syntax error
trevina




msg:1472393
 7:28 am on Jun 2, 2003 (gmt 0)

Could you help me correct the syntax error on my webpage?
<edit - sorry, no personal URLs>

It says Line:2 Character:29 Error: Syntax Error Code: 0

Thank you,
Trevina

[edited by: tedster at 10:17 am (utc) on June 2, 2003]

 

takagi




msg:1472394
 9:53 am on Jun 2, 2003 (gmt 0)

Hi trevina, Welcome to WebmasterWorld.

It is not allowed to put an URL here, but since it was there I could check your problem. In the following lines I added some '*' symbols, but you will understand what should be there.

It turns out that your code is OK, but the code added by g*cities is not.

You can do the following test:
1. Create on your harddisk (C:) a temporary directory (e.g. C:\pls_rmv)
2. Open your page on g*cities
3. Store it (File >> Save As) to this temporary directory
4. Open the local version (C:\pls_rmv\peyt*), and you will still see the error.
5. Open the local file with an ASCII editor (like Notepad) and go to the end of the file. There are some very long lines. Make these lines shorter by pressing entering a 'return' before each "<script>"
6. Save this file, and verify the problem still exists.
7. Remove the 2 following lines
<script language="JavaScript" src="http*//www.g*cities.com/js_source/pu5geo.js"></script>
<script language="JavaScript" src="http*//www.g*cities.com/js_source/ygIELib9.js?v3"></script>

8. Save the files again.
9. Verify it (problem is gone)
10. Remove the temporary directory after deleting the file.

takagi




msg:1472395
 10:06 am on Jun 2, 2003 (gmt 0)

I just checked some other pages of g*cities, and you're not alone. I expect this problem will soon be solved.

trevina




msg:1472396
 2:46 am on Jun 3, 2003 (gmt 0)

Thank you. It was driving me crazy to not be able to figure out what the error was.

Trevina

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved