Nevermind,
I figured it out.
I overrode the callback and just added an extra variable called Url.
Thanks.

On 6/25/07, Graham Forte <[EMAIL PROTECTED]> wrote:

Alan,
yes I have firebug, thanks!

David,
it looks like the error is thrown in the catch block of the
Timeline.XmlHttp._onreadyStateChange function.
Not sure if I can expose the filename of the xml/json from this function.
Any ideas?

On 6/25/07, Alan McMorran <[EMAIL PROTECTED]> wrote:

> Graham,
>
> Have you tried using Firebug (http://www.getfirebug.com/) on Firefox to
> debug Javascript? I've found it invaluable for locating bugs in my code.
>
> HTH
>
> Alan
>
> On 25 Jun 2007, at 14:57, Graham Forte wrote:
>
> 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
>
>
>
> _______________________________________________
> 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