[jQuery] JQuery IE7 and document.ready
<div>Hi,</div>
<div> </div>
<div>I am new to JQuery. I have tried few ajax features of jquery and they all work beautifully on firefox. But when I try them on IE7, they fail. The problem is with ajax and jquery. I load a div using ajax "load" function. The contents of the div also include some new jquery script to controller the behaviour of new dom elements. However, the
document.ready() never gets fired up after the ajax div is loaded. </div>
<div> </div>
<div>here is example of what I am saying</div>
<div>Origial Page</div>
<div><head></div>
<div> <script...></div>
<div> document.ready(...</div>
<div> $('button').click(</div>
<div> $('#load_div').load(..some url.);</div>
<div> });</div>
<div> </script></div>
<div></head></div>
<div><body></div>
<div> .....</div>
<div> <div id='load_div'></div></div>
<div></body></div>
<div> </div>
<div>After Ajax</div>
<div>
<div><head></div>
<div> <script...></div>
<div> document.ready(...</div>
<div> $('button').click(</div>
<div> $('#load_div').load(..some url.);</div>
<div> });</div>
<div> </script></div>
<div></head></div>
<div><body></div>
<div>
<div> .....</div>
<div> <div id='load_div'></div>
<div> <script..></div>
<div> document.ready(){.....});</div>
<div> </script></div>
<div> <select></div>
<div> </div>
<div> </div></div>
<div></body></div></div></div>
<div>I saw a similar issue on the mailing list and wasn't clear with the response. Can someone provide me a code example.</div>
<div> </div>
<div>Regards,</div>
<div>Ritesh<br clear="all">
--
------------------------------------
Even a clock that does not work is right twice a day.
~Polish Proverb
</div>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/