On Jun 25, 8:23 am, anthony <[email protected]> wrote:
> Just tried your plugin...am I missing something? I loaded the plugin and
> tried your example both on my tiddly and yours and neither were
> editable...maybe I am just missing something though.

The plugin works in IE, but not in FF or other browsers.

The reason is because IE uses a different method of processing
events.  In IE, all events are processed by first setting a global
variable "event" and then invoking the appropriate onclick handler to
process the event.  However, in other browsers, the event is *passed*
to the handler as a parameter.

The plugin problem arises due to this line of code:

   cell.onclick = function(){editInPlace(this,event);};

In order to make this cross-browser compatible, it should be re-
written as:

   cell.onclick = function(ev){editInPlace(this,ev|event);};

This allows non-IE browsers to properly use the passed in event as a
variable named 'ev', while IE continues to fallback to using the
global 'event' variable.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

WAS THIS ANSWER HELPFUL?  IF SO, PLEASE MAKE A DONATION
   http://www.TiddlyTools.com/#Donations
Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
   http://www.TiddlyTools.com/#Contact



-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to