C
Chris Shearer Cooper
I'm writing some JavaScript code that is being called inside a third
party tool, and I have no idea what the context is, except that I'm
definitely not in a window (so things like setTimeout() can't be
used).
What I'm finding is that when I try to construct an XMLHttpRequest
object, it throws an "object error" exception.
Does XMLHttpRequest depend on being inside a window?
Do I need to construct it differently if I'm _not_ inside a window -
something like
var v = new window.XMLHttpRequest;
Or something weird like that?
Thanks,
Chris
party tool, and I have no idea what the context is, except that I'm
definitely not in a window (so things like setTimeout() can't be
used).
What I'm finding is that when I try to construct an XMLHttpRequest
object, it throws an "object error" exception.
Does XMLHttpRequest depend on being inside a window?
Do I need to construct it differently if I'm _not_ inside a window -
something like
var v = new window.XMLHttpRequest;
Or something weird like that?
Thanks,
Chris