How do i stop mobile safari from dropping down its URL/Loading bar whenever i submit an ajax request?
Hi Newbie here.
I'm using the following code to send some data to a server whenever I click a particular button using jquery mobile.
$('#btnDoorClose').click(function(evt) {
evt.preventDefault();
$.ajax({type: "POST", url: "remote.php", data: "trigger Door:Close"});
});
But whenever I press it on an iphone, the url bar drops down for a second and then goes away.
How do I stop the URL bar from coming down at all? All the information about "loading" or "busy indicators" online seem to be about creating a fancy animation to show when something's happening. All i want is the page to do nothing and the data "trigger Door:Close" to be sent away to the server...
Any help would be appreciated.
Cheers,
Daniel