SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    May 2001
    Location
    brazil
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    alert box not popping up

    Hi all,

    I have a form script here:

    http://www.motiontheque.com/news/new....asp?NewsID=30

    OK, Iīve downloaded some ASP blog script (www.webwizguide.info) and I have customized this "comments" page (aiming w3c validation). So thereīs 2 files

    -the original that came with the ASP script
    -the customized one. The above url is the customized one.

    Ok, thereīs a javascript routine that checks if one of the fields is empty, and if thereīs any, there should pop up an alert box with the error message upon clicking on "submit" button.

    OK, but somehow itīs not popping up, iīv pulled all my hair out trying to figure out, comparing with the original file.

    The checkform function in the -HEAD- tag is *exactly* the same as the original, because I did some ctrl-v, and, to be sure, I checked line by line of the script.

    so I guess the prob must be under the -FORM- tag, but I canīt figure it out. I checked all the names, and this is bugging me for 2 days now. I would be so grateful if someone explain this to me.

    -thanks a lot

  2. #2
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    *** WARNING!! SHAMELESS PLUG AHEAD! ***

    Skip all that mess and use my validator
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  3. #3
    SitePoint Enthusiast
    Join Date
    May 2001
    Location
    brazil
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hey beetle, it looks really nice, iīm gonna try your script; thanks man


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
  •