I'm trying to add a new menu to Dreamweaver so that displays my .chm manuals when i click on them from the drop down menu. I've got the options added to the menu fine, the only problem I'm having is using Javascript to open the .chm file. I've tried all of the things below and none of them work. Any ideas?
function receiveArguments(){
if (arguments[0] == 'PHP'){
window.open("file//C:\\php_manual_en.chm");
}else {
window.open("C:\\mysql_manual_en.chm");
}
}
function receiveArguments(){
if (arguments[0] == 'PHP'){
document.location.href="C:\\mysql_manual_en.chm";
}
}
function receiveArguments(){
if (arguments[0] == 'PHP'){
location.go("C:\\mysql_manual_en.chm");
}
}
var oShell = new ActiveXObject("Shell.Application");
function receiveArguments(){
if (arguments[0] == 'PHP'){
// Invoke the execute method.
oShell.ShellExecute("C:\\mysql_manual_en.chm", "", "", "open", "1");
}
}
Last edited by Jade on Sat Oct 21, 2006 3:20 pm, edited 2 times in total.
Cannot find file:///C:/test2.txt/'. Make sure path or Internet address is correct.
When I try to run it through the shell using the activeX I get errors with activeX not being initiated. However, Dreamweaver has its own .chm files and they work fine. I tried using their code to load my .chm files with no luck.