|
|
#1 |
|
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Jul 2013
Device: kindle
|
Hi,
I've made an epub library in Moss 2007 to store epub for my company. I have associated an hyperlink in the context menu to open the epub with Sygil ![]() I put some javascript behind this hyperlink : Code:
<script language="javascript">
function openEpub(cmdline, params) {
var fso = new ActiveXObject("Scripting.FileSystemObject");
fileExist = fso.FileExists(cmdline);
if (!fileExist) {
alert("The requested application is not installed.");
}
else {
var shell = new ActiveXObject( "WScript.Shell" );
if (params) {
params = ' ' + params;
}
else {
params = '';
}
shell.Run('"' + cmdline + '"' + params);
}
}
function Custom_AddDocLibMenuItems(m, ctx)
{
setDocType();
var strDisplayTextCustom = "epub1";
strOpenEpub = "javascript:openEpub('C:\\\\Program Files (x86)\\\\Sigil\\\\Sigil.exe' , '\"http://ofosvspdw:17000/Teams/epub library/Underground-MURAKAMI.epub\"')";
var strImagePath = '';
// Add menu item
CAMOpt(m, strDisplayTextCustom, strOpenEpub , strImagePath);
// add a separator to the menu
CAMSep(m);
return false;
}
</script>
![]() Has someone any idea of how resolve this ? Thank you |
|
|
|
|
|
#2 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Try to open directly via an UNC name. It could be that UNC is not supported.
|
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| overdrive open epub / open pdf? | Joykins | General Discussions | 4 | 01-31-2013 06:05 PM |
| Change title stored in epub? | crochetgeek2010 | Conversion | 1 | 03-03-2012 09:59 AM |
| Open EPUB or Adobe EPUB Library ebooks? | jana_leigh14 | Kobo Tablets | 2 | 11-08-2011 02:07 AM |
| PRS-950 Can't open epub | emonti8384 | Sony Reader | 11 | 12-16-2010 07:13 PM |
| Where are epub images stored? | janneman | Sigil | 3 | 01-06-2010 05:43 AM |