Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    IE throwing a syntax error but can't work out what the problem is

    Hi,

    For the life of me I can't work out what is wrong with the code here:http://www.spencercarpenter.co.uk/po...162&fgh=showMe

    I know it is somthing to do with the url and that it is a synax error but I really am stuck as I cant see what it is.

    If anyone could help me resolve this I would be very grateful.

    Thanks for any help.

    Spencer

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,853
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    Not sure, but you've two DOCTYPEs in your page. STick with the Strict and remove the other.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New Coder
    Join Date
    Jul 2010
    Posts
    61
    Thanks
    0
    Thanked 21 Times in 21 Posts
    Code:
     window.document.location.href = www.spencercarpenter.co.uk/portfolioAppFiles/PortfolioItem03.php?item08=165&item012=161&item014=163&item016=162&fgh=showMe;
    The console clearly indicates an error on line 30 above. The value must be in quotes, and it's sufficient to assign to window.location,href or just location.href.


  •  

    Posting Permissions

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