|
Posted by db on 06/14/06 14:27
the DtTvB schrieb:
> What about making a div that contains HTML in it?
>
> Example is:
> formdiv = document.createElement('div');
> formdiv.innerHTML = '<form action=".....">\
> Don\'t forget to use backslashes after each line!\
> </form>';
Actually I am using div now. In the html part:
<div class="csc-header csc-header-n1" id="dynamiccontent">Loading WSN
status...</div>
and in the javascript part, firstly i get the div with using
var content =
document.getElementById('dynamiccontent');
and then generate form, after that i use
content.appendChild(inputform)
Is that right?
db
Navigation:
[Reply to this message]
|