Upload and refresh

39 views
Skip to first unread message

XENO

unread,
Feb 9, 2008, 10:41:38 PM2/9/08
to TiddlyWiki
Hi all,
I'm looking for a plug-in that after it successfully uploads the
tiddlywiki to a server (I use Tiddlyspot) it refreshes the tiddlywiki,
for online editing usage.
There exists a Save and refresh plug-in: http://tw.lewcid.org/#SaveAndReloadMacro
Any ideas, anyone?
C

Eric Shulman

unread,
Feb 9, 2008, 11:00:59 PM2/9/08
to TiddlyWiki
> I'm looking for a plug-in that after it successfully uploads the
> tiddlywiki to a server (I use Tiddlyspot) it refreshes the tiddlywiki,
> for online editing usage.
> There exists a Save and refresh plug-in:http://tw.lewcid.org/#SaveAndReloadMacro


Try this:

Create a tiddler called [[UploadPluginTweaks]], tagged with
"systemConfig", containing:

config.macros.upload.UploadLog.prototype.endUpload =
function() {window.location.reload( false )};

Note: you can use any tiddler title, as long as it is alphabetically
AFTER "UploadPlugin", so that the above line of code overrides the
default function definition provided by the plugin.

HTH,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

XENO

unread,
Feb 10, 2008, 7:55:00 AM2/10/08
to TiddlyWiki
Encountered a bug after I created the tiddler, uploaded and then
refreshed, the plug-in menu appeared, with an error msg at the newly
created [[UploadPluginTweaks]] (which is right after
[[UploadPlugin]] ) with the msg: Error: TypeError:
config.macros.upload.UploadLog has no properties.
If it helps I am using the default plug-ins from TiddlySpot.
Thanks again,
-C

Eric Shulman

unread,
Feb 10, 2008, 8:24:07 AM2/10/08
to TiddlyWiki
> config.macros.upload.UploadLog has no properties.
> If it helps I am using the default plug-ins from TiddlySpot.

Try this:

bidix.UploadLog.prototype.endUpload = function(status) {
if (this.tiddler) this.addText(" "+status+" |");
window.location.reload( false );
};

XENO

unread,
Feb 10, 2008, 1:34:40 PM2/10/08
to TiddlyWiki
That did the trick, Thank You!!!
C
Reply all
Reply to author
Forward
0 new messages