[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Java Programming question

Posted on 1997-06-05
3
Medium Priority
?
229 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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 …
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

656 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