[SOLVED] Opening .chm in Dreamweaver custom menu.
Posted: Fri Oct 20, 2006 6:31 pm
Hey there,
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?
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?
Code: Select all
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");
}
}