Hi Yoann
Would be really interested to see what you have done so far as I have
been working on something similar which is similar to another project
I am working on :  tiddlytagmindmap http://tiddlytagmindmap.tiddlyspot.com/.

It's kind of hard to grasp what you are trying to achieve but if I
understand correctly i believe you need to be using
createTiddlyElement here or document.createElement. Here is some
simple example code for you to play around with.. hope it helps.

var domElement = document.createElement("div");
domElement.id = "tiddlerid";
                                var clickfunction = function(event){
                                 alert(this.id)
                                };


                                if(domElement.addEvent){
                                        
domElement.addEvent('click',clickfunction);
                                }
                                else {
                                        domElement.onclick = clickfunction;
                                }


On Jan 14, 8:57 am, "[email protected]" <[email protected]> wrote:
> Hello,
> I'm currently working on a way to easily draw graphs in TW ! I already
> have a pre-version that can draw graphs assuming tags are links.
> Plenty of things to finish though !
> But I need somme help for some little things.
> First :
> I would like that the node are clickable and open the corresponding
> tiddler.
> I tried :
> * wikify('[['+value+']]', element);
> * element.innerHTML = '<a href="#'+value+'" refresh="link"
> tiddlylink="' + value +'">'+ value+'</a>';
> * element.innerHTML = wikifyPlain('[['+value+']]');
> but none of them work correctly... the innerHTML solution is the best,
> but it don't open the tiddler, it just "browse" to the graph node.
>
> An other issue :
> I would like to parse a tiddler to search for links to other tiddlers,
> a kind of "forward refs" (reminds me that for another project I need
> also backrefs...) + I would like anotated links, I mean, maybe extract
> the line of the ref, or some kind of context...
> Any idea, suggestions how to do that ?
>
> regards,
> Yoann
--~--~---------~--~----~------------~-------~--~----~
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