Hi Ami, you can bind the load event to your iframe, but I'm not sure if there are any browser quirks
see also this plugin: http://ideamill.synaptrixgroup.com/?p=6 by(e) Stephan 2009/2/11 Ami <aminad...@gmail.com>: > > Thank you. > > You write that I need to wait until the iframe has been loaded. > So I can do this? > var frame=$("#iframe")[0].contentdocument; > $(frame).ready(function () { > alert('Iframe has been loaded!'); > }); > > Am I right? > > and Thank you again. > > On Feb 8, 6:07 pm, Stephan Veigl <stephan.ve...@gmail.com> wrote: >> Hi Ami >> >> you can access an iframe with: >> var frame = window.frames[0].document; >> -or- >> var frame = $("#iframe")[0].contentDocument; >> >> var div = $("div", frame); >> >> just remember to wait until the iframe has been loaded. >> >> by(e) >> Stephan >> >> 2009/2/8 Ami <aminad...@gmail.com>: >> >> >> >> > Can I use jQuery to work with elements in other frames? >> >> > For Example: >> >> > <html> >> > <iframe id=frame1></iframe> >> >> > <script> >> > $("#frame1 document") >> > OR >> > $(document, $("#frame1")) >> > </script>