On Monday 14 May 2007 16:28, Kent Gibson wrote: > I dunno where to go with the thing. 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.
I was thinking on the same lines. You need to have a proxy on the same server as the servlet through which the HTML and its related JavaScript files can be pulled. So you would do something like http://service.server/timeproviderservlet?html=http://my.blog/page.html&feed=http://somewhere.else/feed.rss The servlet would fetch the HTML and pass it through, possibly rewriting stuff in it on the way. When the HTML reached the browser is would generate a call back to http://service.server/timeproviderservlet?feed=http://somewhere.else/feed.rss at which point you'd parse and dispatch the feed. Hope this helps Simon -- [EMAIL PROTECTED] (Simon Brooke) http://www.jasmine.org.uk/~simon/ ;; Life would be much easier if I had the source code. _______________________________________________ General mailing list [email protected] http://simile.mit.edu/mailman/listinfo/general
