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
Regular Contributor
iruka
Posts: 79
Registered: ‎09-17-2012
My Device: Torch 9800

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
CarryingATorch
Posts: 2
Registered: ‎11-10-2010
My Device: Torch 9800

Re: Standard/Custom Dialog Box Title Not Displaying?

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

 

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

 

Regular Contributor
iruka
Posts: 79
Registered: ‎09-17-2012
My Device: Torch 9800

Re: Standard/Custom Dialog Box Title Not Displaying?

Yes, it is included in the config.xml.