Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics 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 December 9th, 2005, 05:33 PM
Registered User
 
Join Date: Dec 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Manual Submit

Hi,

I have an asp page which has a Submit button.
The Submit button calls a 3rd party asp page.

Now, i want to add an operation to the button, which will send an email and then will call submit to the 3rd party asp page.

How can i do that?
I guess i need to change the submit button to a normal button so to send email but then how to call the submit process by code so it will activate the form action (by "submit()") ?

Thanks


 
Old December 28th, 2005, 03:19 PM
Authorized User
 
Join Date: Nov 2005
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to x_ray
Default

i need the solution for this too, how can we post data using javascript function and ordinary buttons.

 
Old December 28th, 2005, 08:24 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

1..use an event. Lets say you want to do some clientside validation:

<input type="button" name="submit" value="Add Folder" onClick="return someFunction();">

This calls a function called someFunction, so in the head of your page:

<script>
   function someFunction()
   {
      //do you clientside stuff, then to submit:
      formName.submit();
   }
</script>

IMO you should wrap an anchor tag around an image so the cursor changes to a hand when the user mouses over the button (or use css to style the input type=button to crate the hand onMouseover) The other downfall is the fact you can not hit the enter button to submit the form (you must click the button)

;;;how can we post data using javascript function and ordinary buttons.

2..If you dont need to run a JS function but just want to submit when the user clicks the button use:

<input type="button" name="submit" value="Add Folder" onClick="formName.submit();">

Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
Gridview manual databinding through code thas123 ASP.NET 2.0 Basics 3 December 12th, 2006 01:18 PM
Crystal manual crosstab Eric Butterfield Crystal Reports 1 February 18th, 2005 06:42 PM
Manual Copy-Of aberglas XSLT 1 February 17th, 2005 05:40 AM
Manual Increment MySQL Field cmiller Beginning PHP 4 August 27th, 2003 05:26 PM





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