Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Below code i am using it to open print window with some html content in some div. This code is working perfectly fine with Chrome and Firefox however when I run it on IE 8,9 it is opening a window with URL: [http : / / /] and getting crashed. what am i missing. document.domain is required for iframes. I am not able to find out what is the issue here.

jQuery(function ($) {
    $('a.certificate-window').click(function () {
            var btn = $(this),
                icsCertificate = btn.find('.em-certificate').html(),            
                recipecert =  window.open('','PrintWindow','width=925,height=725'),
                html = '' + icsCertificate + '';
            recipecert.document.open();
            recipecert.document.write(html);
            recipecert.document.close();
            return false;
        });
});

Thanks, B

share|improve this question
    
Update to the latest version, this has been solved already. –  toscho Nov 7 '13 at 17:03
    
@toscho Latest version of what? jQuery, IE, WordPress? –  morganestes Nov 7 '13 at 17:22
    
WordPress of course. :) –  toscho Nov 7 '13 at 17:24
    
Well there are lot of factors .. to updating wordpress.... right now i cannot do that cause many plugins are involved in it. Can you suggest any alternative for it? –  Bhavin Shah Nov 7 '13 at 17:27
    
Are you saying this issue will not get resolved unless and until i update the wordpress? –  Bhavin Shah Nov 7 '13 at 17:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.