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
New Developer
Posts: 3
Registered: ‎07-30-2008
My Device: Not Specified

CSS Support : display none

Hello,

 

I'm trying to use the "display:none;" CSS property on a blackberry browser, but visibly it's not working. I also try to set height and width of my button to 0, but it still appear on the page...

Is there a solution to hide a element of one page ? (in my case an input) ?

 

Thanks in advance.

 

Emmanuel GILLOT

BlackBerry Development Advisor
Posts: 15,752
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: CSS Support : display none

The BlackBerry Browser in current production BlackBerry handheld software release does not support the display:none property.

 

However, additional CSS support is available in BlackBerry handheld software version 4.6.  You can try this out by testing your page using the BlackBerry Bold Simulator included in the beta release of the 4.6 BlackBerry JDE.  It can be downloaded here:  http://na.blackberry.com/eng/developers/devbeta.jsp#tab_tab_jde

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 1,415
Registered: ‎07-30-2008
My Device: Not Specified

Re: CSS Support : display none

I posted this question on another thread but it seems more relevant here. I'm trying to render this url,

http://m.fodors.com/t1.php in a browserfield but it only comes up as a blank page. It works fine in

the BB browser. I've only tried this on a 7130c with 4.1.03 and not sure if it works on anything

else. I tried playing with rendering options etc but nothing changed. I'm also not sure what the

debugging strategy is here since you just send the http connection to the classes and wait.

I've got an httpconnection wrapper class so I guess I could at least see how far it reads into the

url(s) it tries to fetch but I thought there may be some known reason this doesn't work.

 

Thanks.

Developer
Posts: 1,415
Registered: ‎07-30-2008
My Device: Not Specified

Re: CSS Support : display none

This seems to work now, it was failing silently in eventOccured() trying to popup a Dialog on the wrong thread.

Now, if I can get https to work most everything should be fine.

FWIW, I developed a reasonably well instrumented test browser. I

Highlighted
Guru I
Posts: 19,020
Registered: ‎07-29-2008
My Device: Passport, Playbook, 9320BES
My Carrier: Bouygues _ SFR

Re: CSS Support : display none


egillot wrote:

I'm trying to use the "display:none;" CSS property on a blackberry browser, but visibly it's not working.





can you use a hidden attribute instead ? or process on server side to remove the input tag when serving a handheld device ?



The search box on top-right of this page is your true friend, and the public Knowledge Base too: