SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict tempyyyst's Avatar
    Join Date
    Nov 2001
    Location
    Kent, UK
    Posts
    286
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Javascript error that I can't fathom

    Code:
     
    <a href="admin/delete_company.php?id=6" 
    onclick="return confirm('Are you sure you want to delete Amnesty International?')">Delete</a>
    Anyone know why this code will give an " expected ')' " error in IE6, but not in Mozilla 1.3 (PC), or for that matter, why it's expecting a ) at all when there's one there?

  2. #2
    American't awestmoreland's Avatar
    Join Date
    Sep 2002
    Location
    Grand Rapids, MI
    Posts
    1,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have IE6, but it doesn't cause me any problems (nor would I expect it to). How odd.
    From the English nation to a US location.

  3. #3
    SitePoint Addict tempyyyst's Avatar
    Join Date
    Nov 2001
    Location
    Kent, UK
    Posts
    286
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by awestmoreland
    I have IE6, but it doesn't cause me any problems (nor would I expect it to). How odd.
    Actually, funny you should say that, but I'm getting all sorts of strange behaviour out of IE.

  4. #4
    SitePoint Addict tempyyyst's Avatar
    Join Date
    Nov 2001
    Location
    Kent, UK
    Posts
    286
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just spotted the problem - wasn't actually in that piece of code at all.

    I was writing in a rogue ' by mistake on some lines that shared the same structure.

    Surprised that Mozilla didn't through up an error as well though.

  5. #5
    SitePoint Enthusiast turkle112's Avatar
    Join Date
    Aug 2003
    Location
    SC
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just spotted the problem - wasn't actually in that piece of code at all.
    I hate when that happens!
    Turk
    Digial Media Producer/Webmaster
    I love my job


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
  •