Saad Aziz wrote:
>
> My first problem is that when I try to add a link side of the bubble, 
> I lose the text following the markup declaration…
>
> For example:
>
> <event start="December 1 2006 15:41:05 GMT" title="test0">
>
> Some text goes here. <a href=”mylink.html”>Testing</a>
>
> </event>
>
> In this case, the bubble only Displays text up to <a href…
>
> So all you see inside the test0 bubble is:
>
> Some text goes here.
>
> Can someone please explain to me what I am doing wrong or missing, or 
> direct me to some documentation that addresses this issue?
>
You need to encode those < and > as &lt; and &gt;

<event start="December 1 2006 15:41:05 GMT" title="test0">

Some text goes here. &lt;a href=”mylink.html”&gt;Testing&lt;/a&gt;

</event>


Not so pretty but it should work.

> Secondly,
>
> I am interested in making the event editable on the fly…
>
> Has this been done before? ( Are there existing routines to handle 
> this, or is there is a live example of this being done anywhere?)
>
It's all doable. Liming Xu at ajaxlab.com has prototyped a friendly UI 
for _adding_ events to a timeline:

http://www.ajaxlab.com/timeline/tasks.html

Once you have modified an Event object, then to get the timeline to 
repaint, call its layout() method. If you expect the event to grow in 
duration or shift around, then it might be good to get all the layout 
managers to re-layout before calling the timeline's layout() method.

for (var i = 0; i < tl.getBandCount(); i++) {
tl.getBand(i).getEventPainter().getLayout()._layout();
}

> The motivation behind this Is that I am trying to use the timeline to 
> track pushes to our live site. So our project manager needs to be able 
> to modify events after they have been created.
>
> Ideally it would be nice to click something in the bubble and have it 
> take you to a form to edit the contents of current event.
>
> The way I was envisioning this was to use something like “discuss” 
> inside some of the bubbles, which will load a php script which will 
> find the event and modify it based on the link’s parameters.
>
> Also I cant figure out how to get the discuss functionality going…?
>
That's set by the attribute wiki-url and wiki-section in the root 
element of the XML file, e.g.,

http://simile.mit.edu/timeline/examples/jfk/jfk.xml

Hope that helps. Cheers,

David
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to