MasterIncludes Questions

36 views
Skip to first unread message

skye riquelme

unread,
Nov 26, 2010, 9:54:54 PM11/26/10
to TiddlyWiki
Hi All

Starting to play with Tobias's MasterIncludesPlugin.......playing with
the example from his page - http://masterincludes.tiddlyspace.com/
- ....when I try to modify the client.html and then save those changes
I get the message

"TypeError: tiddlers[t].doNotSave is not a function" and then the
message that the changes were not saved.

I am working locally with the example TWs.

AND.....can I change the local of the master.html to site
address .....I am trying to use something like "http://localhost/
Master/master,html".......and then tag the plugins so they are picked
up depending on the originating client.html........effectively
creating a functional database of my favorite plugins....(localhost is
created with a wamp server...that happens to site in a dropbox
folder !)

Thanks in Advance

Skye

Tobias Beer

unread,
Nov 27, 2010, 6:52:09 AM11/27/10
to TiddlyWiki
Hi Skye,

MasterIncludesPlugin is from FND. I deserve no credits at all ...other
than maybe having put it up on TiddlySpace, slightly simplifying the
instructions.

Dunno if I am correct on the assumption that you do ...but - afaiks -
you should not have any MasterIncludesPlugin(s) in your client
TiddlyWiki(s). So, there should be no doNotSave warnings in your
clients.

Other than adding complexity, what's the intention of using WAMP, as
opposed to simply using local or network paths?

Cheers, Tobias.

Michael.Tarnowski

unread,
Nov 28, 2010, 2:09:07 AM11/28/10
to TiddlyWiki
Hi,

please have a look at the similiar post
http://groups.google.com/group/tiddlywiki/browse_thread/thread/b2880cf513225070
Maybe one of the admins will fusion both postings.

Cheers Michael

On 27 Nov., 03:54, skye riquelme <riquelme.s...@gmail.com> wrote:
> Hi All
>
> Starting to play with Tobias's MasterIncludesPlugin.......playing with
> the example from his page -http://masterincludes.tiddlyspace.com/

skye riquelme

unread,
Nov 30, 2010, 7:09:43 PM11/30/10
to TiddlyWiki
Hi again

sorry about that confusion Tobias...I loaded the plugin from your
page....and did not read the fine print explaining this is the work of
FND !!!!

Have closely followed the instructions from the "alternate way to
LoadTiddlers on startup?" thread of jan 2008....I got the thing
working without the error messages.....

And still have that query about file locations....if the master file
is in the same folder....everything fine.......if the file location is
a relative location (eg..\Direct\master.html)...that also works....but
if I put an absolute file address or a url address to the master
file....it does not work.......
an absolute file address gives me an error as it is amending the slave
folder address an to the address in the MasterIncludesConfig file.....
..and if the file address is a url ......the file hangs and does not
open......

As mentioned...in my case the url is actually a http://localhost/master.html
address....as that way I should be able to access the same basic
master.html file from anywhere in my computar and not have to worry
with relative file locations all the time........

Can MasterIncludesPlugin.js be modified to accept url adresses??

Thanks in advance

Skye

On Nov 28, 5:09 am, "Michael.Tarnowski" <emt...@gmx.de> wrote:
> Hi,
>
> please have a look at the similiar posthttp://groups.google.com/group/tiddlywiki/browse_thread/thread/b2880c...

skye riquelme

unread,
Nov 30, 2010, 9:27:15 PM11/30/10
to TiddlyWiki
And yet another MasterIncludes question

I have set up a folder....initially using TinyTiddly.zip......and
duplicated the small tinytiddly.html file (the folder has the core.js
file)....so that one became the client and the other the
master.......filled the master with plugins......and got the client
correctly reading-in the plugins from the master....also used Erics
TemporaryTiddlers plugin so that these plugins are not permanently
stored in client...so that the main (client) file stays nice and
small...and then on opening picks up the appropriately tagged
plugins.......everything great.........on my local system...

