mobile.changePage('UI/Demo/home.html');
不使用AJAX,如何调用?Blackberry 5 对此不支持 AJAX。任何建议将不胜感激。提前致谢。
mobile.changePage('UI/Demo/home.html');
不使用AJAX,如何调用?Blackberry 5 对此不支持 AJAX。任何建议将不胜感激。提前致谢。
Assuming no data passing without cookies is necessary, something like:
The HTML:
<div id="startsinvisible">
... Stuff to "load" on update...
</div>
<div id="firstload">
... First visible webpage stuff ...
<input id="changepage" type="submit" value="Load New Page" />
</div>
the jQuery:
$('#changepage').on("click", function(e){
$('#firstload').remove();
$('#startsinvisible').show();
}
You can add as many <div>
as you need and hide/remove/show with logic.
This is really more of an AJAX simulation than actual call. As I said in my earlier comments, it's ugly, but could get the job done since you were looking for suggestions. Of course, this doesn't work if you actually need AJAX, and need to send data back and forth.
you may try this javascript redirection i use in my webapps:
<script type="application/javascript">
function redirect(url)
{
window.location = url;
}
</script>
hope it helps
您可以尝试使用:
window.open(url)