Alex Rivera | Logout

JQuery and frames - $(document).ready doesn't work

Asked 2008-10-21T08:46:35.140
16

I have a page, with some code in js and jQuery and it works very well. But unfortunately, all my site is very very old, and uses frames. So when I loaded my page inside a frame, $(document).ready() doesn't fire up.

My frameset looks like:

<frameset rows="79,*" frameBorder="1" frameSpacing="1" bordercolor="#5996BF" noresize> 
    <frame name="header" src="Operations.aspx?main='Info.aspx'" marginwidth="0" marginheight="0" scrolling="no" noresize frameborder="0">
    <frame name="main" src="Info.aspx" marginwidth="0" marginheight="0" scrolling="auto" noresize frameborder="0">      
</frameset>

My page is loaded into the main frame. What should I do?

Edit
Report

1 Answer

2

I assume this is a similar problem I was having with DOMContentLoaded in an iframe.

I wrote a blog post about it.

answered 2009-01-28T19:13:51.053

Your Answer