1

mobile.changePage('UI/Demo/home.html');

不使用AJAX,如何调用?Blackberry 5 对此不支持 AJAX。任何建议将不胜感激。提前致谢。

4

3 回答 3

0

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.

于 2012-07-25T17:34:22.037 回答
0

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

于 2012-07-24T11:15:07.953 回答
0

您可以尝试使用:

window.open(url)
于 2012-07-24T11:32:35.977 回答