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
Developer
ravi1989
Posts: 777
Registered: ‎07-21-2012
My Device: 9810
My Carrier: 0

Is this way to show alert in phone gap..

Hi

 from the last two day i implement one pop up screen In pop up screen header are present and while click the header it description will be display , i want to know is this the way to implement or is there any other best way to implement the same thing..

 

 

only 1 question who to close this pop up on clicking the close button in pop up..?

 

 

Please use plain text.
BlackBerry Development Advisor
oros
Posts: 1,557
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: Is this way to show alert in phone gap..

Hi there,

If I'm understanding your code correctly, you're appending the popup <div> to your page, is that right? To close it, if the element has an id, you could remove it from its parent. An example is here:
http://www.dustindiaz.com/add-and-remove-html-elements-dynamically-with-javascript/

Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Please use plain text.
Developer
ravi1989
Posts: 777
Registered: ‎07-21-2012
My Device: 9810
My Carrier: 0

Re: Is this way to show alert in phone gap..

yes sir

Please use plain text.