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
-- 2 1532
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\fil e.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.
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 uses frames - one menu frame that is always present
and one frame into which the content is loaded. The intranet sit
features many, many links to both internal and external pages - i
internal pages within the intranet and external pages on the...
|
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 the
fields into separate directories.
i.e. if I do make debug, all .o files and the executable should go
into the debug directory (compiled with -g on).
Similarly for the optimized version.
I'm a novice at makefiles, I basically hack at them...
|
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
http://blogs.msdn.com/johnri/archive/2005/11/29/498219.aspx
--
|
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 gets unresolved
externs:
pure error LNK2020: unresolved token (0A000006) _CxxThrowException
pure error LNK2020: unresolved token (0A000015) delete
pure fatal error LNK1120: 2 unresolved externals
|
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 on, for example, the sitemap
link in the navigation bar on the sitemap page, the studies link for the
navigation bar on the studies page, etc.
The css is at http://www.TheBicyclingGuitarist.net/css/style.css
The sitemap is at...
| |
by: AnnaWhite |
last post by:
Hello
How can i do to open two windows in defferents targets, using just one link?
thanks
|
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 try try</a>
$('#foo').click(function(){
$('ul',this.parentNode).BlindToggleVertically(500);
this.blur();
return false;
|
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: 'Avoid using BitmapEffects as they have very poor performance
characteristics. They will be deprecated in a future version. Consider
using the UIElement.Effect property and ShaderEffects where appropriate
instead.'
|
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 application,always getting the below error.I use MSBuild to build the application,got the same result.The details of the versions I am using is given below
Visual Studio 2008 Version 9.0.30729.1 SP
MS Dotnet Framework version 3.5 SP1
OS windows XP
...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |