ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old August 25th, 2003, 12:52 AM
DaronTan DaronTan is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Malaysia
Posts: 49 DaronTan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 31 m 23 sec
Reputation Power: 5
Send a message via AIM to DaronTan Send a message via MSN to DaronTan Send a message via Yahoo to DaronTan
Question Call Submit Function in VBSCRIPT

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>

Reply With Quote
  #2  
Old August 25th, 2003, 07:18 AM
Vlince Vlince is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Canada, Quebec, Montreal
Posts: 410 Vlince User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Call Submit Function in VBSCRIPT


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway