Asim Zaidi
Asim Zaidi

Reputation: 28284

arguments.length works but not argument[0].value

I am trying to get a value of the response I check arguments.length and it says 1 and works but when I do arguments[0].value or arguments[0].responseText it doesn't work... it says undefined.... how do I get the values?

Upvotes: 0

Views: 671

Answers (1)

mpen
mpen

Reputation: 282845

I don't think there's enough information in this question to properly answer you... but I'm guessing that the arguments list isn't of the type you think it is. arguments[0] probably just doesn't have a value or responseText attributes.

Download and install Firebug for Firefox and then console.log(arguments[0]) or just arguments. See what properties it actually has. (or just alert it)

Upvotes: 2

Related Questions