Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 07-11-2013, 05:33 AM   #1
lattelis
Junior Member
lattelis began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2013
Device: kindle
Question Open epub stored in Sharepoint

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>
When I click, it opens Sygil but not the file and I have the following error :



Has someone any idea of how resolve this ?

Thank you
lattelis is offline   Reply With Quote
Old 07-11-2013, 09:25 AM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,011
Karma: 3594657
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Try to open directly via an UNC name. It could be that UNC is not supported.
Toxaris is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
overdrive open epub / open pdf? Joykins General Discussions 4 01-31-2013 05:05 PM
Change title stored in epub? crochetgeek2010 Conversion 1 03-03-2012 08:59 AM
Open EPUB or Adobe EPUB Library ebooks? jana_leigh14 Kobo Tablets 2 11-08-2011 01:07 AM
PRS-950 Can't open epub emonti8384 Sony Reader 11 12-16-2010 06:13 PM
Where are epub images stored? janneman Sigil 3 01-06-2010 04:43 AM


All times are GMT -4. The time now is 07:41 PM.


MobileRead.com is a privately owned, operated and funded community.