|
|
||
|
Right now I would recommend using the Elm's remove() method. This deletes all references to it from the domapi object and also removes it from the DOM. There is also an undocumented _free() method, but that is currently only used internally in onunload. |
||
|
|
|
|
||
|
I have a link on my page that creates an elm of iframe type that has a form in the iframe which has a onsubmit function (that does an ajax call). How can I reference the parent iframe elm from the onsubmit called function? All I am trying to do is have the iframe remove once that ajax has been called (so form adds data to db and should then disappear). I am thinking the elm.remove() is the way, but am having trouble referencing. Was going to pass an object reference in the onsubmit function, but wasn't quite sure how to that either. I am passing the 'this' in the onsubmit so I can use the submitted data... |
||
|
|
|
|
||
|
I believe 'parent' will get you into the scope of the window that contains the iframe Elm. Try parent.elmName.hide() for starters, and play with it from there. |
||
|
|
|
|
||
|
Yes, that did work, thx! |
||
|
|
