facebook

Pop Up Screen

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    robert65
    Member

    hi looking for some assistance where can I find the option to change the word “alert” that appears when I opt to have a pop up message to something that I want, I have been unable to find any previous info

    #341583

    DaveClark
    Participant

    use phoneui.alert(), instead of alert()

    if you do this in a web app, it will be the same as the normal alert, it will show the alert header. but if you do this in a native app, then the title will say whatever you want and the message will also say whatever you want

    function test()
    {
    var message = “this is the message you want to say”
    var title = “this is the title that you want”;
    phoneui.alert(message, ”,title,”);

    }

    #341584

    robert65
    Member

    Dave, thanks, I will try it out

    #341612

    robert65
    Member

    Dave, I went in to phoneui but was unable to locate the text that you provided, can you supply anymore info

    #341631

    DaveClark
    Participant

    phoneui.alert() is cordova or phonegap, you do need to do anything, as it is the basis of mobione. just copy and paste the funtion “test()” and go to it from an “on click event” pick run javescript and enter test(). build as an ios app and the alert title and message will be whatever you enter for the variables you use in test(). you do not even need to declare anthing as mobione knoews what that means. good luck

    #341632

    DaveClark
    Participant

    here is a link to a working app:

    http://goo.gl/YqcrKq

    I forgot that apps need to be provisioned for each device, so forget the link. but , phoneui.alert() does work as intended in place of alert()

    good luck

    #341635

    robert65
    Member

    Dave thanks for both posts, I had already carried out the actions on the first one by entering the JavaScript but nothing happened

    #341808

    robert65
    Member

    sorry to be a pest but still struggling with this, I did what Dave said but still not working any ideas?

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Pop Up Screen

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