BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-17-2007, 03:03 PM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2007
Model: 8300
PIN: N/A
Carrier: AT&T
Posts: 25
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Browser field and anchors

Please Login to Remove!

I am using a browser field to display html pages from existing files ( not URLs). Each Html page has anchor points using the <a> tags.
How to instruct the browser field to go to a specific anchor?

For displaying an html file I am using something like the following:


FileConnection fc = (FileConnection)Connector.open("file:///" + fileName);
browserContent = _renderingSession.getBrowserContent(fc, fileName, this, _event);
if (browserContent != null) {
Field field = browserContent.getDisplayableContent();
if (field != null) {
synchronized (Application.getEventLock()) {
deleteAll();
add(field);
}
}
browserContent.finishLoading();
}

This works fine, to load the html file and position it at the start of the file. What I am looking for is to load a file and position it at a specified anchor point. I appended for example ( #3 ) to jump to an anchor point named 3 in my html file. But it did not work.

Any help will be appreciated.
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

A Vintage WILLIAMS MADE IN USA Scroll Double Open End Wrench # 79S 5/8" And 9/16
$7.5
A Vintage WILLIAMS MADE IN USA Scroll Double Open End Wrench # 79S 5/8VINTAGE McSHIRLEY ELECTRO MALLET 115 VOLTS 25 WATTS EXCELLENT CONDITION
$69.99
VINTAGE McSHIRLEY ELECTRO MALLET 115 VOLTS 25 WATTS EXCELLENT CONDITION pictureVINTAGE LEACH RELAY CO. IMPULSE RELAY TYPE 953 VOLTS AC
$9.99
VINTAGE LEACH RELAY CO. IMPULSE RELAY TYPE 953 VOLTS AC    pictureLarge Vtg Excelsior Green Metal Portable Storage File Cabinet Box 12.5 x 10 x 10
$31.88
Large Vtg Excelsior Green Metal Portable Storage File Cabinet Box 12.5 x 10 x 10 pictureVintage Weston Capacity Meter Model 664
$20.0
Vintage Weston Capacity Meter Model 664 picture






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