DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Daniel Guest

    submit and terminate


    Hi,
    I have a page with ofers the user to add data to a database, if the user
    selects to add data a new window/page is created and a form is generated
    on the fly. This page has a submit button, so the user can submit the form.

    I will like this page to close when the user submits the data(using the submit
    button), however, I do not what the warning window to popup asking the user
    if she/he wants to close the page. This way the user will left with the original
    page she/he was looking at.

    Thank's

    daniel

  2. #2
    Steve Guest

    Re: submit and terminate


    Here's some code that might help.
    http://javascript.internet.com/navig...ive-popup.html

    "Daniel" <djimenez@scu.edu.au> wrote:
    >
    >Hi,
    >I have a page with ofers the user to add data to a database, if the user
    >selects to add data a new window/page is created and a form is generated
    >on the fly. This page has a submit button, so the user can submit the form.
    >
    >I will like this page to close when the user submits the data(using the

    submit
    >button), however, I do not what the warning window to popup asking the user
    >if she/he wants to close the page. This way the user will left with the

    original
    >page she/he was looking at.
    >
    >Thank's
    >
    >daniel



  3. #3
    Steve Guest

    Re: submit and terminate


    Here is some code that will help you out.
    http://javascript.internet.com/navig...ive-popup.html

    "Steve" <sa1lopez@hotmail.com> wrote:
    >
    >Here's some code that might help.
    >http://javascript.internet.com/navig...ive-popup.html
    >
    >"Daniel" <djimenez@scu.edu.au> wrote:
    >>
    >>Hi,
    >>I have a page with ofers the user to add data to a database, if the user
    >>selects to add data a new window/page is created and a form is generated
    >>on the fly. This page has a submit button, so the user can submit the form.
    >>
    >>I will like this page to close when the user submits the data(using the

    >submit
    >>button), however, I do not what the warning window to popup asking the

    user
    >>if she/he wants to close the page. This way the user will left with the

    >original
    >>page she/he was looking at.
    >>
    >>Thank's
    >>
    >>daniel

    >



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
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links