Support for page redirection in Jquery mobile using Ajax calls

Support for page redirection in Jquery mobile using Ajax calls

Hello,

It has no answer yet. BTW, if you want to earn some reputation on SO, I just started a bounty for that.

==

I am building a JQuery Mobile application based on a MVC framework.

My problem is that I cannot send "redirect" directives (either HTTP, Javascript, META-refresh) to the browser. It results in the browser displaying "undefined" (indeed, this error is not explicit at all , it sounds like a bug to me)

I know that I can fix the problem by using data-ajax=false, but i don't want that since :

  • I want nice Jquery mobile transitions
  • This is much faster in Ajax
  • I don't want to wonder for each link whenever the framework might send a redirect

Is there a way to make Jquery mobile handle correctly one kind of redirect ? either HTTP, HTML META or Javascript.

Thanks in advance for your help,
Raphael