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.
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"
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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.