Wednesday, 15 September 2010

javascript - JQuery Mobile Full Site Redirect -



javascript - JQuery Mobile Full Site Redirect -

i'm trying quite simple mobile site: adding total site redirection button. mobile site stored in m directory, root /m, while redirect link goes directory root/index.php.

the actual button is:

<a data-role="button" data-theme="a" href="http://www.mysite.com?m=desktop" data-icon="home" data-iconpos="left"> total site </a>

however, problem when link pressed, jquery mobile reformats on index.php page , adds things

<html class="ui-mobile">.

i can't seem find else having issues reason. know how disable links , enable others?

thanks.

add rel="external" attribute button this:

<a data-role="button" data-theme="a" href="http://www.mysite.com?m=desktop" data-icon="home" data-iconpos="left" rel="external"> total site </a>

this forcefulness open new url without loading current dom structure.

javascript jquery-mobile redirect mobile

No comments:

Post a Comment