- This topic has 8 replies, 3 voices, and was last updated 12 years, 5 months ago by
arc-itech.
-
AuthorPosts
-
arc-itechParticipantHi I am trying to create a disclaimer pop up which will have an ok and cancel button, can you help, have no idea where to even start for this one.
paulDMemberHi
The easiest way to produce a pop up box is to apply a on click pop up alert on one of your page items like in the image. If you require anything more specific your going to have to code it in your custom javascript file.
Hope this helps
Paul
Attachments:
You must be logged in to view attached files.
arc-itechParticipantHi Still need this to work, an alert box isnt good enough for what I want to do,
I tried a simpler version :
navigator.notification.alert(
‘You are the winner!’, // message
alertDismissed, // callback
‘Game Over’, // title
‘Done’ // buttonName );}
which didn’t work either. I really need to have a dialogue box that works:
This is the code that I want to get working:
navigator.notification.confirm(
‘The makers of this programme cannot be held responsible for injury, loss or illness associated with doing the programme during pregnancy. We strongly recommend that you should wait until after your first scan before undertaking any of the exercises. Exercise is not suitable for everyone; you should take care and consideration in respect of your suitability. Consult your doctor or midwife before embarking on this or any other exercise programme.’, // message
onConfirm, // callback to invoke with index of button pressed
‘Disclaimer’, // title
‘OK,Cancel’ // buttonLabels
);Thanks
paulDMemberBecause your disclaimer is pretty long why not have a disclaimer page linked to a click event? You can then just add a button with the label accept to go to wherever you need in your app.
arc-itechParticipantHi, thanks for your reply, I did that but my client doesn’t like it and prefers a dialogue box, I tried to replicate it by using a panel with rounded edges etc, but could not get the panel to center and not auto resize when used on diffferent devices and orientations.
Unknown AuthorParticipantThis example is a little unrealistic, since the answer to “Are you sure you want pizza?” is always “yes!”… 🙂
-1TC
paulDMember@arc-itech wrote:
Hi, thanks for your reply, I did that but my client doesn’t like it and prefers a dialogue box, I tried to replicate it by using a panel with rounded edges etc, but could not get the panel to center and not auto resize when used on diffferent devices and orientations.
Ok another idea! How about using a image for the dialogue box, that way you can preserve the aspect ratio in both screen orientations and you can add a click event to continue? You can make the image look like a dialogue box with the text you need. I don’t think it would hurt the file size that much.
Paul
paulDMember@1thinchip wrote:
This example is a little unrealistic, since the answer to “Are you sure you want pizza?” is always “yes!”… 🙂
-1TC
Except when it has olives on it thats just wrong 🙂
arc-itechParticipantPaul, using an image to give the look of a dialogue box soundas interesting, I am going to give that a go, will let you know I get on
Thanks
-
AuthorPosts