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 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Location
    The sunny side of the Alps
    Posts
    230
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Initializing the submit action

    Hi!

    Can anybody tell me how can I use javascript function to process the form - so that a person does not need to click on the submit button?

    Thanks,
    Bostjan

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Netherlands
    Posts
    217
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I dont understand what you mean with "process the form".But you can submit the form using the .submit() function.
    Btw,the user can also submit the form by pressing ENTER.

  • #3
    Regular Coder
    Join Date
    Jul 2002
    Location
    The sunny side of the Alps
    Posts
    230
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re

    BY "process the form" I mean to initialize the action, defined in the form tag. I know that one can use Enter instead of SUbmit button, but in my case it doesn't help. This is why:

    All the information on the page "one.asp" are stored in the database, when the user submits the information to page "two.asp".
    The problem is that in some cases, user can click on a link that opens a new window - there he can change some parameters that change the content of "one.asp" - so in order to show that changes, the page "one.asp" must be reloaded.
    But I don't want to simply reload the page, because all the unsaved information would be lost. Instead I want to submit the data automatically and then reload the page.

    You mentioned the submit() function. Where could I learn more about its syntax etc.


    Thanks,
    Bostjan

  • #4
    New to the CF scene
    Join Date
    Aug 2002
    Location
    North Carolina
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This will submit the form:

    function submitForm()
    {
    document.YourFormsName.submit();
    }

  • #5
    New Coder
    Join Date
    Aug 2002
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I am having the same problem as this person.i need to process the form in a pop up window.and save it.but i could not use a submit button.how can i process it using asp?
    Thanks for all of you for helping.God bless you~


  •  

    Posting Permissions

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