NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming > Webmaster Tutorials
Reload this Page 'Just' a simple acknowledge window required......

Webmaster Tutorials Instructional webmaster-related how-to's and tutorials.

Advanced Search
0 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 09-20-2005, 03:17 PM THREAD STARTER               #1 (permalink)
New Member
Join Date: Sep 2005
Posts: 2
Keith.Alabaster is an unknown quantity at this point
 



'Just' a simple acknowledge window required......


I use IIS5.0 and .asp for my web site and all is working quite happily. I use a submit function for a number of forms and actions. On the submit email form, the details are sent correctly to the destination addresses. I would like a small window/message to appear after the submit button is pressed to let the user know it has been sent. Currently I get up to 10 emails of the same thing as the user does not know the submit is working OK. Thanks for any help...

Regards
Keith the newbie.
Code I am using is below
<FORM Action="mailto:xxxxxxxx" ENCTYPE="text/plain">
????: NamePros.com http://www.namepros.com/webmaster-tutorials/125342-just-a-simple-acknowledge-window-required.html
<Br>Subject:
<INPUT name="Subject" value="Please Contact Me">
<Br>Details:&#xa0;
<TEXTAREA name=" ">
Please enter your contact details

</TEXTAREA>
<BR>
<INPUT type="submit" value="Submit">
</FORM>
Keith.Alabaster is offline  
Old 09-20-2005, 03:25 PM   #2 (permalink)
NamePros Regular
Join Date: Aug 2005
Posts: 214
slantednet is on a distinguished road
 



Check out this page:

http://gethelp.devx.com/techtips/dht.../10min1199.asp

Go down to the heading "Hide form button using DHTML"
????: NamePros.com http://www.namepros.com/showthread.php?t=125342

In there it has a couple of functions you can use to get started. Basically, in the button's onClick method put a call to the javascript disable() function, and it will disable the button (make sure you fix which element it's diabling)

Or read slightly above that, the heading "Ignore the button" and put that in your page, so if they hit the button twice it can alert them that it's already been submitted and is processing.

Hope that helps,
Mike
__________________
OnlineGames.net
slantednet is offline  
Old 09-20-2005, 03:42 PM   #3 (permalink)
Munky Designs
Join Date: May 2005
Posts: 996
Albino is a jewel in the roughAlbino is a jewel in the roughAlbino is a jewel in the rough
 



hey

im not sure, but for php, i use an if function to check if the submit variable has been sent, it then displays a message, and redirects to a new page.

ie :

if(isset($_POST['submit'])){
echo "Well done, entered sucessfully";
*redirect code*
} else {
*display form*
}

There must be something similar in asp?

hope it helps anyway, if not, just use the java (onclick) function
Albino is offline  
Old 09-21-2005, 10:57 AM THREAD STARTER               #4 (permalink)
New Member
Join Date: Sep 2005
Posts: 2
Keith.Alabaster is an unknown quantity at this point
 



Thanks to both of you as both items straightened me on points that were a little hazy regarding technique. In this scenario though asp seems a little reticent. I don't really want to mix java and asp in the same pages although the script and /script seems quite happy to allow the mixes. I'll get there though
Keith.Alabaster is offline  
Old 09-21-2005, 02:57 PM   #5 (permalink)
Senior Member
Join Date: May 2003
Posts: 2,187
adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough
 


Breast Cancer
give this ago

Code:
<script type=text/javascript>
function clickmea()
{
	window.open("msg_sent.aspx","name","height=600,width=600,status=yes,toolbar=yes,menubar=no,location=no");
}
</script>
<FORM Action="mailto:xxxxxxxx" ENCTYPE="text/plain">
<Br>Subject:
<INPUT name="Subject" value="Please Contact Me">
<Br>Details:&#xa0;
<TEXTAREA name=" ">
Please enter your contact details

</TEXTAREA>
<BR>
<INPUT type="submit" value="Submit" onclick="javascript:clickmea();">
</FORM>
see where i have msg_sent.asp
????: NamePros.com http://www.namepros.com/showthread.php?t=125342

replace this with the page u want to display the welcome msg

if the window is to big edit the height and width values on the same row
adam_uk is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
very simple 1 page - 50 NP legend2 Web Development Wanted 2 09-15-2005 09:33 AM
Tired of Vista Domains Venolus The Break Room 32 08-07-2005 08:54 AM
Tutorial: Simple site management with the use of PHP and the query string(?page=1) deadserious Webmaster Tutorials 8 10-09-2004 01:20 PM
New Window, No JS esf989 Web Design Discussion 4 06-23-2004 03:06 PM

 
All times are GMT -7. The time now is 12:54 AM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger