05-01-2009 08:03 PM
I'm developing a small web app using asp.net and javascript that has two web pages. WebPage1 needs a fixed toolbar and webPage2 does not. As you scroll WebPage1, the toolbar should stay fixed to the top of the client window. I've got this working for IE and Safari (iPhone), but I'm having a hard time getting it to work on older Blackberrys (Ranger 8100 os ver. 4.5.0.110, Pearl os ver. 4.2.1.96).
I can get javascript to run in the onload event on these devices, but I cannot connect to any scroll or to the unload event. Because I cannot connect to the scroll event, I tried using a timer and the setInterval function to run code to reposition the toolbar. I can get javascript to run successfully with a timer or with the setInterval function. Problem is, that javascript continues to run after I leave WebPage1 and go to WebPage2. I went with using a timer to call the moveToolbar function, and at the end of the function, I interogate the window.location or the window.document.url and in every case, this returns the url of WebPage1, even after I go to WebPage2. The javascript is defined within <script> ... </script> tags withing the body section of WebPage1.
Is there any way to connect to a scroll or unload event on the Blackberry (ver. 4.2 or 4.5)?
Is there any way to get a page to realize it is actually dead to make it's locally defined javascript code stop running?
thanks in advance
steven ![]()
05-04-2009 04:15 PM
05-04-2009 05:29 PM
Ouch! That's what I was afraid of. Thankx for the info.