|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Submit data without going to another page
Hey all i am trying to figure out a way to send off my data on my ASP form without having to goto another page to do so. Like once the user clicks on the submit button, an overlay comes on and says "sending data", and in the background it does the same things as it would if it submitted to the page where i have to send the data and stuff.
Here is some of my form code: Code:
<form action="SendFB.asp" method="POST" name="frmFB"> <input name="txtFName0" type="text" class="TextBoxes" id="txtFName0" tabindex="1" size="30" /> <input name="txtFName1" type="text" class="TextBoxes" id="txtFName1" tabindex="1" size="30" /> <input name="txtFName2" type="text" class="TextBoxes" id="txtFName2" tabindex="1" size="30" /> <input name="txtFName3" type="text" class="TextBoxes" id="txtFName3" tabindex="1" size="30" /> ...... <img src="Send.png" alt="" width="260" height="65" id="SubNow" onClick="document.frmFB.submit();"/> </form> Now once the user clicks on the button it just sends them to the SendFB.asp page that has the asp code to store the forms values into the database, etc etc. So how would i go about just staying on the main page without going to the SendFB.asp page to unload the data to the mySQL database? Thanks for your time ![]() David |
|
#2
|
|||
|
|||
|
Google for AJAX, which is the technology you probably want to use. It's hard to find examples for asp though, since asp is no longer being actively enhanced by MS. MS does have a NET ajax library available if you go the NET route.
__________________
====== Doug G ====== "Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Submit data without going to another page |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|