[tw] Re: hijacking - question

2009-11-20 Thread Tobias Beer
See, that's one of the funny - if not brilliant things - with
Javascript:

a=function(a,b){alert(arguments.length);}
a('foo','bar','baz');

Guess, what arguments.length is?  3! Great, nothing's lost! How
about...

out=function(a,b){return arguments[0]+arguments[1];}('foo','bar');
alert(out);

You guessed right... out alerts as 'foobar' ...declared, anonymous,
invoked and return value assigned... all in one step.


Or, if you want to go really nasty...

x='foo';
y=function(obj){out=[];for(var p in obj)if(typeof(obj[p])=='object')
out.push(arguments.callee(obj[p]));out.push(x);return out;}
(someObject);

Declared, recursive, anoymous, invoked while using closure and return
value assigned... all in one statement!
All honours to Eric Shulman, for explaining this stuff.;-)


Tobias.

--

You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlyw...@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=.




[tw] Re: CloseOnCancelPlugin enhancement OR bug fix

2009-11-20 Thread Tobias Beer
Ho RA,

As for me, personally, that's the kind of stuff that I wouldn't want.
Often I find myself canceling out of an accidental action, which I
really don't want to have to confirm. I'd prefer learning the hard
way, when to hit which key (or to do a ctrl-c beforehand) ...instead
of being 'annoyed' by questions along the lines of "Do you really want
to abandon the changes you never made or intended in the first
place?!?!?!?".

;-)

Tobias.

--

You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlyw...@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=.




[tw] Re: escape key canceling tiddler

2009-11-20 Thread RA
Jerimiah, check out my posting
http://groups.google.com/group/tiddlywiki/t/eaad7711a105f77b

I think I've found the real culprit behind this. Don't turn off "Esc"
key, just make sure it is handled properly.

--R

On Nov 2, 6:11 pm, jerimiah  wrote:
> That you both for those helpful replies.
>
> Where does one learn this stuff?  Should I get a book on Java Script?
> The resources I've come across hitherto have been either for complete
> beginners or seasoned programmers.
>
> On Nov 2, 2:36 pm, Eric Shulman  wrote:
>
> > > In the toolbar you have -cancelTiddler.
> > > The - in this ties the escape key to the command cancelTiddler.
> > > In a similar fashion in +saveTiddler the + command ties the double
> > > mouse button to saveTiddler.
>
> > To be accurate, the "+" prefix binds a command to both a 'double-
> > click' and a 'ctrl-enter' keystroke, while the "-" prefix binds a
> > command to an 'escape' keystroke.
>
> > When *viewing* a tiddler, double-clicking the tiddler background
> > triggers the '+editTiddler' command.  Note that "ctrl-enter" typically
> > doesn't do anything when viewing a tiddler because there isn't a
> > current input field that has the 'focus' so it can process the
> > keystroke.
>
> > Of course, when *editing* a tiddler, there are always input fields
> > (one of which usually has the focus), so "esc" triggers the "-
> > cancelTiddler" command and "enter" triggers the "+saveTiddler"
> > command.  Note that double-clicking in the text area is processed by
> > that text area to select a word in the source content and thus does
> > not also trigger the "+saveTiddler" command.
>
> > enjoy,
> > -e
> > Eric Shulman
> > TiddlyTools / ELS Design Studios

--

You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlyw...@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=.




[tw] hijacking - question

2009-11-20 Thread RA
In BreadcrumbsPlugin, I see

Story.prototype.displayTiddler = function(srcElement,tiddler)

Shouldn't it have the same number of parameters as the one being
hijacked, i.e.

Story.prototype.displayTiddler=function
(srcElement,tiddler,template,animate,unused,customFields,toggle)


Thanks.
--R

--

You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlyw...@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=.




[tw] CloseOnCancelPlugin enhancement OR bug fix

2009-11-20 Thread RA
For an existing tiddler, if you hit Esc accidentally while editing,
you can hit Esc again at the confirmation dialog and keep editing. But
if it's a new tiddler, the CloseOnCancelPlugin will close the tiddler,
regardless of how you respond to the confirmation dialog. So if you
never saved your new big tiddler before, if you hit Esc once (very
likely if you are a Vi user, I imagine), you are screwed no matter
what. To change that, here's the fix:

