How about this - I just tried

M-x browse-url
javascript:window.navigate("file:///C:/java/jdk1.3.1/docs/api/java/lang/Stri
ng.html#hashCode()")

and it worked.  Don't know if it will work with Netscape/Mozilla, though
(don't have it installed) - can anyone confirm?

/Nick

-----Original Message-----
From: Nick Sieger [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 07, 2001 9:49 AM
To: 'Javier Lopez'; 'Paul Kinnucan'; '[EMAIL PROTECTED]'
Subject: RE: Browsing to an anchor


The second case that you describe, Javier, may be more user-friendly than
forcing the user to specify the path to IE.  It's more work for the JDE, but
less work for the user.

That's a lousy hack by M$ that iexplore.exe parses and receives the anchor
but start/explorer does not.  I thought the browser was supposed to be
integrated into the OS.  Somebody notify the DOJ...:)

/Nick

-----Original Message-----
From: Javier Lopez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 07, 2001 6:40 AM
To: Paul Kinnucan; [EMAIL PROTECTED]
Subject: RE: Browsing to an anchor


I will need to look into this more but this
is my assessment.
This command typed from my bash shell does exactly what is supposed to

IEXPLORE.EXE
file:///D:/jdk1.3.1/docs/api/java/util/Hashtable.html#entrySet\(\)

Opens the documentation and goes to the entrySet anchor.
I believe you are probably using the browse-url function,
this seems to be using the explorer(instead IE) to open urls.
The explorer command from the command line ignores any anchors added
at the end of the url.

An idea to solve the problem will be to call the function
from the jde directly without using browse-url.
This will require the user to specify their browser and
the path for it.

> to resort to a kluge like generating an HTML doc on the fly that would
> require the user to click on a link to get to the anchor point or to have
> to create my own browser in Java.
In the worst case, that you have to do this, when you generate the html page
you can make it redirect automatically so that the user don't have to click
on
the link.

Javier

Reply via email to