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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 79
Registered: ‎09-17-2012
My Device: Torch 9800
My Carrier: DiGi

Standard/Custom Dialog Box Title Not Displaying?

Hi all. The title for the dialog box doesn't seems to display on the dialog box. I tried using the sample from the api:

 

The sample for the standard dialog box:

<script type="text/javascript">

function dialogCallBack(index){
  alert(index);
}

function standardDialog() {
  try {
    blackberry.ui.dialog.standardAskAsync("Save?", blackberry.ui.dialog.D_SAVE, dialogCallBack, {title : "Save Dialog", size: blackberry.ui.dialog.SIZE_MEDIUM, position : blackberry.ui.dialog.BOTTOM});
  }catch (e) {
    alert("Exception in standardDialog: " + e);
  }
}

</script>

 The "title: "Save Dialog" is not displayed on the dialog box.

 

The same goes to the sample for custome dialog box:

<script type="text/javascript">

function dialogCallBack(index){
  alert(index);
}

function customDialog() {
  try {
    var buttons = ["Yes", "No", "Sometimes", "NA"];
    var ops = {title : "Choose the answer that describes you best", size : blackberry.ui.dialog.SIZE_TALL, position : blackberry.ui.dialog.CENTER};
    blackberry.ui.dialog.customAskAsync("Do you routinely work out?", buttons, dialogCallBack, ops);
  } catch(e) {
    alert("Exception in customDialog: " + e);
  }
}

</script>

 The same thing goes this dialog box as well. "title: Choose the best answer that describes you best" is not displayed.

 

The strange thing is that the titles will show on Ripple but not on the actual device. I'm testing it on 9700(OS5.0) and 9800(OS 6.0).

 

Can anyone please help?

 

Thank you.

 

New Contributor
Posts: 2
Registered: ‎11-10-2010
My Device: Torch 9800
My Carrier: Bell Mobility

Re: Standard/Custom Dialog Box Title Not Displaying?

Have you included the feature in your config.xml file?

 

    <feature id="blackberry.ui.dialog" />

 

Developer
Posts: 79
Registered: ‎09-17-2012
My Device: Torch 9800
My Carrier: DiGi

Re: Standard/Custom Dialog Box Title Not Displaying?

Yes, it is included in the config.xml.