Discussions

Web tier: servlets, JSP, Web frameworks: AJAX and window.location.href

  1. AJAX and window.location.href (3 messages)

    Hi, I have a page one.jsp which has a div populated by ajax resonse. In the ajax response, I have a link that says window.location.href = "two.jsp" I suppose that when I click on this link, the whole of one.jsp page should go to two.jsp; but nothing happens. Is it because since the link came from an ajax reponse, it is not linked to the parent one.jsp? Can someone throw some light on it.

    Threaded Messages (3)

  2. ALSO THIS IS THE problem with IE[ Go to top ]

    Also the above mentioned problem is with IE and not with Firefox. It works in Firefox as expected. Any ideas !!
  3. Re: ALSO THIS IS THE problem with IE[ Go to top ]

    Hi ! It looks like an IE bug ... Check this out : IE window.location.href. If you set this from the window.location.href in a Javascript function, is enough to return false. I hope it helps ! Cheers, Sergiu
  4. Re: ALSO THIS IS THE problem with IE[ Go to top ]

    That helps!!! Thanks a lot for the reply..