Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Highlighted
New Developer
Posts: 65
Registered: ‎08-07-2013
My Device: Blackberry Torch 9800
My Carrier: Mobile App Development
Accepted Solution

How to change the title for alert box using javascript in Blackberry Z10?

Hi All,

 

I have developed Blackberry 10 webworks using Ripple Emulator and Blackberry Webworks SDK 1.0.4.11..In that, I am using alert box and Dropdown box in Javascript..While using those in Blackberry Z10..It displays the title for alert box "JavaScript Confirm" and for Dropdown box "Select"...So i want to change the title for those controls..Please me..Thanks in Advance...

 

Regards,

Marimuthu_P

Retired
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: How to change the title for alert box using javascript in Blackberry Z10?

[ Edited ]

Alerts are native OS controls and you can't modify the titles.

You can use the WebWorks Dialog API to create custom dialogs though:
https://developer.blackberry.com/html5/apis/beta/blackberry.ui.dialog.html


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.