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.