change
if (!store.tiddlerExists(title) && !store.isShadowTiddler(title))
to
if (!story.isDirty(title) && !store.tiddlerExists(title) && !
store.isShadowTiddler(title))

This doesn't look very elegant, but I couldn't think of a better one.
Does a handler have to always return false? Otherwise,
config.commands.cancelTiddler.handler could be changed to return true
or false depending on the confirmation.

--

You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlyw...@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=.




[tw] Re: Posting on google groups

2009-11-20 Thread Morris Gray
On Nov 20, 8:42 pm, FND  wrote:
> > "Delivery Status Notification (Failure)"

> I have a feeling that's not what happened...

That's right FND mine was a much simpler error message.

I checked the Google support forum and found there was a whole raft of
people what were reporting the same error but they were all managers
of groups.  Judging by some of the very irritated posts that were
going unanswered I decided Google Support wouldn't bother with mine
either if they were not responding to Group managers.

I finally determined mine was caused by composing the message in
TurboNote and pasting it into Google Groups online.  I had done that
for years because I lost too many messages when Groups timed out
before sending, when all of a sudden I started getting this simple
message You cannot post to Google Groups Contact Support.

I finally surmised I may have picked up some illegal character or
something like that from TurboNote in the copying process.  But the
same error happened no matter what program I copied and pasted from,
NotePad, or even a tiddler.

I assumed then Google may have added some king of spam filter that
somehow knew that the message had not been composed in the Google
posting form.  Possibly it was either that or they have finally
employed just one too many ex-Microsoft employees ;-)

I gave up after that and have stopped copying and pasting.

Morris


On Nov 20, 8:42 pm, FND  wrote:
> > "Delivery Status Notification (Failure)"
>
> It appears this is another Google Groups glitch, affecting not just this
> particular group.
> Let's hope they will fix this soon.
>
> > maybe [Morris]  had to reenlist?
>
> I have a feeling that's not what happened...
>
> -- F.

--

You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlyw...@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=.




[tw] backstage botton visible over http

2009-11-20 Thread skye riquelme
Hi All

How do I get to have the backstage botton visible, even over Http/
readonly?

Thanks
Skye

--

You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlyw...@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=.




[tw] Re: forEachTiddler 'where' using FormTiddler field

2009-11-20 Thread Måns
Hi Allan

I'm glad that I could help you - and this proves (to me at least) that
"smalltalk" (this time meaning: saying a little too much) matters..
When there's no "proper MTC" - there's room for a kind of discussion
which teaches things you didn't know you needed to know.
I like this group for that - but the searchfunctions sucks!! - I can't
even find my own postings beyond this month. :-(

Regards Måns Mårtensson

On 20 Nov., 21:28, AlanBCohen  wrote:
> Måns said: "You probably know that you have to specify a tag to make
> fETs work... "
>
> Actually, I didn't - and that was the key to solving my problem.
> THANK YOU.
> I added " && tiddler.tags.contains("entry")" to my where clause and
> the list works perfectly.  I've now defined 3 other lists using the
> same information.  This was a lesson I won't soon forget.
>
> Alan

--

You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlyw...@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=.




[tw] Re: forEachTiddler 'where' using FormTiddler field

2009-11-20 Thread AlanBCohen
Måns said: "You probably know that you have to specify a tag to make
fETs work... "

Actually, I didn't - and that was the key to solving my problem.
THANK YOU.
I added " && tiddler.tags.contains("entry")" to my where clause and
the list works perfectly.  I've now defined 3 other lists using the
same information.  This was a lesson I won't soon forget.

Alan

--

You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlyw...@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=.




Re: [tw] Re: Posting on google groups

2009-11-20 Thread FND
> "Delivery Status Notification (Failure)"

It appears this is another Google Groups glitch, affecting not just this 
particular group.
Let's hope they will fix this soon.

> maybe [Morris]  had to reenlist?

I have a feeling that's not what happened...


-- F.

--

You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlyw...@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=.