alrighty I will try that thanks.
--- David Huynh <[EMAIL PROTECTED]> wrote:
> Kent,
>
> You could try the JSONP trick: your servlet returns
> a stream of
> Javascript code that looks like this
>
> callbackName({
> ... data in JSON format here ...
> });
>
> callbackName can be set in the URL to your servlet,
> if desired. What
> this lets people do is this:
>
> <html>
> <head>
> <script
> src=".../timeline-api.js"></script>
> <script>
> var holdTheDataHere = null;
> var tl;
> function doSomething(data) {
> holdTheDataHere = data;
> };
> function makeTimeline() {
> var eventSource = ...
> ...
> tl = Timeline.create(...);
>
> eventSource.loadJSON(holdTheDataHere,
> document.location.href);
> };
> </script>
> <script
> src=".../timeproviderservlet?url=...SOME
> FEED...&callback=doSomething"></script>
> </head>
> <body onLoad="makeTimeline();">
> ...
> </body>
> </html>
>
> This example shows you what the JSON data looks like
>
>
>
http://simile.mit.edu/timeline/examples/cubism/cubism.html
>
> David
>
>
> Kent Gibson wrote:
> > First of all thanks for the timeline, it is well
> done.
> >
> > I dunno where to go with the servlet. After
> writing it
> > yesterday I found out it wont work as a service
> (which
> > was what I wanted), becuase javascript requires
> that
> > the what you pass into Timeline.loadXML is located
> at
> > the same server where the javascript is running.
> In
> > other words you must serve your XML from the
> > same server as the HTML comes from.
> >
> > I could return HTML instead but I am not sure what
> > that will bring, I need to do something with the
> xml,
> > no? I am open for any suggestions. I would like to
> > make it more live.
> >
> > this how I intended it to work as a service, this
> is
> > the url of the servlet:
> > http://www.syndicatescape.com/timeproviderservlet
> >
> > add ?url=YOUR_FEED to the end of the url and you
> get
> > XML.
> >
> >
> >
> >
>
____________________________________________________________________________________You
> snooze, you lose. Get messages ASAP with AutoCheck
> > in the all-new Yahoo! Mail Beta.
> >
>
http://advision.webevents.yahoo.com/mailbeta/newmail_html.html
> > _______________________________________________
> > General mailing list
> > [email protected]
> > http://simile.mit.edu/mailman/listinfo/general
> >
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>
____________________________________________________________________________________
Get your own web address.
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general