Re: Newbie Question - variable name in getElementById() method doesn't seem to work
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Newbie Question - variable name in getElementById() method doesn't seem to work

From: McKirahan <News@McKirahan.com>
Date: Mon Jan 30 2006 - 22:39:42 CET

"DJ Majestik" <jimmymg@gmail.com> wrote in message
news:1138656671.890923.187160@g43g2000cwa.googlegroups.com...
> Where do you call your second method from (handleResponse)? If you do
> it before the page is loaded, the div hasn't been created yet and
> therefore, is not there to change the innerHTML. Try putting the
> handleResponse in the body onload event:
>
> <body onload="handleResponse('myTest');">
>
> That should work if the first one works.

The OP's code showed that
"onMouseOver" calls "doGetUrl()" which calls "handleResponse()".
Received on Tue Feb 7 21:27:57 2006