On Mar 16, 2007, at 3:23 AM, George Moschovitis wrote:
Dear devs,
I have a short question. Is there a jquery shortcut for the
following js code:
document.getElementById
('myframe').contentWindow.document.getElementById('myframe').submit();
I am trying to programmatically submit a form in an iframe.
thanks in advance,
George.
Hi George,
That is a very timely question!
Witness the following thread just posted to the dev list:
On Mar 15, 2007, at 12:25 PM, John Resig wrote:
That resulting patch is great. It only seems to add about 1 line of
code (which is just perfect). I'll try and do some testing on it
tonight, and get it merged in. Great work!
--John
On 3/15/07, Volker Mische <[EMAIL PROTECTED]> wrote:
Hi,
adding nodes to iframes in Internet Explorer doesn't work at the
moment,
as the container for the dom tree gets generated with
document.doc.createElement("div"). Internet Explorer has security
restrictions that new nodes need to be generated in the same
context as
the iframe. This would mean something like:
document.iframe.contentWindow.document.createElement("div"). To
fix this
issue clean() gets a second argument, which passes document object of
the current context.
I attached a JavaScript file which can be included after
jquery-1.1.2.js
so you can test it. A patch is attached at http://dev.jquery.com/
ticket/978.
Cu,
Volker.
So, it looks like this feature is imminent. Unless, of course, I've
misunderstood your question, which is entirely possible.
Cheers,
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/