Thanks David,
one more question, The error message I get is "syntax error" ... I was
trying to determine where that originated from, it didnt seem like it came
from the Timeline._Impl.prototype.loadJSON function, as that ferror function
is: "Failed to load json data from".
As I said, I get this error when a malformed xml or json file is presented
to timeline.

Thanks.


On 6/24/07, David Huynh <[EMAIL PROTECTED]> wrote:

Graham Forte wrote:
> Hello,
> I am using timeline to allow user to dynamically display rss feeds. On
> occasion, a user "feeds" timeline a non well-formed xml doc and I
> wanted to capture the statistics of feeds that fail, basically I need
> to capture the url of the feed that the user tried to load into
timeline.
> The Timeline.debug js file seems rather generic and so I was wondering
> if there was a way to capture the filename that caused the error.
> Perhaps using debug or loadXML or loadJSON functions?
You can override those functions yourself by just writing some
Javascript code after you include timeline-api.js.

In http://simile.mit.edu/timeline/api/scripts/timeline.js, find
Timeline._Impl.prototype.loadXML. Then make a copy of that code and
change the fError inner function.

Cheers,

David
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to