I need to open my second page (id=objectside) in JQM Mobil after it's been alert in JavaScript:
function showObjekt(val){
$.getJSON('getObjectDetails.php?ido='+val, function(data) {
//Overwrite divs in page objectside with values from json
objectside.divid.innerHTML=data.value; //example how i overright it
});
$.mobile.changePage("#objectside");
}
As you see i have modified serval divs in the page with the id objectside then I want to load this modified page just like I Would be clickking on link with href="#objectside"
.
This doesn't work. What I do wrong?
'; links+='- Homepage
';
links+="
"; $("#linksdiv").html(links); The first Time I use the function it makes a button (as it should) the following times it just makes a ordinary link. – Lukas Schmidinger Jul 01 '13 at 12:53