www.webdeveloper.com
Results 1 to 6 of 6

Thread: submit button

  1. #1
    Join Date
    Jan 2004
    Posts
    16

    submit button

    I have the following code in HTML:
    <form name="TestForm" action="/cali/test.cgi" method="GET" target="_self">
    .....
    <p><input type="submit" value="process" ></p>
    </form>

    I would like process something defined in test.cgi when I press the button, but without changing the appearence of the webpage itself. That is, don't open a page saying "The page cannot be displayed".

    Thank you!

  2. #2
    Join Date
    Jan 2003
    Location
    USA
    Posts
    687
    ...you could try something like this:

    <iframe src="" width=1 height=1 name="tinyframe" style="visibility:hidden"></iframe>

    <form name="TestForm" action="/cali/test.cgi" method="GET" target="tinyframe">
    .....
    <p><input type="submit" value="process" ></p>
    </form>

  3. #3
    Join Date
    Jan 2004
    Posts
    16
    It does work. Maybe I try it in another way. Thank you

  4. #4
    Join Date
    Jan 2003
    Location
    USA
    Posts
    687
    Originally posted by wind0965
    It does work. Maybe I try it in another way. Thank you
    ...ok, but exactly what are you trying to accomplish...?

  5. #5
    Join Date
    Jan 2004
    Posts
    16
    I want to do the following:
    After the submit button is clicked, /cali/test.cgi is excuted, but it does something in background and does not need to be shown on the browser.
    Another possibility is to open a new window, saying: "Press any key the close the window", so it would not affect the original window. Or maybe the new window could be closed automaticly after 3 seconds.
    like:
    <a href="#" onclick="window.close(); accesskey="any key"">Close this Browser Window"</a>

    Do you have any idea?
    Thank you

  6. #6
    Join Date
    Sep 2003
    Posts
    354
    the new window could be closed automaticly after 3 seconds. like:
    <a href="#" onclick="window.close(); accesskey="any key"">Close this Browser Window"</a>
    could you not do that and in the new window write submitting/processing/sending or whatever.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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



Recent Articles