D
Daniel Loose
Hi,
I am new to prototype.js and appreciate it a lot.
One simple thing however seems to be impossible? I have a <td> element
which I want to fill with
- an input field
- text
- another input field
at one step.
i.e.
td = ... (simply the <td> element)
in1 = new Element('input', ...)
in2 = new Element('input', ...)
Now none of these works: (because in some cases, the element itself is
printed, not its content)
td.update(in1).update(td.innerHTML + 'bla').update(td.innerHTML + in2)
td.update(in1 + 'bla' + in2)
td.update(in1.innerHTML + 'bla' + in2.innerHTML)
....so what *does* it?
(or simply: how do I get the content of a new, not-yet-written,
element?)
Thx!
*************
Marty - it's perfect! You're just not thinking fourth dimensionally!
[Emmett "Doc" Brown]
If you wish to email me, please use newsreply at wuwei minus webservices dot de
I am new to prototype.js and appreciate it a lot.
One simple thing however seems to be impossible? I have a <td> element
which I want to fill with
- an input field
- text
- another input field
at one step.
i.e.
td = ... (simply the <td> element)
in1 = new Element('input', ...)
in2 = new Element('input', ...)
Now none of these works: (because in some cases, the element itself is
printed, not its content)
td.update(in1).update(td.innerHTML + 'bla').update(td.innerHTML + in2)
td.update(in1 + 'bla' + in2)
td.update(in1.innerHTML + 'bla' + in2.innerHTML)
....so what *does* it?
(or simply: how do I get the content of a new, not-yet-written,
element?)
Thx!
*************
Marty - it's perfect! You're just not thinking fourth dimensionally!
[Emmett "Doc" Brown]
If you wish to email me, please use newsreply at wuwei minus webservices dot de