All I want is to Refresh the page and pass a parameter back to my index controller, but Slide up the page.
If I press once, no problem. If I keep pressing Refresh then it literally doubles the call each time I press it. So if I press 3 times it calls the index view @ 4 times
$(document).ready(function(){
$(".ui-btn-right").bind('tap vclick',function(event, ui){
event.preventDefault();
// alert("saw tap");
$.mobile.changePage( "/app/Person/index?refresh_view=true", { transition: "slideup", reloadPage: true} );
});
});
And link is:
<a class="ui-btn-right" data-theme="b" href="/app/Person/index?refresh_view=true" data-transition="slideup">Refresh</a>