Note that there are some explanatory texts on larger screens.

plurals
  1. POJavaScript - Alert Message in iPad Application
    primarykey
    data
    text
    <p>Apologies for the rudimentary question, however the problem is I can't seem to find what one would think is a simple yes or no.</p> <p>I have a backbone application that gets loaded into a webIUView (I believe is the proper terminology) within an iPad application.</p> <p>I am simply attempting to do an alert within the application, testing on desktop (safari/chrome/etc) works as expected. However once I fire up the iPad application, my alerts aren't happening.</p> <p>Investigation tells me phonegap has a notifier (<a href="http://docs.phonegap.com/en/1.0.0/phonegap_notification_notification.md.html" rel="nofollow">http://docs.phonegap.com/en/1.0.0/phonegap_notification_notification.md.html</a>) however I really don't want to use another framework just for an alert message.</p> <p>I guess my first question is how come a simple alert doesn't work in iOS? Secondly, if it doesn't should I just do a simple dialog box that would mimic it?</p> <p>Thanks in advance.</p> <p>Edit: Code sample</p> <p>I noticed this when implemented a network connection handler</p> <pre><code> window.addEventListener("offline", function(e) { onNetworkChange(false); }); window.addEventListener("online", function(e) { onNetworkChange(true); }); function onNetworkChange(_isConnected){ var msg; (_isConnected == false) ? msg = "Networking Connection Lost" : msg = "Network Connection Established"; window.alert (msg); } </code></pre> <p>Because I wasn't sure if there was a problem with my code, in another view I decided to do a simple </p> <pre><code> window.alert ('test'); </code></pre> <p>And nothing, I must be either going crazy or overlooking something.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload