?
Solved

Java Programming question

Posted on 1997-06-05
3
Medium Priority
?
232 Views
Last Modified: 2010-04-16
I'm serching for a way to use an anchor in a url.
It seems to me that the Virtual machines on Explorer and Netscape doesn't support this.

What I want is to make an applet that loads a page
and displays it at some paragraph in th text.
I have to use an anchor for that but it doesn't seem to work.

Does anyone no a workaround for it or another methode that makes this possible ?
0
Comment
Question by:rvdb
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
garik earned 0 total points
ID: 1221283
Use regular anchor syntax:
  getAppletContext().showDocument(getDocumentBase(),"Test.html#here");

It works in Netscape (both 3.01 Gold and Communicator PR5), and it's a known bug in MS IE. I haven't tried it yet in IE 4.0
0
 
LVL 3

Expert Comment

by:garik
ID: 1221284
Hold on, I've found workaround for MS IE!
IE skips first pound sign, so the above URL is translated to "Test.htmlhere", but fortunately it doesn't skip the second #.
Test for the browser and if it's MS IE, add a second # to make it "Test.html##here"

(Thats a 200 points answer! :)
0
 

Author Comment

by:rvdb
ID: 1221285
Checked ot the answer is correct
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses
Course of the Month17 days, 13 hours left to enroll

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question