Well the solution is to first call setVisible(true) and then do the
first access to the form within a function called by setTimeout():
function doEdit(row) {
formDialog.setVisible(true);
setTimeout('_doEdit( ' + row + ' )',100);
}
function _doEdit(row) {
var form = document.edit;
var question = document.edit.question.value;
// processing follows
}
Is ther a better way to do this here?
Any help is welcome.
Thank you.
Dietrich Streifert schrieb:
It seems that the correct DOM tree is created after the first call to
setVisible().
So I have to find a way to force the creation of DOM tree prior to the
first setVisible() call.
Any ideas?
Thank you!
Dietrich Streifert schrieb:
Hello Listusers!
I want to create a dialog via QxWindow with a <form> in it.
We have eg the following html-code:
<form name="edit" action="" onsubmit="return false;">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="inputlabel"
style="vertical-align:top">question::</td>
<td><textarea name="question"></textarea></td>
</tr>
<tr>
<td class="inputlabel" style="vertical-align:top">type:</td>
<td><input name="typ" type="text" value=""></td>
</tr>
</table>
<input type="hidden" name="id" value="">
</form>
The goal is to have the form accessible by the following code:
document.edit.question.value
I tried to create a QxAtom where I set the above code as argument
var wm2form = new QxAtom('<form>.....</form>');
which leads to the correct rendering but does not place the form by
name in the DOM hierarchie.
Any suggestions would be welcome.
Thank you!
--
Mit freundlichen Grüßen
Dietrich Streifert
Visionet GmbH
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel