Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Academic Developer Network

Reply
New Developer
chakraborty7
Posts: 6
Registered: 10-31-2011
My Carrier: BlackBerry OS

BlackBerry API call.....

hi everyone....

I have just started developing utilizing webworks for BlackBerry Playbook.......

I have encountered the following problem....

 

-----------------------------------------------------------------
<script type="text/javascript">

function dialogCallBack(index){
alert("you have selected: "+buttons[index]);
}


function customDialog() {
try{
buttons = ["Android", "BlackBerry", "iPad/iPhone", "NA"];
var ops = {title : "Choose the answer that describes you best", size : blackberry.ui.dialog.SIZE_TALL, position : blackberry.ui.dialog.LOC_CENTER};
blackberry.ui.dialog.customAskAsync("Which mobile technology have you worked on?", buttons, dialogCallBack, ops);

} catch(e) {
alert("Exception in customDialog: " + e);
}

}

</script>

--------------------------------------------------------------------

 

the error shows 

Cant Find Variable blackberry.............

 

please help.......thank u...

 

 

Please use plain text.
New Developer
chakraborty7
Posts: 6
Registered: 10-31-2011
My Carrier: BlackBerry OS

Re: BlackBerry API call.....

i have provided the feature tag and the access tag still the exception persist........:smileysad:

Please use plain text.
BlackBerry Development Advisor
jeffheifetz
Posts: 508
Registered: 07-18-2011
My Carrier: Rogers

Re: BlackBerry API call.....

Hi chakraborty7,

 

Can you please post your config.xml?



1.Please resolve your thread by clicking the "Accept as Solution" button below the post which solved your problem!
2. If any post helps you please click the button below the post(s)
Please use plain text.
New Developer
chakraborty7
Posts: 6
Registered: 10-31-2011
My Carrier: BlackBerry OS

Re: BlackBerry API call.....

<?xml version="1.0" encoding="utf-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="1.0.0">
<name>My App</name>
<author>chakraborty7</author>
<icon src="pydimg.png"/>
<content src="index.html"/>
<access uri="http://devblog.blackberry.com" subdomain="true">
<feature id="blackberry.app"/>
<feature id="blackberry.ui.dialog" />
</access>
</widget>


Please use plain text.