Solved

Java Programming question

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
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…
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…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

828 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