|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Anyone can decipher this IE Error? Where in the code can I find the error? Line 2 of the HTML is the <html> tag.
Line: 2 Char: 1 Error: Syntax error Code: 0 URL: http://www.upmarketcontent.com/demo/ I really have tried searching this on the web but there are so many different syntax errors you'd be amazed, and none of them have much to do with each other. Such an economy of words Microsoft has to fit so many disparate problems into a single, brief error message.
__________________
http://merchantaccountphilippines.com, http://exp8ri8.com/, http://u8food.com, http://sap0.com |
|
||||
|
Whenever you see "Syntax error", 99.9% of the time it's a Javascript error. Quite often it relates to a script that hasn't been called.
In your case, my suspicion is here: Code:
<script type="text/javascript" src="http://upmarketontent.com/images/vernavbar.js"></script> Start there, see if that solves your issue, and if not, then I'd suggest getting either Netscape or Firefox and when the page is loaded, type "javascript:" (with the colon, but without the quotes) into your address bar. Edit: two things I've also noticed. 1) You don't have to put in the "http://www.upmarketcontent.com" part when calling scripts/images on your own server. Just use a path relative to the root directory (e.g. /images/picture_on_the_top_left.jpg as opposed to http://www.upmarketcontent.com/image...e_top_left.jpg). It will help to prevent the error described above from happening. 2) You should keep your scripts in their own folder (not images) so that your site's easier to maintain and you're not going through 1000 files trying to find one.
__________________
Toronto Web Design | Search Engine Friendly, Standards-Compliant Layouts | Walk on my Path (my blog) |
|
|||
|
Thanks so much for pointing that missing "c" out to me! Don't know how I missed it except that my eyes must have glazed over after seeing it so often.
Here was the real culprit, this script link to my affiliate tracking script: <script type="text/javascript" src="http://upmarketcontent.com/images/asflexilinkcode.js"></script> It links to the below script, which produced no errors when I placed it directly inside the html. What was I doing wrong with the link? <SCRIPT LANGUAGE=JAVASCRIPT> var myURL=window.location.href; var qLoc=0; for (var i=1; i < myURL.length; i++) { if (myURL.charAt(i)=='?') qLoc=i; } if (qLoc > 0) { myURL = myURL.substring(qLoc+1,myURL.length); document.write("<img src=\"http://coldfusion.affiliateshop.com/FlexiLink.cfm?AID=" + myURL + "\" width=1 height=1>"); } </SCRIPT>
__________________
http://merchantaccountphilippines.com, http://exp8ri8.com/, http://u8food.com, http://sap0.com |
|
||||
|
Your bracketing is incorrect.
Your for loop needs a beginning and end bracket, and so do each of your IF statements (yes, you can put if statements on one line, but they look messy and they're inconsistent.)
__________________
Toronto Web Design | Search Engine Friendly, Standards-Compliant Layouts | Walk on my Path (my blog) |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |