|
|
||
|
On a dynamically created popup form, I have an asyncronous ajax call working and returning an id inside the form's onsubmit function... |
||
|
|
|
|
||
|
DomAPI can only create elms within the page it was included on. It sounds like you are trying to use it in an unsupported manner. |
||
|
|
|
|
||
|
User clicks on main page link, new elm opens, user acts, elm closes, main page elm gets added....is this not a very common thing to do? |
||
|
|
|
|
||
|
or skip the dynamic creation of these forms, and create them on the initial load and hide them? I did think of this way originally, but seems inefficient compared to doing things only when they are needed. |
||
|
|
|
|
||
|
You're mixing terms like popup, topparent and elm making it difficult to tell what it is you are doing. If you do have two separate windows, each window must have its own copy of the library. If that's not what you are doing, then please be more specific. |
||
|
|
|
|
||
|
okay... |
||
|
|
|
|
||
|
iframe is in it's own window. it got it's own dom tree. that require it's own copy of domapi running. You can pass data between windows. but don't expect you can create some dom nodes and pass them around to insert in different dom tree. |
||
|
|
|
|
||
|
Sure, makes sense to me. Thanks Henry. |
||
|
|
