SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jul 2006
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IE gives "Function expected" error (was "Help!")

    Hi,
    There seems to be an error in my script. Go to:
    http://cos.purple-cow.org/

    You'll see it says there's an error in page (but I think only in IE, FF doesn't seem to show it).

    Here's what IE has to say about it:
    Line: 3
    Char: 1
    Error: Function expected
    Code: 0
    URL: http://cos.purple-cow.org/

    I'm not sure what this means - I'm pretty sure there's no error in the code on line 3!!!??

    Can anyone shed any light on it?

    Thanks!

  2. #2
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    This is a Javascript error, not a PHP error. Remember that browsers have no idea what is going on in the back end (where PHP does its thing). Browsers deal with HTML, CSS and Javascript.

    I don't get the JS error, I just don't see the images.
    On the second line of your cos.js file there is this:
    Code:
    var accepted_domains=new Array("cos.purple-cow.org")("purple-cow.org/cos")
    Looks a bit wrong to me. Change it to this and see if it helps:
    Code:
    var accepted_domains=new Array("cos.purple-cow.org", "purple-cow.org/cos");

  3. #3
    SitePoint Member
    Join Date
    Jul 2006
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Perfect. So simple

    Thanks!


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
  •