View Full Version : Help with Hyperlink
Running Bear
10-23-2002, 02:25 PM
I've writen a help file using MS Help Workshop. I want to link to it from a web project.
I've created a basic hyperlink to the file.
<a href="myHelp.hlp">Help</a>
When I click it, I'm asked if I want to open, save or cancel. I would like it to just open the file without asking.
Is this possible?
Cheers :D
Al
applesauce
10-23-2002, 02:49 PM
I think if you use a file type all computers will recognize, like .txt, your computer will automatically open the file. I think you're getting that prompt because your computer doesn't know what program to use to open the file.
Running Bear
10-23-2002, 02:54 PM
applesauce,
I'm not sure that what you're saying is correct, because when I choose open. The file opens with out any problems, all I want to do is eliminate a step.
The Help workshop shell ships with all MS products ie office etc.
:thumbsup:
applesauce
10-23-2002, 02:57 PM
i could of course be wrong, but try saving the file as a text file and see what happens that way.
Running Bear
10-23-2002, 03:06 PM
applesauce,
There's no doubt you're not wrong.
A .txt file will open automatically as will a .doc file. This is exactly the type of behaviour that I'm trying to get, but using a help project. I'm trying to take advantage of the professional look and feel that the help workshop provides.
applesauce
10-23-2002, 03:14 PM
sorry then. maybe someone else will come up with something.
:(
Running Bear
10-23-2002, 03:17 PM
Applesauce,
Thanks for trying, appreciated! :D
Revelle
10-23-2002, 05:31 PM
Some of your problem may have to do with individual user preferences btw which can be saved and remembered for each link/download etc.
In anycase, why not use make your 'help' page::
1. a hyperlink - target="_blank"
or
2. Use JavaScript :)
--------------------------------
The JS way
--------------------------------
--------------------------------
<HEAD>
<script language=javascript type="text/javascript">
<!--Hide script from old browsers
function help()
{
window.open('YOUR_FILE_NAME.hlp','NAME_YOUR_WINDOW','width=#,height=#,directories=0,location=0,menub ar=0,scrollbars=0,status=0,toolbar=0,resizable=1')
}
//End hiding of script from old browsers-->
</script>
</HEAD>
.....
<BODY>
<a href="javascript:help()">help file</a>
</BODY>
--------------------------------
--------------------------------
^.^ done.
**You can specify window sizes, scrollbars, etc. Or don't include those parts and the window will be left to open however large need be. Nonetheless, it's a good idea to pick a width/height and just leave scrollbars enabled.
You can use either::
0
or
YES
...as your values. Though some may tell you it's best to use the boolean "YES" instead.
You can go nuts with what the window will look like but there's the basics.
:D
**note: the -->
window.open.....etc
is ALL one line. It appears to be broken here, can't help that -- sorry and, the browser might give the user a warning about the file since it's not a 'usual' recognized web file type or the like, ah.. anyhow good luck.
This is the last time I come back to edit this post :o but you can also have muliple links using this code. Just a matter of adding a few lines of code :)
Running Bear
10-24-2002, 08:19 AM
Revelle,
Thanks for that, I've tried it and it still asks me whether I want to open, save or cancel. I don't think it's possible so I'm going to rewrite my help file in an html page. It's not what I had in mind but I guess it will have to do. :thumbsup:
Kang He
10-24-2002, 12:09 PM
I think it's got more to do with security. After all, getting someone's browser to open files without prompting makes the computer vunerable.
Though using any browser of M$ is already a huge security risk ;).
Running Bear
10-24-2002, 12:20 PM
Paranoid, :D
I guess you're right!
Revelle
10-24-2002, 01:07 PM
Ditto on Kang He's comment re M$ *heh.
And if I did manage to help in some sort of way.. ah, you're welcome :D
Have fun. Oh, and if you want your page to look snazzie and have a different look besides the usual everyday window when they link is opened... there's codes available that can completely if not colour wise at least, change the entire window including menus bars, the 'min', 'max', etc. Seen it done, but as for codes, they're somewhere at www.javascriptkit.com or just gotta ask around the JS part of this huge forum. ^.^
cg9com
10-24-2002, 01:48 PM
i believe your talking about chromeless windows
FAQ: http://www.dynamicdrive.com/dynamicindex8/faq.htm
Demo: http://www.dynamicdrive.com/dynamicindex8/chromeless.htm
http://www.dynamicdrive.com
Revelle
10-24-2002, 06:00 PM
YES! heh, thanks for that. I knew the chrome name but I really was unsure as to the proper name.
And now that some url's have been presented, I think I'll have to take a peek.
Thanks again :D
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.