I have a jwysiwyg content editor control on my page. Management works by creating itself in an iframe that contains the full HTML code of the page inside it.
I want to determine if there was a change or keyup , so I can use our code "Indicate that the record should be saved." We have input fields, and this work is great, just this editor of third-party editors gives us problems.
Here's what the page source looks like:
<div id="this_is_our_div_Container"> <div class="wysiwyg"> <iframe id="f_Body-wysiwyg-iframe"> <html> <body style="margin: 0;" class="wysiwyg"> I just typed this now!</body></html> </iframe> </div> <textarea class="wysiwyg" cols="20" id="f_Body" name="f_Body" rows="2" style="display: none;"></textarea> </div>
See that the body tag contains real-time changes.
With these SO questions ...
jQuery 'if.change () or .keyup ()'
stack overflow
I tried the following in a document. Done:
$('iframe').contents().find('body.wysiwyg').live('change', function (e) { alert('testing'); }); $('iframe').contents().find('body.wysiwyg').live('keyup', function (e) { alert('testing'); }); $('iframe > *').bind('keyup', function (e) { alert('testing'); });
Hope this printer helps. Larger 
source share