Solved

Java Programming question

Posted on 1997-06-05
3
179 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
pairstar challenge 2 42
word0 challenge 4 53
GUI builder for Eclipse? 8 11
Java DateChooser? 2 13
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now