Navigate command

Hi folks,

   I am used to using response.redirect to motor to a new page and writing on the server-side.With client-sdie coding,I can not do this.And I understand why.
  My problem is I have a page which is written on the client-side and need to use another method to redirect since response object is not recoginized on the client side.
I have tried this (which doesn't work :((   )

      window.navigate("FutureRpt.asp")

If I use window.open("FutureRpt.asp"), it works, but opens it as pop-up window instead of a new window. I am using client-side vbscript.
What on earth am I doing wrong?? :-(
Any help would be appreciated....
bearpawsAsked:
Who is Participating?
 
sajuksCommented:
Can you post your code ?
this works
<A href="whatever" onclick="location.href='http://www.rediff.com';return false;" >Rediff</a>
0
 
sajuksCommented:
try,

location.href = "FutureRpt.asp"
or
window.location.href = "FutureRpt.asp"
0
 
bearpawsAuthor Commented:
nope, neither works.....:-(
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
mrichmonCommented:
window.location = "FutureRpt.asp";
0
 
bearpawsAuthor Commented:
do I have to use an absolute location, ie http://blah blah.com  ??


0
 
bearpawsAuthor Commented:
sajuks,

   Sorry so long to reply.. based on the info you gave to me, this worked:

<input type="image" name="btnreturn" onclick="location.href='FutureRpt.asp';return false;" src=images/return.jpg"


 could you be as so kind and explain why I need a return false?
I think I know the answer but....
0
 
sajuksCommented:
Return keywords used within event handlers return a true or false value (boolean value) to the browser, they are generally used to interupt a natural browser behavior. In this example, the return false statement is interupting the browser's natural behavior of opening the URL contained in the href attribute's quotes. There is no convention as to when to use true or false - the various behaviors respond to true and false differently.
Chec kthis link:
http://www.evolt.org/article/JavaScript_The_Point_of_No_Return/17/8869/?format=print&rating=true&comments=false

Thanks for the points and grade
0
 
bearpawsAuthor Commented:
thnak you so much for explaining. I was pretty sure that was the reason, but didn't really find any material to support my conclsion. Good link!
thanks again. :-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.