Attach_file_to_response kills iframe content

Hello,
I have a WDA application using an iframe. I fill the iframe by using an object of if_http_response and add this object to the server cache: cl_http_server=>server_cache_upload. This works perfectly fine.
I added a button in order to save the content of the iframe localy to the hard drive.
The problem is when I try to use cl_wd_runtime_services=>attach_file_to_response the iframe shows (right after the save dialog shows up):
>Action canceled
>Internet Explorer was unable to link to the Web page you requested. The page might be temporarily unavailable.
The url which I use for the iframe source is still working and the content is still in the server cache avaiable.
I would re-build the iframe but I don't get any trigger like the wd_modify or so after I called cl_wd_runtime_services=>attach_file_to_response.
Any help is appreciated and there is no way to replace the iframe. This is not an option.
Regards,
Christoph

Hi,
How did you convert the table of Hexadecimel values to Xstring??
I am also facing the same problem as my requirement is same as you.
The i_content in attach_file_to_response method is a structure and i am getting the values in a table (Hexadecimal Values). I tried with looping the Hexadecimal table into a structure. After executing it gives the error as "The file is corrupted and it cant be opened".
Can you help me with this.
Thanks in advance.
Regards,
Sankar

Similar Messages

  • Iframe content in YUI tab disappearing - only in firefox 11

    We have an internal web site developed with YUI which uses the tabview control along with some content provided through an iframe. When the page initially loads the iframe is displayed but when switching between the YUI tabs the iframe content disappears. This stopped working with the upgrade to Firefox 11. It was working with all previous versions including up to 10.0.2.

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • How to change pdf page in an iframe content automatically

    I open a pdf in my web page with <iframe> and the pdf-option for example #page=2 equals week number 2 of a year.
    How could I change the viewable page as a function of the actual week number of a year (#1 - 52)
    At the moment my html code looks like:
    <div id="tr-inside_anw2">  
        <iframe class="org_pdf_anw"
        src="attendance.pdf#page=2"></iframe>
    </div>
    Is there a way to use a variable for the week number? or is it better to use a javascript "function dayofweek_iframe()"
    which changes the whole iframe content?
    Is there somebody, who know a solution with code? Thanks

    Thanks, it worked on my Mac apps. But the problem is that the new numeration is not recognized by my PDF Reader on iPad (goodnotes), so numeration starts from 1...

  • How can i disable "browser-auto-load" for different iframe-contents in a composite widget?

    Hey there,
    i´ve got a lil topic going on with a Website (One-Site-Layout with anchors), created with muse
    i putted 20 iframes (each one routed to its own trigger) in a composite widget. Everything is working perfect for me and the users, but :
    The deliverer of the iframe-contents (pretty big picture galeries) told me, his server crashes, because every single time, someome enter the Website, the browser i loading every single iframe-content in this widget automatically > so the traffic is way to large, and i need a solution that simply load every single content after a click on the right trigger, not before.
    thank you so much!
    Werner
    Gonna let you see the the "trouble-area" http://werner-ag.com/#produkte

    That is not possible.
    You can look at this extension:
    *https://addons.mozilla.org/firefox/addon/toggle-mixed-active-content/
    *https://developer.mozilla.org/Security/MixedContent

  • Using BC poplet lightbox for iframe content?

    Greetings!
    I'm having issues where BC's poplet lightbox is preventing our other lightbox script from working. Is there a way present iframe content using BC's poplet lightbox by giving the content a new "rel" tag?

    Is there a URL you could post to take a look at any error messages?

  • Unable to scroll iframe content in Safari on ipad

    unable to scroll iframe content in Safari on ipad

    Try going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • Manipulating iframe content

    Hello,
    I face some problem, i am using jquery as my framework, and i got an issue with the iframe content.
    What i want to do is the load external website into my iframe (random website url from my database), and to insert my script into header (i want to do something like greasemonkey does on firefox).
    Here's my code:
    $('iframe').contents().find('header').append('<script>My user script</script>');
    The problem is that this doesn't work, when i tried to do $('iframe').contents().find('header').html() returns nothing...
    I knew this was a limitation in html because of cross domain, but adobe air isn't restricted to that, so what am i doing wrong here?

    I'm not versed in the AIR html security model, so I'm going to forward this over to our webkit team.  My hunch is you are running into a security related restriction.  If you haven't already, please take a look at the following pages:
    HTML Security in Adobe AIR
    Cross-scripting content in different security sandboxes
    Thanks,
    Chris

  • Iframe content disappear if script loaded from string

    I've got strange behaviour of FireFox 3.6-14 (have no 3.0 for now) with whis sample of code
    http://pastebin.com/CzzfB709
    Short explanation: if we create SCRIPT element and push script text from string and at the same time this script (that comes from string) create IFRAME, then iframe content is reloaded after script finished;
    In sample code you can see that we have `scriptText` variable that contains JS code. Then we create SCRIPT tag and put string code there.
    What you see: till you not close alert windows, you see text in iframe, but when you close it, iframe became blank.
    I also have an example of the same code from string if it pasted directly into HTML. Everything seems fine there.
    http://pastebin.com/4JcajiDQ
    I ask if anyone can just explain me, why is it hapend.

    As I think, this is some kind of a problem inside FireFox. So I just didn't know where to post it. Usually I'll prefer developer discussion group or maillist but I could not find such for FireFox. If you shure that mozillaZine is a best place for it than I'll wait. But I'm not shure whether it is still active community based on it's main page.

  • In an iFrame, content loads only after a refresh

    I have this website
    www.paidly.co
    In it, there is an iFrame. Now this loads perfectly fine in Chrome, and IE but in Firefox only the html content is shown, without any CSS or JS applied. On reloading the frame, I randomly get the entire loaded document sometimes and at other times it is not so. The code for the iframe looks like this:<br />
    <pre><nowiki><iframe class="iphone-content" src="Mobile/main.html"> </iframe></nowiki></pre>
    The page that is being called is this:
    <pre><nowiki><!doctype html>
    <html>
    <head>
    <title>Paidly</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css">
    <script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
    <script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>
    </head>
    <body> ... </body>
    </html></nowiki></pre>

    I need to right-click in the frame and choose Reload Frame to make the frame display properly.<br />
    Maybe it is because the frame is hidden that Firefox isn't loading the CSS and JS files.

  • Right Click to convert webpage to pdf creates pdf with website headers but not iframe content

    Hello
    We are having a problem converting webpages to pdf with Acrobat.  Out website uses Iframes to view the website we are converting to pdf.  When I right click on the webpage and click convert to pdf everything works fine. But the pdf that is created is only the header of the page not the content of the iframe I right clicked on.  If you go to file and print to pdf it works fine we get the content of the iframe in the pdf and not the rest of the webpage. But the users prefer to right click. Is there some way to fix this so we can right click to convert to pdf?
    Thanks
    Jason

    I dont think acrobat can convert iframes to pdf (need to check). It can convert html, some javascript, images and swfs for example. Data driven pages, depending of the programming cant be converted too.

  • Iframe contents not displaying in FF Windows 7 or Mac

    I've read almost all posts about frames not displaying in FF, however, I have an odd issue. While I am able to get the iframe to display, NOT ALL of its contents is displaying. It's odd. A sample page is below, click on the virtual tour tab and you will see what I mean. All the code does show up. This also happens for another page with similar type of code. This works fine in Chrome/IE both PC and Mac. Any help would be appreciated.
    Thanks
    http://www.kdnovelties.com/educational/terrance-the-giraffe/personalized_293.html

    The content is there, but is hidden with display:none style rule, so it looks that if there is script running to show this content then it doesn't finish properly.
    <pre><nowiki><div id="virtualbook" class="kdnbook" style="height: 465px; width: 680px; display: none; margin: auto;"></div></nowiki></pre>
    Removing the display:none makes the book appear for me.
    The Web Console also shows an error with the MP3 file:
    <pre><nowiki>HTTP "Content-Type" of "audio/mpeg" is not supported. Load of media resource http://26ebe445280acec2e3b0-023df79dc48add581f4e26895345aac6.r54.cf1.rackcdn.com/page-flip.mp3 failed.</nowiki></pre>

  • Iframe Content cahnge issue

    I am struggling trying to find a solution for. I have a page with an  iframe. The document in the iframe comes from a different domain which I  can not alter the contents for eg. google.com . If any change occur  inside frame i want to get the Url of that page. and redirect to another  page.I did the same using javascript in DreamWeaver CS5 and it works  properly work when i am using "Live view" in CS5. But when i tried to  access that page in all browser it doesnt work. Why?
    or is there any Solutio for this issue?
    Code:
    <?xml version="1.0"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <title>Changing IFRAME Src</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <script type="text/javascript" language="javascript">
    function getSrc(obj) {
         alert(frames['myframe'].location.href);
         //alert(obj.src);
         if(frames['myframe'].location.href=="http://www.google.co.in/")
             frames['myframe'].location.href="http://www.yahoo.com";
         else
             alert("Nop");
    </script>
    </head>
    <body>
    <iframe id="myframe" src="http://www.google.com" width="100%"  height="500"  onLoad="javascript:getSrc(document.getElementById('myframe'))"  name="myframe"></iframe>
    </body>
    </html>
    Anyone have any ideas? I searched for ever and a day on Google with no help...

    Hi nijin30,
    This forum is primarily for discussing the BrowserLab service / application; if you are still searching for solutions, I'd try looking at some JavaScript forums.  A Google search for "detecting the URL of an IFrame using JavaScript" turned up several promising leads.
    A couple ideas that may help you get unstuck.
    IFrames may load after your main page loads, so you may be running into a case where you are trying to check properties of an IFrame that isn't loaded yet.  Since it works on a local copy (Dreamweaver Live View), this seems like it is a good candidate.  Maybe you can use setTimeout to delay your check until after the IFrames are loaded.
    In order to change the location of an IFrame I think you want to edit the source (instead of redirecting the document inside it).  Another way to write:
       frames['myframe'].location.href="http://www.yahoo.com";
    is...
      document.getElementById('myframe').src = "http://somedomain.com/page.html";
    Best of luck with your page.
    Cheers,
    Josh

  • Iframe content

    I've built a page that contains an iframe and a list of links
    that open different content within that frame. Google has indexed
    the source frames, so a user can click the link from Google and the
    content appears outside its parent page. Is there a way to force
    the parent page to load in such cases, or do I need to disallow
    indexing of the source pages to prevent this issue from
    happening?

    Try this in the HEAD section
    <script type="text/javascript">
    var text = window.location.href;
    function delineate(str) {
    theleft = str.indexOf("=") + 1;
    theright = str.indexOf("&");
    return(str.substring(theleft, str.length));
    url=delineate(text)
    function refreshFrame() {
    if(maincontentarea.location!=url&&url!=location.href)
    maincontentarea.location.replace(url);
    function calcHeight()
    //find the height of the internal page
    var the_height =
    document.getElementById('maincontentarea').contentWindow.document.body.scrollHeight;
    //change the height of the iframe
    document.getElementById('maincontentarea').height=the_height;
    </script>
    And append this to the end of your Body tag
    onload="refreshFrame();">
    "Harv Craven Design - HCD"
    <[email protected]> wrote in message
    news:eooq85$2it$[email protected]..
    > I've built a page that contains an iframe and a list of
    links that open
    > different content within that frame. Google has indexed
    the source frames,
    > so a
    > user can click the link from Google and the content
    appears outside its
    > parent
    > page. Is there a way to force the parent page to load in
    such cases, or do
    > I
    > need to disallow indexing of the source pages to prevent
    this issue from
    > happening?
    >

  • Iframe content causing ribbon controls to fail.

    I have an iframe in one of my application pages and whenever I load that page, all the ribbon controls i.e. the Site Actions menu and the User menu dont work. I mean when I click on them nothing happens. After a while I realized they were hidden behind the
    iframe. I tried using the Jquery bgiframe plugin on the ribbon container but that didn't work either. This is what my application page looks like:
    <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
    <%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
    <%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
    <%@ Import Namespace="Microsoft.SharePoint" %>
    <%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="UserModule.Layouts.UserModule.Home"
    DynamicMasterPageFile="~masterurl/default.master" %>
    <asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    </asp:Content>
    <asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <iframe id="HomePageFrame" src="http://raihaniqbal:8123/Test.aspx" frameborder="0"
    style="width: 100%; height: 748px;" scrolling="no" />
    </asp:Content>
    <asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    Home
    </asp:Content>
    <asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea"
    runat="server">
    Home
    </asp:Content>
    But how come when we add a Page Viewer web part to a Site Page which basically is an iframe this problem doesn't happen!
    Pre-Sales Consultant (Microsoft Business Intelligence Solutions)
    Tech One Global

    Hi,
    This occurs because when you add this to a page viewer web part then the page viewer web part is the same as an HTML FORM tag.
    style="width: 100%; height: 748px;
    I suspect your problem is occuring thanks to the height tag, can you switch that to be 100px. If this works then you would need to find a new height for the iFrame, 100% for example will fill the asp:Content tag.
    For more control add it inside a div tag, set it to 100% for height and width and just change the div tag.
    Regards
    Pieter

  • Safari will not display iframe content

    I have a webpage that uses an iframe that I create.  Internet Explorer, Chrome, Opera, and Firefox all display the iframe correctly.  On Safari, it is blank.  The frame is there but nothing is in it.  I can see from Wireshark that the content of the iframe is received but it is not displayed.  This occurs on both Mac & Windows..
    For example, if I use "“<html><body>CHECK THIS OUT</body></html>” for my iframe code, "CHECK THIS OUT" is displayed in Internet Explorer, Chrome, Opera, and Firefox but on Safari it is blank.
    Does something special need to be done on Safari to create an iframe that will be displayed that is not needed on other browsers?

    You may find some improved online performance with Panther 10.3.9 with
    the last supported Flash and Shockwave players installed (older ones have
    to be uninstalled) and though the use of Camino browser since it is up-to-date.
    There still will be some limitations; but if you have the correct Flash/Shockwave
    players for Panther installed and get Camino, and use it as a default replacement
    for that ancient Safari, that would make a difference. Also, it always makes sense
    to get more RAM in an older computer since they usually shipped with very little.
    In the case of older computers, often the capacity of the hard disk drive was also
    a matter of marginalization. A large enough drive to have plenty of free space in
    it, after applications and the OS X is installed, so the system can have room for
    temporary files and Virtual Memory, then it can run the last supported OS X ok.
    An externally enclosed bootable hard drive (FireWire enclosed unit) could be
    used to add space or a second system for use when at a desktop, so for the
    sake of discussion, the internal drive would not necessarily need replaced to
    check out a different operating system that may need more room in a drive.
    RAM is an easy fix; and a new browser from Camino.org - plus those players.
    Good luck & happy computing!

Maybe you are looking for