Can I use Mojo.Controller.showAlertDialog within PhoneGap?

edited April 2012 in General
This afternoon I'm trying PhoneGap 1.5, and I cannot use navigator.notification.alert("Hello", function() {}, "OK") but navigator.notification.alert("Hello") works. I checked phonegap.js and did find the definition that Notification.prototype.alert = function(message, response, icon) {...};. So, what's wrong?
Actually I just want to see whether can I use such a thing like Mojo.Controller.showAlertDialog which shows a modal dialog so that users can have a choice what's going on.


  • I'm assuming you're using enyo (this is the enyojs forum after all ;) ) so you're probably better off to create a Popup instance with the content you need to display.
  • edited April 2012
    I do want to use enyojs, but I think using PhoneGap I can get rid of so many issues about crossing platforms, and enyojs is another framework that can code elegantly.
Sign In or Register to comment.