Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Fw: div tag fÃllen


  • From: hassan at webtuitive.com (Hassan Schroeder)
  • Subject: [Javascript] Fw: div tag fÃllen
  • Date: Thu Jul 27 09:28:33 2006

Michael Borchers wrote:

> i try to fill a div tag (see above) with a httpRequest.responseText,
> which definitely is there! i guess it won't work with the "value" tag?!

No. You want to do something like:

var newText = document.createTextNode(httpRequest.responseText);
document.getElementById('test').appendChild(newText);

(Obviously, only after httpRequest has returned a value!)

HTH,
-- 
Hassan Schroeder ----------------------------- hassan@xxxxxxxxxxxxxx
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
                opinion: webtuitive.blogspot.com
				
                          dream.  code.