Hey folks. I recently upgraded my Capp environment to 0.9.8 and my app pretty much still works except for one thing. I have a place in my code where I create an hidden iframe on the fly with the intention of printing it. This worked perfectly in 0.9.7 but not in 0.9.8. Unfortunately, my HTML/CSS skills are meager at best (which is why I love Capp) and I have little idea what might have caused this to break.
The code is simple:
---- CUT HERE -----
var iframe = document.createElement( 'iframe' );
iframe.style.display = 'none';
iframe.src = [ CPString stringWithFormat:@"/qr?action=print&oid=%@", [ [ self representedObject ] oid ] ];
iframe.onload = function()
{
iframe.focus();
iframe.contentWindow.print();
iframe.parentNode.removeChild( iframe );
};
document.body.appendChild( iframe );
---- CUT HERE -----
Like I said, worked in 0.9.7, not in 0.9.8. Not sure I understand how a Capp version change could have affected this, as it's not strictly Capp code.
Any help would be greatly appreciated.
Thanks,
Scott