SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Syntax Error...

  1. #1
    SitePoint Member
    Join Date
    Oct 2006
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Red face Syntax Error...

    Hi,

    Please take a look at this script, posted in my blog as it is:

    <script type="text/javascript">
    URL = "http://order.sitesell.com/cgi-bin/adb/adb.pl?code=36300&src=5018";
    </script>
    <script src="http://go.webvideoplayer.com/js/OAJQgKqEMNtuBFRajLDf" type="text/javascript"></script>

    The script is working fine.

    The Problem,

    When viewed in Internet Explorer browser it shows Syntax Error.

    But, when viewed in FireFox, it's fine.

    What's wrong with the script?

    What is a syntax error?

    Thank you,

    Yours,

    Devasish

  2. #2
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When i try the following in a page and test in my local system then it does not give any error in any of the browsers IE6 and FF2.
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Untitled Document</title>
    <script type="text/javascript">
    	URL = "http://order.sitesell.com/cgi-bin/adb/adb.pl?code=36300&src=5018";
    </script>
    <script src="http://go.webvideoplayer.com/js/OAJQgKqEMNtuBFRajLDf" type="text/javascript"></script>
    </head>
    <body>
    </body>
    </html>
    That means there is something error in your rest of the JS code if you have in the same page.
    Mistakes are proof that you are trying.....
    ------------------------------------------------------------------------
    PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5

  3. #3
    SitePoint Enthusiast
    Join Date
    Nov 2006
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well when i tested this code.

    I got no error.

    although i could see a flash player in Firefox and nothing in IE 6.

  4. #4
    SitePoint Addict Mirek Komárek's Avatar
    Join Date
    Dec 2006
    Location
    Prague
    Posts
    210
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try add
    if(document.uniqueID){// rewrite page for IE
    document.write(document.documentElement.innerHTML);document.close();
    }
    Here is an example : http://concer.to/lastfm-test/myspacetv.html

  5. #5
    SitePoint Member
    Join Date
    Oct 2006
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I'm actually using Blogger...

    Hi,

    I'm actually using blogger.

    Does it has anything to do with the error message?

    What exactly is a Syntax Error.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •