Integrating TimeLineJS – GSoC – week #11

TimelineJS library contain with examples. It have good reference with aid of HTML code. Referring it I have try to complete the necessary codes which needs to render the timeline . But it was’t successful.

<!– BEGIN Timeline Embed –>
<div id=”timeline-embed”></div>
<script type=”text/javascript”>
    var timeline_config = {
    width: “900”,
     height: “900”,
     source: ‘example_kitchensink.json’,
}
</script>
<script type=”text/javascript” src=”../compiled/js/timeline-embed.js”></script>
<!– END Timeline Embed –>

In html code, it provide source for get timeline event details as a JSON string. My target was provide the source as JSON encode of php object which returned  the user events. Obviously php object is the $node, which created in week 9.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s