사용 버튼을 클릭 리스너 내부 통지에 길게 누르에 대한
$(document).on(function(){
$("#taphold").bind("taphold",function(){
var hi=confirm("Do you really want to delete data");
if(hi==true) {
db.transaction(function(tx){
tx.executeSql(deleterecord,[id]);
alert("Record Deleted Successfully");
parent.location='file:///android_asset/www/index.html';
});
}else{
alert("Data not deleted");
}
});});
감사를 사용했던 코드 ... 더 많은 정보 확인을 위해
// process the confirmation dialog result
function onConfirm(button) {
alert('You selected button ' + button);
}
// Show a custom confirmation dialog
//
function showConfirm() {
navigator.notification.confirm(
'You are the winner!', // message
onConfirm, // callback to invoke with index of button pressed
'Game Over', // title
'Restart,Exit' // buttonLabels
);
}
... Phone gap doc입니다
안녕하세요 rply하지만 주셔서 감사합니다 rply하지만 그것의 작동 onclick 기능을 원하는대로 표시 메시지 만 사용자가 길게 누르면 단추입니다 .. –