facebook

Changing a widget’s properties with JavaScript: CLOSED

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

    CorsairTwo
    Member

    I have not been able to figure our or find any reference to changing a widget’s properties with JavaScript. Specifically, I want to set a push button’s “on click” action to Dial Phone but leave the phone number property blank. Then with a piece of JavaScript code, I want to assign a number to that property. This allows me to use one button to handle calls to many different numbers. Any helps would be greatly appreciated.

    Thanks,
    David

    #333517 Reply

    Hi David,

    Next snippet should be helpful for you:

    phoneui.callPhone(x);

    Where x is a string with the phone number. Example:

    phoneui.callPhone("0000000000");

    Let me know how it goes for you.

    #333584 Reply

    CorsairTwo
    Member

    Works Perfect! Thanks so much. I couldn’t a reference for that anywhere.

    #333598 Reply

    Glad it was helpful for you. Closing thread.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Changing a widget’s properties with JavaScript: CLOSED

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