I too am having this problem even with a 2.4.1 core and the CoreTweaks
imply that the necessary change has already been made in 2.4.1. So I
thought I'd look into the code change above but, while heeding the
warning to leave the core alone and modify a plugin instead, I wasn't
sure where this specific core function exists and hence which shadow
tiddler to check and modify if necessary. Which would it be please?

Thanks

Kevin

On Sep 18, 10:24 am, gigajosh <[EMAIL PROTECTED]> wrote:
> Thanks - your fix sorted it out for me :)
>
> On Aug 20, 1:18 am, Simon Huggins <[EMAIL PROTECTED]> wrote:
>
>
>
> > Noticed various people are having problems saving TiddlyWiki to a UNC
> > path (e.g. \\myserver\mydir\TiddlyWiki.html)
>
> > I have had the same problem. Found the fix today after lots of
> > alert()s!
>
> > Edit your tiddlywiki source file as follows:
>
> > search for "ieCreatePath(path)" and insert the following line in the
> > position indicated:
>
> >       if (pos==-1) pos = path.lastIndexOf("/");
>
> > into:
>
> > function ieCreatePath(path)
> > {
> >         try {
> >                 var fso = new ActiveXObject("Scripting.FileSystemObject");
> >         } catch(ex) {
> >                 return null;
> >         }
> >         var pos = path.lastIndexOf("\\");
> >       if (pos==-1) pos = path.lastIndexOf("/");
> >         if(pos!=-1) {
> >                 path = path.substring(0,pos+1) }
> >         var scan = [path];
> >         var parent = fso.GetParentFolderName(path);
> >         while(parent && !fso.FolderExists(parent)) {
> >                 scan.push(parent);
> >                 parent = fso.GetParentFolderName(parent);
> >         }
>
> >         for(i=scan.length-1;i>=0;i--) {
> >                 if(!fso.FolderExists(scan[i])) {
> >                         fso.CreateFolder(scan[i]);
> >                 }
> >         }
> >         return true;
>
> > }
>
> > It seems that Internet Explorer in its wisdom converts backslashes to
> > forward slashes for UNC paths, but not for local paths hence
> > TiddlyWiki wasn't finding the last slash in the path to strip off the
> > filename to leave the base path. This fix just searches for a forward
> > slash if it doesn't find a backslash. Hopefully this will make itself
> > into a forthcoming release to avoid the hack.
>
> > Regards
>
> > Simon Huggins.- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to