Results 1 to 2 of 2

Thread: modal window disappears

  1. #1
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default modal window disappears

    1) Script Title:
    DHTML Modal window
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...dhtmlmodal.htm
    3) Describe problem:
    When executing this script on click it works perfectly. But when I do it on form submit it displays for less than a second and it disappears. ex:<form id="clientForm" name="clientForm" method="post" action="user.php?add=record" onsubmit="ageprompt();">

    any hints ? thank you

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Code:
    <form id="clientForm" name="clientForm" method="post" action="user.php?add=record" onsubmit="return ageprompt();">
    It should be that ageprompt function would either return false/true. If false, the form won't submit, the later will.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

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
  •