<body onload="onLoad()">
<button onclick="onDeviceReady()">Click</button>
<div><output id="stuff"></output></div>
<script src="ttTracker.js"></script>
</body>
function onLoad() {
document.addEventListener("deviceready", onDeviceReady, false);
document.getElementById("stuff").value = "here";
}
// Cordova is loaded and it is now safe to make calls Cordova methods
function onDeviceReady() {
navigator.notification.prompt("Please enter your name", onPrompt,"Registration", ["Ok", "Exit"]);
document.getElementById("stuff").value = "harro";
}
function onPrompt(results) {
alert("You selected button number " + results.buttonIndex + " and entered " + results.input1);
}Cordova Prompt funktioniert nicht?
keine Aufforderung Feld erscheint, wenn ich den Knopf im Simulator auf meinem Computer iphone klicken. Ich arbeite seit einiger Zeit daran. Gerät bereit funktioniert nicht richtig? bitte hilfe! Vielen Dank!
ich innerhalb einer IDE bin Codierung, so dass die HTML und JS sind in separaten Dateien. – mangojango