[Hampshire] TiddlyWiki

Top Page

Reply to this message
Author: john lewis
Date:  
To: hampshire
Old-Topics: Re: [Hampshire] scripts/basic/Makefile missing
Subject: [Hampshire] TiddlyWiki
On Sun, 03 Jun 2007 18:20:43 +0100
Alan Pope <alan@???> wrote:


> I suspect it is. I think it's the way Opera deals with the potential
> security of allowing a web page to make changes to the local
> filesystem. I guess that opera doesn't allow this to happen whereas
> other browsers issue a warning (ff does this) and then offer you
> the option of letting it happen or not.
>
> All just speculation of course, I should just look at the code :)


Only if you understand javascript as opening the source for
blank.html shows 100s of lines of the stuff

The relevant lines so far as I can tell (me knows nuttin about any
sort of code) - apologies in advance for bad wrapping

// Browser detection... In a very few places, there's nothing else
for it but to // know what browser we're using.
config.userAgent = navigator.userAgent.toLowerCase();
config.browser = {
    isIE: config.userAgent.indexOf("msie") != -1 &&
config.userAgent.indexOf("opera") == -1, ieVersion: /MSIE
(\d.\d)/i.exec(config.userAgent), // config.browser.ieVersion[1], if
it exists, will be the IE version string, eg "6.0" isSafari:
config.userAgent.indexOf("applewebkit") != -1, isBadSafari: !((new
RegExp("[\u0150\u0170]","g")).test("\u0150")),
firefoxDate: /Gecko\/(\d{8})/i.exec(config.userAgent), //
config.browser.firefoxDate[1], if it exists, will be Firefox release
date as "YYYYMMDD" isOpera: config.userAgent.indexOf("opera") != -1,
isLinux: config.userAgent.indexOf("linux") != -1, isUnix:
config.userAgent.indexOf("x11") != -1, isMac:
config.userAgent.indexOf("mac") != -1, isWindows:
config.userAgent.indexOf("win") != -1 };


and later on

// Whether to use the JavaSaver applet
var useJavaSaver = config.browser.isSafari || config.browser.isOpera;

I presume the JavaSaver applet is the TiddlySaver.jar file I was
told to put in the same directory as the tiddlywiki or
whatever.html is stored.

The problem is still how to get opera to use this jar file by means
of the .java.policy file. I have tried various permutations of the
syntax but still cannot get opera to save an alteration.

currently my .java.policy looks like this:

grant codeBase "file://localhost/home/jayell/Notes/*"
{
permission java.io.FilePermission "home/jayell/}Notes/*",
"read,write";
};

--
John Lewis
Debian (Sid) with the GeneWeb genealogy package