Dear Sir,
Hello ! In the below given code by you to add checkbox, I would but need
following :
a) I would need to pass on Id which is unique of the table containing events
which is used to fill in xml to populate events in timeline then only I can
know which event this
belongs to as all other tags can be duplicated. But there is no such
thing I know to add in <event> </event> in xml, can I however give ?
b) To update table value based on the selection in checkbox if it is
checked, as mentioned I want to update the data in table and hence would
need to call a php function and to pass the Id (as mentioned above in point
a) to it so that the function can update the table, so please guide me how
to call that function in between "... do something ... eventObject should
give you the data you need" as written by you. Please guide me.
1) I need to add a checkbox in the info window which opens up on
clicking timeline dot and update one field in one table if user checks
that box on. Please guide me.
Add this code after you include timeline-api.js:
<script>
var oldFillInfoBubble =
Timeline.DefaultEventSource.Event.prototype.fillInfoBubble;
Timeline.DefaultEventSource.Event.prototype.fillInfoBubble =
function(elmt, theme, labeller) {
oldFillInfoBubble.call(this, elmt, theme, labeller);
var eventObject = this;
var div = document.createElement("div");
div.innerHTML = "<input type='checkbox' /> abc";
div.firstChild.onclick = function() {
... do something ... eventObject should give you the
data you need ...
}
elmt.appendChild(div);
}
</script>
Please help soon.
Thanks & Regards,
Naimesh Trivedi
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general