?
Solved

Java Programming question

Posted on 1997-06-05
3
Medium Priority
?
223 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

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 …
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses
Course of the Month9 days, 7 hours left to enroll

762 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