Arjunsos / simile-widgets

Automatically exported from code.google.com/p/simile-widgets
0 stars 0 forks source link

TIMELINE: can we restrict the time duration in timeline ? #69

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
i need to display each user's activities as a event. 
Each user have registered in different date n time.
i don want to allow the user to timeline before he registered;

say for an example if he registered on 1/1/2009 n today's date is 23/3/2009
he can only panned between these two days and not more r less than tat 

is it possible ? please help me I'm new to Timeline & AJAX.

Thanks in advance.

Original issue reported on code.google.com by padra...@gmail.com on 23 Mar 2009 at 10:39

GoogleCodeExporter commented 8 years ago
Hi Padrajan,

You can restrict the events that a Timeline shows in a number of different ways:
1) Change the source of the data to be a program instead of a file. Then have 
the
program only include the events that the user is authorized to see. This would 
be the
most secure method.
2) Download all of the data to the Timeline, but use additional Javascript to 
show
only the authorized data.

In either case, your users will need to sign in to your Timeline application so 
you
can tell who is who and what data they are authorized to view.

Regards,

Larry

Original comment by larryklu...@gmail.com on 23 Mar 2009 at 3:29

GoogleCodeExporter commented 8 years ago
thank u larry. i found the solution in new version of timeline. but in
timeline-api.js file ...for ajax and javascript its refering for site only. i 
don
know how to run it in local. 
http://simile-widgets.googlecode.com/svn/timeline/trunk/src/webapp/api/timeline-
api.js

i have downloaded al the files using SVN s/w  can u help me.
my local path is..
<script src="../../api/timeline-api.js?bundle=true" 
type="text/javascript"></script>
    <script src="../../ajax/timeline_ajax/simile-ajax-api.js"
type="text/javascript"></script>
  <script>
     var
Timeline_ajax_url="http://LOCALHOST/NEWTIMELINE_2.4.0/ajax/timeline_ajax/simile-
ajax-api.js";
     var Timeline_urlPrefix='http://LOCALHOST/NEWTIMELINE_2.4.0/ajax/timeline_js/'; 

     var Timeline_parameters='bundle=true';
   </script> 
   <script src="http://LOCALHOST/NEWTIMELINE_2.4.0/ajax/timeline_js/timeline-api.js"    
     type="text/javascript"> 

i have given the above script in compact painter example but its not working

Original comment by padra...@gmail.com on 24 Mar 2009 at 8:28