|
[jQuery] $(document).load() and friends: msg#01146lang.javascript.jquery
Am I missing something obvious or why does .load() not seem to trigger anything. I am sure $('img').load(function() { something }); used to work before. This is not the case with 1.0.2. Check the page below. I get only "ready" at firebug console. So none of the load()'s get executed. http://www.appelsiini.net/~tuupola/jquery/panview/load.html -cut- $(document).ready(function() { console.log('ready'); }); $('img').load(function() { console.log('img load'); }); $('p').load(function() { console.log('p load'); }); $(document).load(function() { console.log('document load'); }); -cut- -- Mika Tuupola http://www.appelsiini.net/~tuupola/
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [jQuery] More jQuery Tutorials (was "unsuscribe"), "Jörn Zaefferer" |
|---|---|
| Next by Date: | Re: [jQuery] Ajax to update multiple fields, Sean O |
| Previous by Thread: | [jQuery] Ajax to update multiple fields, Scott Sharkey |
| Next by Thread: | Re: [jQuery] $(document).load() and friends, Mark Gibson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |