[Javascript] Re: "Object Expected" Error

Bludshogun at aol.com Bludshogun at aol.com
Fri May 3 19:23:57 CDT 2002


--- In javascript at y..., Rodney Myers <rodney at a...> wrote:
> preSTRvariable = eval(document.body.innerHTML)
> This use of  eval is ill advised since the innerHTML is never likely to
> evaluate to any object definition or variable from which eval can extract a
> value, and if it did it would be meaningless.

yep, I was pretty stoned on that one. But I noticed that 
preSTRvariable = eval("document.body.innerHTML") successfully 
loads the innerHTML. But I can still not find a solution to my 
object expected error. I do not understand why it is looking for 
an object at the call of  string .

Peace, Aaron



More information about the Javascript mailing list