|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
I'm trying to call multiple asp page just simply by clicking a button
But could i do this method? or how could i pass the value from this page to another asp page. Thanks for the responce > It should be something like this: <SCRIPT LANGUAGE='VBSCRIPT'> <!-- function btnClick_onClick document.form.action = "myform.asp?ID=" & document.form.txtfield.value document.form.submit End Function --> </SCRIPT> ![]() |
|
#2
|
|||
|
|||
|
You do realize that you're using VBscript for your CLIENT-SIDE scripting right? And that is not supported in Netscape.
I guess your building an INTRANET, unless...you don't care much for Netscape users! So...is your example working? Cause what you can do is debug it, for example(I'll use javascript since I'm more comfortable with it) **********Example of what the button looks like*********** <input type="button" name="btnMyButton" value="Click Me" onclick="javascript:MyButtonClick()"> **********Example of the MyButtonClick() function******** <script language="javascript"> function MyButtonClick() { var strValue; strValue = "myform.asp?ID=" + document.form.txtfield.value; //FOR DEBUG ONLY alert(strValue); document.formName.action = strValue; document.formName.submit(); } </script> NOTE:javascript is case sensitive so make sure its .submit or .Submit same thing with .action or .Action not sure since I haven't tested it! Hope this helps! Sincerely Vlince |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Call Submit Function in VBSCRIPT |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|