Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 9th, 2005, 05:33 PM
Registered User
 
Join Date: Dec 2005
Location: , , .
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


Reply With Quote
  #2 (permalink)  
Old December 28th, 2005, 03:19 PM
Authorized User
 
Join Date: Nov 2005
Location: , , .
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.

Reply With Quote
  #3 (permalink)  
Old December 28th, 2005, 08:24 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:07 PM.


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