facebook

Dialogue box

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #332627 Reply

    arc-itech
    Participant

    Hi 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.

    #332629 Reply

    paulD
    Member

    Hi

    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.
    #332844 Reply

    arc-itech
    Participant

    Hi 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

    #332851 Reply

    paulD
    Member

    Because 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.

    #332854 Reply

    arc-itech
    Participant

    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.

    #332865 Reply

    Unknown Author
    Participant

    This example is a little unrealistic, since the answer to “Are you sure you want pizza?” is always “yes!”… 🙂

    -1TC

    #332871 Reply

    paulD
    Member

    @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

    #332872 Reply

    paulD
    Member

    @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 🙂

    #332901 Reply

    arc-itech
    Participant

    Paul, 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

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Dialogue box

You must be logged in to post in the forum log in