BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-08-2009, 08:33 PM   #1
ptys
Knows Where the Search Button Is
 
Join Date: Jul 2008
Model: none
PIN: N/A
Carrier: none
Posts: 26
Default Scrolling the browser field

Please Login to Remove!

Hello All,

I use the browser field to show HTML pages. Those pages have links to different targets just like regular web pages, some relative and some not. Iíve implemented link handling to respond to clicks on those links. New target pages are shown by deleting the layout manager containing the browser field, and adding a new one showing the new page content (for various reasons I can't push new screens for that). All works well, however, since I'd also like the user to go back to previous pages, when they click back and I re-add the manager showing previous page's content, the scroll offset and focus within the browser field is lost.

Does anyone know how to set the currently "focused" area of the HTML document in the browser field? Setting the scroll position on the parent layout manager doesn't work. It does work immediately after the scroll is set, but the moment any navigation event is triggered, since the browser field thinks focus is at the top again, everything goes back to the top of the page.

There is a way to make the browser field scroll by injecting navigation events, but this is inaccurate and more of a hack.

Has anyone implemented browser-like behavior using the RIM browser field together with browser history?

Thanks.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


OMTech 40W CO2 Laser Engraver K40+ Motherboard for Lightburn & Rotary Axis Comp. picture

OMTech 40W CO2 Laser Engraver K40+ Motherboard for Lightburn & Rotary Axis Comp.

$143.99



AAEON UP Single Board Computers UP Squared Pro, UPN-APLC2F-A10-0432 picture

AAEON UP Single Board Computers UP Squared Pro, UPN-APLC2F-A10-0432

$210.00



(NOS) SEMCO - PC CONTROL BOARD - T144 - ELECTRONIC INTEGRATOR - NEW in BOX picture

(NOS) SEMCO - PC CONTROL BOARD - T144 - ELECTRONIC INTEGRATOR - NEW in BOX

$116.55



AXIOMTEK CEM830 REV.B1-RC - Socket M Intel Core 2 Duo IND. EMBEDDED MOTHERBOARD picture

AXIOMTEK CEM830 REV.B1-RC - Socket M Intel Core 2 Duo IND. EMBEDDED MOTHERBOARD

$449.99



Motherboard Main Logic Board for Acer Monitor R241Y Bbix HDMI+VGA + power button picture

Motherboard Main Logic Board for Acer Monitor R241Y Bbix HDMI+VGA + power button

$29.99



500 16x18

500 16x18" Open-Top Dou Yee Static Shield Bags -

$197.41







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.