Hi all
I hope this is not a dumb question, but I'm too much familiar with
JavaScript...
I'm using the mGSD version of tiddlywikki (http://mgsd.tiddlyspot.com/
demo3.html) and incorporated the great simile timeline from Martin
(http://www.martinswiki.com/timeline/index.html). In a timeline a can
click on an entry and a bobble box opens with the name of the
corresponding tiddler. When I click on the top link the tiddler should
be opened, but instead I get an error (in FF). The Firefox opens a
blank page with the line:
[object HTMLDivElement]
and in the URL bar I see this:
javascript:story.displayTiddler(null,"anser%20jerome%20(scaling?,%20ref
%20index?))")
In Chrome it works fine. On Martins page everything also works fine...
When I look at the "simileTimelinePlugin" tiddler the code in question
could be:

Tiddler.prototype.getSimileTimelineEvent = function(type,eventFields)
{
        var t = this.title;
        var f = eventFields ? eventFields :
config.macros.SimileTimeline.eventFields;
        var ev = {};
        if(type && type=='tiddlerFields') {
                ev.start = this.modified;
                ev.title = t;
                ev.description = this.text ? this.text : '';
                ev.link = this.fields.link;
                if(!ev.link)
                        ev.link = 'javascript:story.displayTiddler(null,"' + t +
'")';<---------- here?????
        } else {
                ev.start = store.getTiddlerSlice(t,f.start);
                ev.latestStart = store.getTiddlerSlice(t,f.latestStart);
                ev.end = store.getTiddlerSlice(t,f.end);
                ev.earliestEnd = store.getTiddlerSlice(t,f.earliestEnd);
                ev.isDuration = store.getTiddlerSlice(t,f.isDuration);
                ev.title = store.getTiddlerSlice(t,f.title);
                ev.description = store.getTiddlerSlice(t,f.description);
                if(!ev.description)
                        ev.description = '';
                ev.image = store.getTiddlerSlice(t,f.image);
                ev.link = store.getTiddlerSlice(t,f.link);
                if(!ev.link)
                        ev.link = 'javascript:story.displayTiddler(null,"' + t 
+ '")';
<---------- here??????
                ev.icon = store.getTiddlerSlice(t,f.icon);
                ev.color = store.getTiddlerSlice(t,f.color);
                ev.textColor = store.getTiddlerSlice(t,f.textColor);
        }
        return ev;
};

What can I change to make this feature work in FF? Tanks for any help!
It would be nict to get this working in FF too...

All the best, André

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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/tiddlywikidev?hl=en.

Reply via email to