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
Posts: 64
Registered: ‎06-16-2011
My Device: bold 9000, playbook
My Carrier: vodafone

blackberry.app.event.onSwipeDown Not Working.

Hello Experts,

 

blackberry.app.event.onSwipeDown is not working when my application is having <iframe > element. Please help me to get rid of this problem.

 

Regards,

Sandesh.

Developer
Posts: 435
Registered: ‎09-20-2011
My Device: Z10 LE, Playbook, DevAlpha C, 9900, 9380
My Carrier: Vodafone

Re: blackberry.app.event.onSwipeDown Not Working.

did u added feature element in your configuration file <feature id="blackberry.app.event" />

Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: blackberry.app.event.onSwipeDown Not Working.

Yes, definitely confirm what SumiGosh has suggeste.  Make sure you have this API whitelisted properly in config.xml:

 

<feature id="blackberry.app.event" required="true" version="1.0.0.0"/>

 

 

 

Otherwise, also confirm you have properly listed the URL + feature for the iFrame being used.

 

For example, if your iFrame is loading http://www.myURL.com and you want to be able to respond to the onSwipeDown event from within the iFrame, you need to make sure you have the following in your config.xml file:

 

<access subdomains="true" uri="http://www.myURL.com">
    <feature id="blackberry.app.event" required="true" version="1.0.0.0"/>
</access>

 

 

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Regular Contributor
Posts: 64
Registered: ‎06-16-2011
My Device: bold 9000, playbook
My Carrier: vodafone

Re: blackberry.app.event.onSwipeDown Not Working.

Thanks @n_adam_stanley,SwipeDown Menu works fine without iFram. In iFrame I am loading the html page which is in the same application (local html). It contains Some script . When I load the page without script Swipedown Menu works just fine, but when i use script in the iFrame page swipeDown menu stop working . Any Suggestion ?
Developer
Posts: 161
Registered: ‎02-08-2012
My Device: PlayBook
My Carrier: None yet

Re: blackberry.app.event.onSwipeDown Not Working.

I'm going to guess that maybe your iframe is receiving the event instead of the main ? Particularly if your iframe encompasses the top part of the display.
Regular Contributor
Posts: 64
Registered: ‎06-16-2011
My Device: bold 9000, playbook
My Carrier: vodafone

Re: blackberry.app.event.onSwipeDown Not Working.

is there any solution for this ?
Developer
Posts: 161
Registered: ‎02-08-2012
My Device: PlayBook
My Carrier: None yet

Re: blackberry.app.event.onSwipeDown Not Working.

Did you try adding your iframe to the features list as was suggested, and seeing if the event is getting called in the iframe, instead of the main?

 

 

Regular Contributor
Posts: 64
Registered: ‎06-16-2011
My Device: bold 9000, playbook
My Carrier: vodafone

Re: blackberry.app.event.onSwipeDown Not Working.

Yes i did, it didnt work Smiley Sad
Developer
Posts: 161
Registered: ‎02-08-2012
My Device: PlayBook
My Carrier: None yet

Re: blackberry.app.event.onSwipeDown Not Working.

i don't really have any other ideas. Although in the years i've been doing web stuff, I've never really found a good reason to actually use an iframe for anything.
Highlighted
Regular Contributor
Posts: 64
Registered: ‎06-16-2011
My Device: bold 9000, playbook
My Carrier: vodafone

Re: blackberry.app.event.onSwipeDown Not Working.

Smiley Happymust say that i had a very bad requirement ....I will post if i get any solution for this ...