facebook

On Click event

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

    Nie Que
    Member

    Hi, Im making an app using mobione. Im working on displaying pop up url. I want to display my pop up url when one of my button on tabbar is click. I don’t know how to make it work. Is there somebody who could help me pls. thank you.

    #350615 Reply

    Code_A
    Member

    Are you trying to popup and display an actual webpage or are you trying to popup a URL link that the user can click?

    #350624 Reply

    Nie Que
    Member

    i want to pop up the webpage with navigation button back

    #350625 Reply

    Code_A
    Member

    Have you tried using showURL or is this not what you want?

    phoneui.showURL("http://my-url.com", "_blank")  //open in new window
    //OR
    phoneui.showURL("http://my-url.com", "_self") //open in current window
    #350626 Reply

    Nie Que
    Member

    this is what i want to happen. I want to Pop up url when chat is being click, there’s no on click on the chat button since I’m using tabbar and there’s no onclick property on it.

    Attachments:
    You must be logged in to view attached files.
    #350627 Reply

    Nie Que
    Member

    once the chat button is click this window will pop up

    Attachments:
    You must be logged in to view attached files.
    #350628 Reply

    Code_A
    Member

    I don’t think you can do it directly. Some thoughts:

    1. Have you tried putting the code in the On Change event of the multipage?

    if (activePage == 'm1-screen-Chat') {
    phoneui.showURL('my-url');
    }

    2.You also could place custom button over the chat tab and make the it transparent. Then use its on Click event to show the URL.

    3. You could just place a regular button on the page that says “Click to Chat” or something.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: On Click event

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