tag:blogger.com,1999:blog-5257555736106762701.post9089993547860046535..comments2024-02-15T05:46:49.798-08:00Comments on Learn Yii: How to hide the url address bar on a web page on BlackberryNeil McGuiganhttp://www.blogger.com/profile/14122981831780837323noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-5257555736106762701.post-28064646306963016952012-02-24T01:37:33.926-08:002012-02-24T01:37:33.926-08:00Hi I'm still new to BB webworks development.
I...Hi I'm still new to BB webworks development.<br />I would like to know why url bar don't completely hide on the BB bold 9900 since I'm testing my web app on this device even if you increase the pixels, but works on other devices such as the Torch<br /><br />Thanks in advancedAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5257555736106762701.post-37660364841293220212011-06-14T20:49:07.027-07:002011-06-14T20:49:07.027-07:00@anonymous, good point. the best time to do it wou...@anonymous, good point. the best time to do it would be ondocumentreadyNeil McGuiganhttps://www.blogger.com/profile/14122981831780837323noreply@blogger.comtag:blogger.com,1999:blog-5257555736106762701.post-52203428055765893942011-06-09T14:15:54.533-07:002011-06-09T14:15:54.533-07:00Note that if you still have content loading (for e...Note that if you still have content loading (for example, a good sized image) when the above javascript code runs, the browser may not scroll to the full extent of your request. To solve this problem, implement the above on a delayed basis, e.g.,<br />if(navigator.userAgent.toLowerCase().indexOf('blackberry')>0)var t=setTimeout("window.scrollTo(0,59)",2000);.<br />In this example, the scroll will not occur for 2 seconds (2000 milliseconds), hopefully allowing the content to finish loading (if not, increase the time). I have found that for the browser included with OS 6.0, you need to scroll by 59 pixels in order to remove the bar AND avoid the arrow at the top that indicates content has scrolled off screen.Anonymousnoreply@blogger.com