473,320 Members | 1,612 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

link with two targets

Hi.

I supose that my problem has a javascript solution so, I kindly ask for your
help:

I want to use a link to open one of two files (*not both*) stored each one
in a different partition of my disk. For example:
When a user clicks the link in question, IE searches for the first path
(F:\Folder\file.htm) and opens the file (not procceeding with the second
path). However, if IE can't locate the first file (file or path don't
excist), then it opens the second (G:\Folder\file.html).

Can some one help me please?

--
Merlin dying to the Lady of the Lake:
"We lived our lives with passion and devotion"
--
Please, remove the TRAP to contact me
--

Jul 23 '05 #1
2 1520
Lee
geotso said:

Hi.

I supose that my problem has a javascript solution so, I kindly ask for your
help:

I want to use a link to open one of two files (*not both*) stored each one
in a different partition of my disk. For example:
When a user clicks the link in question, IE searches for the first path
(F:\Folder\file.htm) and opens the file (not procceeding with the second
path). However, if IE can't locate the first file (file or path don't
excist), then it opens the second (G:\Folder\file.html).


We need more detail:

Do you know that the user will be using Internet Explorer?
Recent security warnings have caused their market share to
drop as people switch to Firefox.

Will the targets always be on the user's local disks?

If both are true, then you can use ActiveX to look for the files,
provided the user grants permission for this security breach.

If either is not true, then client-side Javascript won't work.

Jul 23 '05 #2
Lee wrote:
geotso said:

Hi.

I supose that my problem has a javascript solution so, I kindly ask
for your help:

I want to use a link to open one of two files (*not both*) stored
each one in a different partition of my disk. For example:
When a user clicks the link in question, IE searches for the first
path (F:\Folder\file.htm) and opens the file (not procceeding with
the second path). However, if IE can't locate the first file (file
or path don't excist), then it opens the second
(G:\Folder\file.html).
We need more detail:

Do you know that the user will be using Internet Explorer?
Recent security warnings have caused their market share to
drop as people switch to Firefox.


I do use FF since v0.5. However, the project I'm working on is going to be
converted in a .chm file, so there is no need to warry.
Will the targets always be on the user's local disks?

Yes, indead. In fact, the "targets" are only one, the file
G:\Answers\Math\readme.txt, which is located in my own HD!
The problem is that that .chm file will be moved on a CD, for my little son.
Well, when he'll play the CD from WinXP environment (installed in D: with
NTFS format) the readme.txt file will be shown as located in drive G:
(correctly). However, when he'll play the CD from win98 environment
(installed in C:) the readme.txt will be shown as located in drive F:,
because win98 can't see NTFS disks!
That's why I want the one-link-for-two-targets feature.

If this make sense, then can I use javascript? (if you provide me something
of course) :)

Thanks, Lee.
If both are true, then you can use ActiveX to look for the files,
provided the user grants permission for this security breach.

If either is not true, then client-side Javascript won't work.

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Unregistered | last post by:
I'm making an Intranet site for someone who is not very familiar wit making websites, thus I would like to make it as simple as possible fo her when she needs to update it. The intranet site...
2
by: A. Gupta | last post by:
I'm compiling a project that I want to have multiple targets (basically debug and optimized). I would like to just be able to type 'make debug' or 'make optimized' and have the makefile compile...
6
by: Carlos J. Quintero [VB MVP] | last post by:
Hi, This is a question that is asked quite often, so here is some recent info from insde Microsoft: Why Visual Studio targets only one version of the .NET Framework...
4
by: Ray Tayek | last post by:
hi, i am teaching a class using visual studio 2003 in the labs at school and trying to get some pure c++ into a dll so i can sic nunit on it. trying to put the code below into a .net class library...
10
by: The Bicycling Guitarist | last post by:
Hello. I have a navigation bar at the top of all my pages with css-styled buttons that change color when hovered over. I am a little confused on how to disable that for the link that the page is...
3
by: AnnaWhite | last post by:
Hello How can i do to open two windows in defferents targets, using just one link? thanks
5
by: Xu, Qian | last post by:
Hello All, I have some problem by simulating a link click using javascript. The webpage uses a js-library named interface (jQuery like) ------------------------------ <a id="foo" href="#">Try...
4
by: | last post by:
Hi, After installing SP1 for VS2008 and SP1 for .NET 3.5 we get the following warning in a VS2005 build: error CS0618: Warning as Error: 'System.Windows.UIElement.BitmapEffect' is obsolete:...
0
by: leoiser | last post by:
Hi all, I converted one web application(Vb.Net) created in VS2005 Framework 2.0 to VS2008 framework 3.5. (This application is using Reportviewer8.0) After convertion I cant build the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.