Hi,
I am new to prototype.js and appreciate it a lot.
One simple thing however seems to be impossible? I have a <tdelement
which I want to fill with
- an input field
- text
- another input field
at one step.
i.e.
td = ... (simply the <tdelement)
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.inner HTML + 'bla').update(t d.innerHTML + in2)
td.update(in1 + 'bla' + in2)
td.update(in1.i nnerHTML + '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 <tdelement
which I want to fill with
- an input field
- text
- another input field
at one step.
i.e.
td = ... (simply the <tdelement)
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.inner HTML + 'bla').update(t d.innerHTML + in2)
td.update(in1 + 'bla' + in2)
td.update(in1.i nnerHTML + '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
Comment