when I upload the whole folder to my browser......client seems to
open....but just sits with a blanck page.......try it here - http://bit.ly/fZLhEx

Why does it not show......can MasterIncludes work over http?????

While the page (client) is trying to open I notice some strange names
in the navegation line (at the bottom of firefox)....momentarily it
says it is waiting for a response from "www.superfish.com" .....now
superfish is a shopping page...that I do not subscribe to .....and
its also a jQuery plugin apparently........anyone have any ideas as to
what I am seeing...is it part of MasterIncludes...a virus....or what ?

Thanks
Skye

On Nov 30, 10:09 pm, skye riquelme <riquelme.s...@gmail.com> wrote:
> Hi again
>
> sorry about that confusion Tobias...I loaded the plugin from your
> page....and did not read the fine print explaining this is the work of
> FND !!!!
>
> Have closely followed the instructions from the "alternate way to
> LoadTiddlers on startup?" thread of jan 2008....I got the thing
> working without the error messages.....
>
> And still have that query about file locations....if the master file
> is in the same folder....everything fine.......if the file location is
> a relative location (eg..\Direct\master.html)...that also works....but
> if I put an absolute file address or a url address to the master
> file....it does not work.......
> an absolute file address gives me an error as it is amending the slave
> folder address an to the address in the MasterIncludesConfig file.....
> ..and if the file address is a url ......the file hangs and does not
> open......
>
> As mentioned...in my case the url is actually ahttp://localhost/master.html

skye riquelme

unread,
Nov 30, 2010, 9:50:08 PM11/30/10
to TiddlyWiki
Hi again


tracked down that superfish message...it was coming from the IETab add-
on for firefox......superfish was added into IETab on the last
update !!!! I have now deleted that add-on.

So no more superfish messages....but the page still does not open!!!!

Thanks
Skye

On Dec 1, 12:27 am, skye riquelme <riquelme.s...@gmail.com> wrote:
> And yet another MasterIncludes question
>
> I have set up a folder....initially using TinyTiddly.zip......and
> duplicated the small tinytiddly.html file (the folder has the core.js
> file)....so that one became the client and the other the
> master.......filled the master with plugins......and got the client
> correctly reading-in the plugins from the master....also used Erics
> TemporaryTiddlers plugin so that these plugins are not permanently
> stored in client...so that the main (client) file stays nice and
> small...and then on opening picks up the appropriately tagged
> plugins.......everything great.........on my local system...
>
> when I upload the whole folder to my browser......client seems to
> open....but just sits with a blanck page.......try it here -http://bit.ly/fZLhEx

PMario

unread,
Dec 1, 2010, 7:25:21 AM12/1/10
to TiddlyWiki
hi skye,
If you have FireBug installed and open while loading the page, it
says:
>> getXMLHttpRequest is not defined <<
and points to line 154 in MasterIncludesPlugin.js

function getRemoteData(uri) {
152 if(window.Components && window.netscape &&
window.netscape.security && !isHttp(document.location.protocol))
153
window.netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
154 var XHR = getXMLHttpRequest();
155 if(XHR) {

So it seems, that there is an initialisation error. May be you need a
different init order.

-m

skye riquelme

unread,
Dec 1, 2010, 10:35:53 AM12/1/10
to TiddlyWiki
Thanks PMario

I more or less confirmed that myself........using a vanila version of
tinytiddly on the browser...and slowly adding in the tiddlers from the
original client.html......it keeps working until I set the reference
to MasterIncludesPlugin.js......then it breaks. Seems that
MasterIncludesPlugin can´t handle http addresses. For example in the
local copy of client....I used the urls that point to the same files
on the server....no start....change the adresses back to local
address...everything fine.....

Messing with the javascript of MasterIncludesPlugin.js is somewhat
beyond my capabilities.......I will have to hope that someone with
good javascript has the time to look into this plugin......I really
like this plugin, with the way it works locally....but if it falls
down over http....its not much use to me !!!

Thanks

Skye
Reply all
Reply to author
Forward
0 new messages