// once the device ready event fires, you can safely do your thing! -
jm
function onDeviceReady()
{
document.getElementById("welcomeMsg").innerHTML += "PhoneGap is
ready! version=" + window.device.phonegap;
alert('hi');
}
Since phonegap uses lot of JavaScript for functioning, I wonder why
this alert is not popping up.
The alert does not even pop up outside onDeviceReady()
Any pointers to solve this would be great.
Thanks in advance.
Or, if you must :
window.alert = navigator.notification.alert;
Note that the PhoneGap alert api has additional params as defined here:
http://docs.phonegap.com/en/1.2.0/phonegap_notification_notification.md.htm
l#notification.alert
Cheers,
Jesse
Jesse MacFadyen
{
blog:'r <http://blogs.nitobi.com/jesse>isingj.com',
email:'jes...@adobe.com',
company:
{
name:'Adobe Systems Incorporated
',
site:'www.adobe.com <http://www.nitobi.com/>',
phone:
{
office:'+1 (604) 685-9287 <tel:%2B1%20%28604%29%20685-9287>',
tollFree:'1-866-632-2777 <tel:1-866-632-2777>'
}
}
}
>--
>You received this message because you are subscribed to the Google
>Groups "phonegap" group.
>To post to this group, send email to phon...@googlegroups.com
>To unsubscribe from this group, send email to
>phonegap+u...@googlegroups.com
>For more options, visit this group at
>http://groups.google.com/group/phonegap?hl=en?hl=en
>
>For more info on PhoneGap or to download the code go to www.phonegap.com