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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make link with button in Interdev 3

Status
Not open for further replies.

rtshort

IS-IT--Management
Feb 28, 2001
878
US
This may sound like a "stoopid" question to some of you pros, but how in the H&%$ do you make a button link to another page in your web. It's driving me "KRAZY". Rob
Just my $.02.
 
in the onClick method of your button, just put a response.redirect.
 
Thanks frogggg. I think I may still have a few nerves left. Rob
Just my $.02.
 
For anyone else that may be looking for information on this subject, frogggg's solution works. Another solution I found in another forum is "location.href"

Rob
Just my $.02.
 
Actually, you have to do the location.href. The response.redirect won't work after you have processed HTML code to the page. And beings you are doing all of this off of a button, which means client side( I am guessing) you need the client side redirect which is

location.href or
window.location


The money's gone, the brain is shot.....but the liquor we still got.
 
Thanks Dynapen, I'll make a note of it. Rob
Just my $.02.
 
If you dare to use DTC controls, then you may care to try the PageObjectDTC. Plonk one of these on each page.

In the 'Target' page - that accepts parameters - you probably want to process these parameters in a function. So add a function, say
function navDoAddItem(intID, strValue)
...etc...

In the pageObject on that page, select this function as a 'navigate' function.

In the pageObject on the FIRST page, select the TARGET page in the 'references' tab.

Now locate your 'link' - in its onclick code type the name of the TARGET page. VI should pop-up a list of options - select 'navigate', then it pops up another list JUST SELECT YOUR FUNCTION!! It even prompts you for the required parameters (intID and strValue). WOW!

You can do this on both client and server side code, depending on the pageObject settings. (Content Management)
 
Thanks, but I don't quite get the DTC controls yet. They don't like me. I may try it in the future though. Rob
Just my $.02.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top