SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Please complete the form

  1. #1
    SitePoint Addict
    Join Date
    Jul 2002
    Location
    Paciano, Italia
    Posts
    374
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Please complete the form

    I have a form with an onSubmit call to a function checkJobDone(). What I want is for the action (to load another page) to be executed ONLY if checkJobDone() returns true. Otherwise the function displays an alert() and should not execute the action. The check works; the alert() is displayed when it should but at present it always carries out the action and loads the next page...

    Thanks chaps G
    blessed are the cracked for they let in the light

  2. #2
    SitePoint Addict
    Join Date
    Jul 2002
    Location
    Paciano, Italia
    Posts
    374
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry guys - I've found the answer. return checkJobDone(). I thought I'd tried that...
    blessed are the cracked for they let in the light

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
  •