Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 23rd, 2004, 05:04 AM
Authorized User
 
Join Date: Jul 2004
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default quick question

Hi does anyone know if you can make a form have two actions and how?
Thanks,
Treasa

 
Old September 23rd, 2004, 05:09 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to qazi_nomi
Default

For this you can do by client side or server side script like giving two different name to submit buttons and when it click check that which button is clicked and on this condition select the action of the form

I hope it may clear you the idea


Numan
--------------------------------------------------
Love is the most precious thing of this world. So find it and grab it!
 
Old September 23rd, 2004, 05:12 AM
Authorized User
 
Join Date: Jul 2004
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks for that! what i want to do is when one button is clicked, for two actions to happen, one is to send data to another page, and the other is to show a progress bar to show that the data is being processed.... any ideas?

 
Old September 23rd, 2004, 06:33 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

  You have another procedure for Progressbar? If so, when the form submit event is fired, call the procedure written for progressbar.

Control will transfer to the called procedure and when it is finished return back to the calling procedure. After this, submit the form.

<script language="javascript">
  function sbm(){
   progrssbar //calling the procedure

   currentformname.submit();

}
</script>

I think it will do your requirement.


-----------
Rajani

 
Old September 23rd, 2004, 04:14 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

But, does that both work simultaneously? I don't think so. Imagine, I have set a progressbar that runs for 20 mins, then form submit would happen after 20 mins?

treasacrowe,
what is that you are trying to achieve? can you explain that in detail?

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick Question! arcadium Java GUI 1 August 5th, 2008 02:16 AM
another quick question andyhague XSLT 2 March 21st, 2006 12:13 PM
quick question treasacrowe Classic ASP Databases 2 August 30th, 2004 08:27 AM
Quick Question Ben Horne Forum and Wrox.com Feedback 1 March 22nd, 2004 03:29 PM
Quick If Then Question hcweb Classic ASP Basics 2 March 13th, 2004 02:13 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.