- This topic has 11 replies, 7 voices, and was last updated 12 years, 3 months ago by Max87.
-
AuthorPosts
-
TobiasSchallerMemberIs there any chance to hide or change the “http://…” title in the alert window in v2.0 M2 or the final v2.0 release ?
Also I would be willing to change the sourcecode if this is needed. But my customer does not accept this “http://” title, because we need very much alert windows …
support-michaelKeymasterThe alert window in the Test Center is an emulation of the mobile safari alert UI. Thus the site title in the URL can not be changed in the code to affect the outcome on iOS devices. Please note that we will introduce a separate set of notification popup windows asap to get around this problem. I can’t give an exact timeframe but our target is for MobiOne 2.1 release if all goes well. MobiOne 2.0 is planned for late next week or shortly thereafter.
TobiasSchallerMemberGlad to hear that ! Looking forward for it … Thanks
Max87MemberHi Wayne,
is anything new about custom alert boxes with editable title?
Thanks.
support-octavioMemberHi Max,
It still on the todo list, we hope to have something in late summer
SonamGyatoMemberThis would be a good and easy feature to add.
Along with confirm dialog.
KaleMemberFor native Apps you can use this code:
function onConfirm(button) { alert('You selected button ' + button); } navigator.notification.confirm( 'You are the winner!', // message onConfirm, // callback to invoke with index of button pressed 'Game Over', // title 'Restart,Exit' // buttonLabels );
Greetings Kale
Max87MemberHi Kale,
thanks for your answer, I used another dialog(navigator.notification.alert) and it’s working perfectly!
YannMemberHello
this function do not run on my iPhone
i don’t understand, my phone vibrate but he don’t show alert boxfunction pasinternet() { navigator.notification.vibrate(2500); navigator.notification.confirm( 'Aucune connexion internet trouvée.', // message onConfirm, // callback to invoke with index of button pressed 'Erreur', // title 'Restart,Close' // buttonLabels ); }
Max87MemberHello Octavio,
is there any possibility to support navigator.notification.alert dialog?
It’s working fine on my iPhone, but in Test Center, it gives Errors.
Thanks.
support-octavioMember@Max,
TC doesn’t support PhoneGap API ATM.
Max87MemberI have workaround – I use device.platform, which returns win32 if app runs on TC and iPhone, if it runs on device.
So, I can customize dialogs which is not supported by TC to alert(). -
AuthorPosts