[Javascript] Fw: div tag füllen

Hassan Schroeder hassan at webtuitive.com
Thu Jul 27 08:53:36 CDT 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 at webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
                opinion: webtuitive.blogspot.com
				
                          dream.  code.





More information about the Javascript mailing list