Loading binary data in iframe in IE
I'm trying to load binary PDF data in an iframe to avoid reloading a page with a lot of dynamic content. The actual data is obtained through SOAP and a Remobjects server, so that's why I can't just put a link on the page. Works wonderfully in FF, Chrome and Opera, but alas - not in IE. Here's what's going on:
- Hidden iframe on page
- Load content via jQuery: $('iframe').attr('src', soap_GetAttachmentData.php + '?parameter1=' + pararameter1 + '¶rameter2=' + pararameter2);
Nothing fancy and quite simple. However, IE tells me it cannot donwnload the php file from localhost (developing locally at the moment). I've tr开发者_StackOverflow社区ied making changes to the PHP functions, but nothing helps. One thing I noticed was that whenever something in the PHP file fails (thus failing to load any binary data), IE will not complain.
Thoughts?
-- EDIT
It seems this is actually an issue with IE on localhost. I tried the same thing on a live server and it worked the way it should. -- EDIT
精彩评论