Can I link from a topic in the help system to an HTML file on the machine and load it in another &qu [message #265244] |
Tue, 03 August 2004 11:39  |
Eclipse User |
|
|
|
Originally posted by: nospamkowalski.ibm.com
Hi,
I have a topic in the Eclipse help system running in standalone mode and I
want to have a link that opens a new browser window and loads an HTML file
that's on the user's machine. The HTML file is not in an Eclipse plugin, it
is just a plain file in the filesystem.
I've done links from a topic in the help system to an external Web site
coded as:
<a href="http:www.blahblah.com" target="_blank">See this Web site</a>
and from the help system, a new "plain" browser window opens to that Web
site, which is what is desired.
Is there a similar way to code the link from an HTML topic file in a doc
plugin to open an HTML file on the file system in a new "plain" browser
window?
For example, if I have:
c://eclipse/plugins/com.ibm.blahblah.doc/
file1.html
file2.html
file3.html
and then elsewhere on the system, I have:
c://samplefiles/
aaa.html
bbb.html
is there a way to code the anchor tag so that a link in file1.html in the
help system will open a new browser window that loads file aaa.html?
Thanks!
--Lee Anne
|
|
|
|
Re: Can I link from a topic in the help system to an HTML file on the machine and load it in another [message #265305 is a reply to message #265279] |
Tue, 03 August 2004 19:48   |
Eclipse User |
|
|
|
Originally posted by: nospamkowalski.ibm.com
Hi Konrad,
That doesn't seem to be working right for me. I'm running a Version 3
standalone help system on Windows 2000.
What happens is a window opens to My Computer, showing the icons for
C_Drive, Control Panel, etc.
I can't seem to get it to find the aaa.html file itself. If I put aaa.html
file inside the doc plugin folder and use <a href="aaa.html"
target="_blank">, then it will open a new browser and load the help system
and load the aaa.html file.
But if I put aaa.html in another directory on the Windows filesystem, I
can't seem to create an href construction that will load the aaa.html file
in its own window. I get a "My Computer" window.
Any hints on what tagging to try?
--Lee Anne
"Konrad Kolosowski" <konradk@ca.ibm.com> wrote in message
news:ceoolj$pg8$1@eclipse.org...
> <a href="file:///c:/samplefiles/aaa.html" target="_blank">See this Web
> site</a>
>
> will do.
>
> "Lee Anne Kowalski" <nospamkowalski@ibm.com> wrote in message
> news:ceobc7$v6$1@eclipse.org...
> > Hi,
> >
> > I have a topic in the Eclipse help system running in standalone mode and
I
> > want to have a link that opens a new browser window and loads an HTML
file
> > that's on the user's machine. The HTML file is not in an Eclipse plugin,
> it
> > is just a plain file in the filesystem.
> >
> > I've done links from a topic in the help system to an external Web site
> > coded as:
> > <a href="http:www.blahblah.com" target="_blank">See this Web site</a>
> >
> > and from the help system, a new "plain" browser window opens to that Web
> > site, which is what is desired.
> >
> > Is there a similar way to code the link from an HTML topic file in a doc
> > plugin to open an HTML file on the file system in a new "plain" browser
> > window?
> >
> > For example, if I have:
> > c://eclipse/plugins/com.ibm.blahblah.doc/
> > file1.html
> > file2.html
> > file3.html
> >
> > and then elsewhere on the system, I have:
> > c://samplefiles/
> > aaa.html
> > bbb.html
> >
> > is there a way to code the anchor tag so that a link in file1.html in
the
> > help system will open a new browser window that loads file aaa.html?
> >
> > Thanks!
> > --Lee Anne
> >
> >
>
>
|
|
|
Re: Can I link from a topic in the help system to an HTML file on the machine and load it in another [message #265455 is a reply to message #265305] |
Wed, 04 August 2004 17:19  |
Eclipse User |
|
|
|
Lee Anne,
I have tried on Windows 2000 and it works too. For example:
<a href="file:///E:/eclipse3.0/eclipse/notice.html" target="_blank">See
this Web site</a>
Make sure the file exists, and you specify URL for the file protocol
correctly: start with file:///, use forward slashes, and URL encode any
special characters in the path.
Konrad
Lee Anne Kowalski wrote:
> Hi Konrad,
> That doesn't seem to be working right for me. I'm running a Version 3
> standalone help system on Windows 2000.
> What happens is a window opens to My Computer, showing the icons for
> C_Drive, Control Panel, etc.
> I can't seem to get it to find the aaa.html file itself. If I put aaa.html
> file inside the doc plugin folder and use <a href="aaa.html"
> target="_blank">, then it will open a new browser and load the help system
> and load the aaa.html file.
> But if I put aaa.html in another directory on the Windows filesystem, I
> can't seem to create an href construction that will load the aaa.html file
> in its own window. I get a "My Computer" window.
> Any hints on what tagging to try?
> --Lee Anne
> "Konrad Kolosowski" <konradk@ca.ibm.com> wrote in message
> news:ceoolj$pg8$1@eclipse.org...
> > <a href="file:///c:/samplefiles/aaa.html" target="_blank">See this Web
> > site</a>
> >
> > will do.
> >
> > "Lee Anne Kowalski" <nospamkowalski@ibm.com> wrote in message
> > news:ceobc7$v6$1@eclipse.org...
> > > Hi,
> > >
> > > I have a topic in the Eclipse help system running in standalone mode and
> I
> > > want to have a link that opens a new browser window and loads an HTML
> file
> > > that's on the user's machine. The HTML file is not in an Eclipse plugin,
> > it
> > > is just a plain file in the filesystem.
> > >
> > > I've done links from a topic in the help system to an external Web site
> > > coded as:
> > > <a href="http:www.blahblah.com" target="_blank">See this Web site</a>
> > >
> > > and from the help system, a new "plain" browser window opens to that Web
> > > site, which is what is desired.
> > >
> > > Is there a similar way to code the link from an HTML topic file in a doc
> > > plugin to open an HTML file on the file system in a new "plain" browser
> > > window?
> > >
> > > For example, if I have:
> > > c://eclipse/plugins/com.ibm.blahblah.doc/
> > > file1.html
> > > file2.html
> > > file3.html
> > >
> > > and then elsewhere on the system, I have:
> > > c://samplefiles/
> > > aaa.html
> > > bbb.html
> > >
> > > is there a way to code the anchor tag so that a link in file1.html in
> the
> > > help system will open a new browser window that loads file aaa.html?
> > >
> > > Thanks!
> > > --Lee Anne
> > >
> > >
> >
> >
|
|
|
Powered by
FUDForum. Page generated in 0.05333 seconds