Tackling File Importing in modern browsers

36 views
Skip to first unread message

rakugo

unread,
Nov 9, 2011, 11:21:13 AM11/9/11
to TiddlyWiki
I've had a go at rewriting the TiddlyWiki file importer using the
HTML5 file api http://www.w3.org/TR/FileAPI/

It works in Firefox but not Chrome but it seems hopeful. It would be
good for others to try it out.

Simply slot this plugin into your shiny new Firefox version which you
cannot import from:
http://repository.tiddlyspace.com/#TiddlyFileImportr
and hopefully importing will be possible again...

Let me know how you get on.

See the related issue here:
https://github.com/TiddlyWiki/tiddlywiki/issues/38#issuecomment-2675766

julien23

unread,
Nov 10, 2011, 8:28:49 AM11/10/11
to TiddlyWiki
Hi Rakugo

Pleased to see things a step ahead with the import issue


I've tried to load your
http://repository.tiddlyspace.com/#TiddlyFileImportr
in my TW

But I get the error log "Error: TypeError: ImportWizard is not a
function" at refresh. You can have a look here :
http://julien23.tiddlyspot.com/#TiddlyFileImportr

Am I doing things wrong ?
Do I miss dependency or version ?

My main concern is to get my "Package management" back :
http://julien23.tiddlyspot.com/#[[Load%20Package]]

Thanks

Julien


On Nov 9, 5:21 pm, rakugo <jdlrob...@gmail.com> wrote:
> I've had a go at rewriting the TiddlyWiki file importer using the
> HTML5 file apihttp://www.w3.org/TR/FileAPI/

rakugo

unread,
Nov 10, 2011, 11:25:20 AM11/10/11
to TiddlyWiki
Hi Julien
Your feedback is much appreciated! I'll have a look at your space and
see if I can work out what's going on!

rakugo

unread,
Nov 10, 2011, 11:38:35 AM11/10/11
to TiddlyWiki
Hi Julien what version of Firefox are you using?

In my Firefox everything seems to work fine, but I've made a few
tweaks that could possibly prevent this.

http://repository.tiddlyspace.com/#TiddlyFileImportr

Note if you see the old user interface for the file importer (ie. no
restart wizard button), it's likely your Firefox version is not up to
date!

Jon

On Nov 10, 1:28 pm, julien23 <jbouc...@capsule-ea.fr> wrote:

julien23

unread,
Nov 10, 2011, 4:20:19 PM11/10/11
to TiddlyWiki
Hi Jon

And you 're right !

I was sticking to a legacy FF 3.6.23 because of this "loading" issue

Time for me to catch up FF 7

You made my day !

Thanks a lot

Julien

julien23

unread,
Nov 15, 2011, 4:25:25 AM11/15/11
to TiddlyWiki
Well ... Not as exiting as I thought...

My trial TW was in the same directory as the source TW

But if I put it in another folder it stocks on "Opening file:///W:/.../index.html"

My fault

Looking forward to have a workable solution.

Thanks

rakugo

unread,
Nov 15, 2011, 5:30:20 AM11/15/11
to TiddlyWiki
I'm a little confused. It sounds like the plugin hasn't been installed
properly on this TiddlyWiki as you should never see the text "Opening
file:///W:/.../index.html"

Can you confirm the plugin is installed?
When installed the import UI should look like this:
http://sandboxjon.tiddlyspace.com/Screen%20shot%202011-11-15%20at%2010.23.53.png

julien23

unread,
Nov 16, 2011, 5:51:21 AM11/16/11
to TiddlyWiki
Hi

Your plugin is nicely installed and I can see the wizard similar to
yours.

I'll try to be more specific with my trials. Maybe my use is not what
you intended to...
4th point being the most important to me.

Thanks

Have a nice day

1. FILE (Browse)
file:///Z:/look_cdmb1101/index.html
imports fine from :
file:///Z:/airbank_tw/index.html

2. WEB
file:///Z:/look_cdmb1101/index.html
wont imports from :
http://www.TiddlyTools.com/
" There is something wrong with that url please try another. "

3. WEB (Local File)
file:///Z:/look_cdmb1101/index.html
wont imports from :
file:///Z:/airbank_tw/index.html
" There is something wrong with that url please try another. "

4. LoadTiddlersPlugin
file:///Z:/look_cdmb1101/index.html
<<loadTiddlers label:AirbankBlankPackage tag:AirbankBlankPackage
file:///Z:/airbank_tw/index.html >>
wont imports from :
file:///Z:/airbank_tw/index.html
Stuck on " Opening file:///Z:/airbank_tw/index.html "



On Nov 15, 11:30 am, rakugo <jdlrob...@gmail.com> wrote:
> I'm a little confused. It sounds like the plugin hasn't been installed
> properly on this TiddlyWiki as you should never see the text "Opening
> file:///W:/.../index.html"
>
> Can you confirm the plugin is installed?
> When installed the import UI should look like this:http://sandboxjon.tiddlyspace.com/Screen%20shot%202011-11-15%20at%201...

rakugo

unread,
Nov 16, 2011, 6:01:37 AM11/16/11
to TiddlyWiki

> 1. FILE (Browse)
> file:///Z:/look_cdmb1101/index.html
> imports fine from :
> file:///Z:/airbank_tw/index.html
>
> 2. WEB
> file:///Z:/look_cdmb1101/index.html
> wont imports from :http://www.TiddlyTools.com/
> " There is something wrong with that url please try another. "

This still remains a problem due to the CORS issue that has been
discussed. [1]
>
> 3. WEB (Local File)
> file:///Z:/look_cdmb1101/index.html
> wont imports from :
> file:///Z:/airbank_tw/index.html
> " There is something wrong with that url please try another. "

This is because your file is not on the web! You are importing from a
file so you must use the file browser.

> 4. LoadTiddlersPlugin
> file:///Z:/look_cdmb1101/index.html
> <<loadTiddlers label:AirbankBlankPackage  tag:AirbankBlankPackage
> file:///Z:/airbank_tw/index.html >>
> wont imports from :
> file:///Z:/airbank_tw/index.html
> Stuck on " Opening file:///Z:/airbank_tw/index.html "

This sounds like a problem with the LoadTiddlersPlugin. The
FileImporter Plugin has nothing to do with this. I suspect this plugin
could be rewritten using a similar mechanism to the File Importer
code.

[1] http://tiddlywiki.com/#%5B%5BTiddlyWiki%20Browser%20Compatibility%5D%5D
Reply all
Reply to author
Forward
0 new messages