List Info

Thread: Re: Error in macro <>




Re: Error in macro <<tabs>>
user name
2008-01-21 17:31:07
Thanks Eric. Some great advice.
Clicking the tabs label again does refresh the tab
correctly. But
this
appears to be counter intuitive. Once the checkbox is
clicked the item
should move to the
correct tab with no more user input. this also applies to
your second
suggestion
of adding a button.

Your third suggestion is the most suitable but I can't get
it to work.
I imported the autoRefresh script from http://www.tiddlytools.com

and added the <<tiddler AutoRefresh with:
force>> to the end of
the tabs making tiddler. Then I reload the Tiddlywiki to
ensure the
autoRefresh has been loaded. Then I click a checkbox. What
should
happen is the item is moved to a new tab (which it does if I
click on
the
actual tab) but it appears the autoRefresh does not do what
it
is supposed to.

Thanks from a puzzled but grateful
Tigger




On Jan 21, 9:19 pm, Eric Shulman <elsdes...gmail.com> wrote:
> > I am now working on how to get the tabs to refresh
once the checkbox
> > is clicked,
> > because at the moment the tab needs to be closed
then reopened for any
> > changes to take effect.
>
> Try just clicking on that tab's *label* again.  This
causes the tab
> *contents* to be re-rendered.
>
> or... try this script:
>    http://www
.TiddlyTools.com/#RefreshTiddler
> Usage:
>    <<tiddler RefreshTiddler>>
> which can be used to embed a "refresh"
command link directly in the
> tiddler, so that you can click to manually refresh the
display
>
> or, this script:
>    http://www.Ti
ddlyTools.com/#AutoRefresh
> Usage:
>    <<tiddler AutoRefresh with: force>>
> embed the above line in the tiddler containing the
tabs.  Whenever ANY
> tiddler is changed in the document, the tabbed
tiddler's display is
> automatically refreshed, ensuring that it will always
be in sync with
> any underlying tiddler content derived from other
tiddlers.
>
> HTH,
> -e
> Eric Shulman
> TiddlyTools / ELS Design Studio
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "TiddlyWiki" group.
To post to this group, send email to TiddlyWikigooglegroups.com
To unsubscribe from this group, send email to
TiddlyWiki-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Error in macro <<tabs>>
user name
2008-01-21 18:36:58
> Your third suggestion is the most suitable but I can't
get it to work.
> I imported the autoRefresh script fromhttp://www.tiddlytools.com

> and added the <<tiddler AutoRefresh with:
force>> to the end of
> the tabs making tiddler. Then I reload the Tiddlywiki
to ensure the
> autoRefresh has been loaded. Then I click a checkbox.
What should
> happen is the item is moved to a new tab (which it does
if I click on
> the
> actual tab) but it appears the autoRefresh does not do
what it
> is supposed to.

Ah!  ... for reasons too subtle to go into here, the *macro*
form of
the checkbox syntax does not automatically refresh the
"container" in
which the checkbox is rendered.

Try this in your *List scripts:

write '"|<<checkbox
[["+tiddler.title+":ok]] ""
"this.refresh.container=true"$))|[["+tiddler.
title+"]]...

This will add an 'init' handler to the checkbox macro that
forces the
refresh logic to be invoked whenever the checkbox is
clicked.  With
this flag set, you shouldn't need to use the AutoRefresh
script at
all... CheckboxPlugin should do the refresh all by itself!

HTH,
-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 TiddlyWikigooglegroups.com
To unsubscribe from this group, send email to
TiddlyWiki-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Error in macro <<tabs>>
user name
2008-01-21 19:28:12
Done!!
I decided it was probably a better move to not have things
relocate to
new tabs automatically incase the user
changes their mind. so instead I have used your
<<tiddler
refreshTiddler>> idea and used it's
modifiers to adjust the text shown on the screen. This
results in a
"button" that is more
informative to the user.

Results so far are shown at
ht
tp://members.bbnet.com.au/~kwright/toDoLink.html

I am enjoying the learning experience. As I have never used
javascript
before and only had basic exposure to html css
it is satisfying to gradually achieve my aim. However, I
wouldn't  be
able to do it without the patient support
of this group, and in particular Eric. Thankyou, thankyou,
thankyou to
one and all.

Cheers
tigger

On Jan 22, 8:31 am, tigger6333 <tigger6...gmail.com> wrote:
> Thanks Eric. Some great advice.
> Clicking the tabs label again does refresh the tab
correctly. But
> this
> appears to be counter intuitive. Once the checkbox is
clicked the item
> should move to the
> correct tab with no more user input. this also applies
to your second
> suggestion
> of adding a button.
>
> Your third suggestion is the most suitable but I can't
get it to work.
> I imported the autoRefresh script fromhttp://www.tiddlytools.com

> and added the <<tiddler AutoRefresh with:
force>> to the end of
> the tabs making tiddler. Then I reload the Tiddlywiki
to ensure the
> autoRefresh has been loaded. Then I click a checkbox.
What should
> happen is the item is moved to a new tab (which it does
if I click on
> the
> actual tab) but it appears the autoRefresh does not do
what it
> is supposed to.
>
> Thanks from a puzzled but grateful
> Tigger
>
> On Jan 21, 9:19 pm, Eric Shulman <elsdes...gmail.com> wrote:
>
> > > I am now working on how to get the tabs to
refresh once the checkbox
> > > is clicked,
> > > because at the moment the tab needs to be
closed then reopened for any
> > > changes to take effect.
>
> > Try just clicking on that tab's *label* again. 
This causes the tab
> > *contents* to be re-rendered.
>
> > or... try this script:
> >    http://www
.TiddlyTools.com/#RefreshTiddler
> > Usage:
> >    <<tiddler RefreshTiddler>>
> > which can be used to embed a "refresh"
command link directly in the
> > tiddler, so that you can click to manually refresh
the display
>
> > or, this script:
> >    http://www.Ti
ddlyTools.com/#AutoRefresh
> > Usage:
> >    <<tiddler AutoRefresh with:
force>>
> > embed the above line in the tiddler containing the
tabs.  Whenever ANY
> > tiddler is changed in the document, the tabbed
tiddler's display is
> > automatically refreshed, ensuring that it will
always be in sync with
> > any underlying tiddler content derived from other
tiddlers.
>
> > HTH,
> > -e
> > Eric Shulman
> > TiddlyTools / ELS Design Studio
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "TiddlyWiki" group.
To post to this group, send email to TiddlyWikigooglegroups.com
To unsubscribe from this group, send email to
TiddlyWiki-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )