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
Contributor
Posts: 17
Registered: ‎02-22-2012
My Device: 9780&Bold
My Carrier: Vodafone

BlackBerry advertising

Hi

I am using the BlackBerry advertising. When hidden layer where the advertisement:

document.getElementById ("capa_Publicidad"). style.display = 'none';

The application crashes. What I can do?

Thank you very much, regards

Contributor
Posts: 15
Registered: ‎08-07-2011
My Device: Playbook
My Carrier: None

Re: BlackBerry advertising

i am new to javascript, but try removing the 2 spaces... after "getElementById" and before "style.display"

Contributor
Posts: 13
Registered: ‎03-06-2012
My Device: 9930, 9900
My Carrier: -

Re: BlackBerry advertising

Are you sure, document.getElementById ("capa_Publicidad"). style.display = 'none';

is the reason behind this crash?

 

See if you can take a closer look at the crash if possible using the code below.

 

 

try {

var capa_p = document.getElementById ('capa_Publicidad');

capa_p.style.display = 'none';

}

catch (ee) { alert(ee.message); }



 

Highlighted
Contributor
Posts: 17
Registered: ‎02-22-2012
My Device: 9780&Bold
My Carrier: Vodafone

Re: BlackBerry advertising

Hi,

 

Thank you very much for your answer but still not working. Finally I put advertising on a fixed layer.

 

regards