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 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool cheesy pickup line generator


  • #2
    Regular Coder
    Join Date
    Sep 2005
    Posts
    535
    Thanks
    0
    Thanked 0 Times in 0 Posts
    When I loaded the page, I got an "expecting ;" error (at line 22) meaning you are probably:
    1) Missing a ; (or used a colon ( : ) instead of a semi-colon ( ; ) )
    2) ()'s aren't matched up
    3) ""'s aren't matched up

    Since you didn't post the .js file, we can't really tell beyond that.

    BTW: the error of "Object expected" that I got when pressing a button probably stems from the previous error; it's probably looking for a method, but with the missing ; , it thinks everything afterwards is one horrendous statement, including the "missing" method!

  • #3
    New Coder
    Join Date
    Sep 2005
    Location
    Ottawa, ON
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you may also want to read this

  • #4
    Regular Coder martin_narg's Avatar
    Join Date
    Jul 2002
    Location
    Chamonix, France
    Posts
    600
    Thanks
    1
    Thanked 3 Times in 3 Posts
    change this line (line 21 of your js file):
    Code:
    pickupArray[11]=" Can I have directions? [/"To where?/"] To your heart."
    To:
    Code:
    pickupArray[11]=" Can I have directions? [\"To where?\"] To your heart."
    m_n
    "Cos it's strange isn't it. You stand in the middle of a library and go 'Aaaaaaaaaaaaaaaaggggggghhhhhhh!'
    and everybody just stares at you. But you do the same in an aeroplane, and everybody joins in."
    -Tommy Cooper

  • #5
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    I changed it, but... :confused:

    but it still doesn't work

  • #6
    Regular Coder
    Join Date
    Aug 2005
    Location
    Toronto, ON, Canada
    Posts
    231
    Thanks
    0
    Thanked 0 Times in 0 Posts
    terminate string in line 24

    pickupArray[14]="Blah blah "
    rm -f /


  •  

    Posting Permissions

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