Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need button on form to navigate to new page 2

Status
Not open for further replies.

RottPaws

Programmer
Mar 1, 2002
478
US
I've got a form on an asp page that has a number of input boxes for criteria and a submit button.

After the user enters criteria and clicks the submit button the page calls itself and displays appropriate data from a table that is refreshed once/day with a snapshot of data in another database. This data is good for 80% of the users' needs, but sometimes they need to look at fresh data for specific sites.

I've already got another asp page that pulls a more specific set of data from the database.

I'd like to add another button to the form that will open the "Live" page. I can get the button on the form, but I haven't been able to get it to navigate to a different page when it is clicked.

I'm sure this is simple, but I'm stumpped.

Thanks in advance. _________
Rott Paws

...It's not a bug. It's an undocumented feature!!!
 
Hi ...
It's easy ...
<input type=&quot;button&quot; name=&quot;mybtn&quot; value=&quot;Navigate&quot; onclick=&quot;javascript:mybtn_click();&quot;>

then you also shuld have this javascript function :
<script language=&quot;javascript&quot;>
function mybtn_click() {
window.navigate('mytest.asp');
}
</script>

TNX.
E.T.
 
That worked great!

Thanks! _________
Rott Paws

...It's not a bug. It's an undocumented feature!!!
 
Thanks For the tip ehsant.It was very simple.Is there any more tips i can get to know about javascripts.
AI
 
Is there anything specific you would like to know? there is code for everything from filereading to xml manipulation to css manipulation to popup windows and asdvertising, as well as a great deal more that I am not awake enough to think of. You may want to check out the javascript forum as they are generally quite busy and should have a great deal of info already posted.
-Tarwn ------------ My Little Dictionary ---------
Extreme Programming - (1)Trying to code before my second cup of coffee. (2) While(1){ Ctrl+C; Ctrl+V; }
FAQ - Web-ese for &quot;Forget Asking Questions, I am to busy&quot; :p
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top