Turn on the console window and watch the log messages for
my example It simply won't run the resize or ready methods for $myframe (use view source on my example to see the whole file). I'm new to jQuery and can't understand what I'm doing wrong, so any suggestions will be appreciated.
The relevant code looks like this:
- function frameload() {
console.log('frameload');
}
function frameready() {
console.log('frameready');
}
function frameresize() {
console.log('frameresize');
}
$(document).ready(mainready);
$(window).load(mainload);
$(window).resize(mainresize);
var $myframe = $("#myframe");
$myframe.load(frameload);
// but following two not working
$myframe.resize(frameresize);
$myframe.document.ready(frameready);