Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums on April 1st. BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
07-03-2011 11:21 PM - edited 07-04-2011 07:32 AM
I am having trouble getting jquery .hide()/show() working in webworks on OS6. Is this a known quirk? I am able however to get similar behavior with jQuery mobile. This is my jquery test:
//$("div.page").css("display", "none"); //This hides
targetPage = "div#" + pageToShow ;
//$(targetPage).css("display", "block"); //This shows
08-16-2011 08:44 AM
What version of JQuery are you using? Does it work with version 1.5.2?
08-16-2011 10:43 AM - edited 08-16-2011 10:46 AM
In my case I'm using the version 1.6.2 of JQuery. I some cases the hide/show methods work fine but when I call one of them from a callback that I registered to the blackberry.system.event.onHardwareKey specifically for the BACK_KEY, the behavoir of the methods presents drawbacks rendering the divs I'm trying to display (but not for hiding the other div)
The problem resides mainly in the rendering of the div. I have thought in remove the div from the DOM instead of use the show/hide methods or the css display attribute. What would be the better approach?
Im testing in the BlackBerry Torch 9800 simulator and in a BlackBerry Curve 9300 with the BlackBerry OS 6. It's worth to say that in the BlackBerry OS 5 is working fine.