开发者

Android-jQM: MyWebViewClient::shouldOverrideUrlLoading() not working with local URI

开发者 https://www.devze.com 2023-04-08 12:52 出处:网络
I\'m using Android\'s WebViewClient to handle <a> clicks of my jquerymobile page. It is working fine when my target is some full url like <a href=\"h开发者_如何学编程ttp://stackoverflow.com\"

I'm using Android's WebViewClient to handle <a> clicks of my jquerymobile page. It is working fine when my target is some full url like <a href="h开发者_如何学编程ttp://stackoverflow.com"> but if my target is local script for eg. <a href="test.html">, I'm not event getting the call to my shouldOverrideUrlLoading.

thanks, nehatha


I could find the solution doing this:

<a href="file.php?number=<?=time();?>" ... data-ajax='false'>Link</a>

Hope it works for you. Cheers

0

精彩评论

暂无评论...
验证码 换一张
取 消