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

Academic Developer Network

Reply
New Developer
chakraborty7
Posts: 6
Registered: ‎10-31-2011
My Device: PlayBook

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...

 

 

New Developer
chakraborty7
Posts: 6
Registered: ‎10-31-2011
My Device: PlayBook

Re: BlackBerry API call.....

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

Retired
jeffheifetz
Posts: 518
Registered: ‎07-18-2011
My Device: Bold

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)
New Developer
chakraborty7
Posts: 6
Registered: ‎10-31-2011
My Device: PlayBook

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>


Regular Contributor
askselva007
Posts: 114
Registered: ‎06-29-2013
My Device: z10

Re: BlackBerry API call.....

Embedding javascript??

_______________________________________________________
1.If you like my post plz give Like. :smileyhappy:
2.@askselva007 on Twitter :smileyhappy:
3.Catch me www.facebook.com/askselva007 :smileyhappy:

Since your questions was solved and I was able to assist. I would appreciate if you would LIKE my post, this would help me greatly on this forum!