开发者

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:

  1. Hidden iframe on page
  2. Load content via jQuery:

    $('iframe').attr('src', soap_GetAttachmentData.php + '?parameter1=' + pararameter1 + '&pararameter2=' + 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