Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Event on tiddler open/close
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Arlen Beiler  
View profile   Translate to Translated (View Original)
 More options Feb 7, 6:47 pm
From: Arlen Beiler <arlen...@gmail.com>
Date: Tue, 7 Feb 2012 18:47:30 -0500
Local: Tues, Feb 7 2012 6:47 pm
Subject: Event on tiddler open/close
Is there anyway to detect when a tiddler is opened or closed? I need
it to update a list of opened tiddlers. I checked the Story section,
but I couldn't find any events. Thanks

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Shulman  
View profile  
 More options Feb 7, 8:03 pm
From: Eric Shulman <elsdes...@gmail.com>
Date: Tue, 7 Feb 2012 17:03:13 -0800 (PST)
Local: Tues, Feb 7 2012 8:03 pm
Subject: Re: Event on tiddler open/close
On Feb 7, 3:47 pm, Arlen Beiler <arlen...@gmail.com> wrote:

> Is there anyway to detect when a tiddler is opened or closed? I need
> it to update a list of opened tiddlers. I checked the Story section,
> but I couldn't find any events. Thanks

Here's the two TWCore functions that you will need to hijack:

   story.prototype.displayTiddler(place,title)
   story.prototype.closeTiddler(title)

enjoy,
-e


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
colmjude  
View profile  
 More options Feb 8, 6:57 am
From: colmjude <colmj...@gmail.com>
Date: Wed, 8 Feb 2012 03:57:07 -0800 (PST)
Local: Wed, Feb 8 2012 6:57 am
Subject: Re: Event on tiddler open/close
Just wondering how you are getting on with this and how you are
tackling it?

Seen as TW comes with jQuery integrated I'd probably use the observer
pattern[1] and something like the trigger[2] method to fire custom
events such as openTiddler and closeTiddler.

Anyway just curious to see how you decide to do it.

Colm

[1] - http://addyosmani.com/resources/essentialjsdesignpatterns/book/#obser...
[2] - http://api.jquery.com/trigger/

On Feb 8, 1:03 am, Eric Shulman <elsdes...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arlen Beiler  
View profile  
 More options Feb 8, 7:26 am
From: Arlen Beiler <arlen...@gmail.com>
Date: Wed, 8 Feb 2012 07:26:33 -0500
Local: Wed, Feb 8 2012 7:26 am
Subject: Re: [twdev] Re: Event on tiddler open/close
First of all, I have been sleeping over it, as I asked about quitting
time. Second, is there anyway to concatenate a second function onto a
variable? that would be useful.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »