How to access loaded content of HTMLLoader

I have a HTMLLoader and after the content is loaded, I'd like
to access the loaded content. There should be an easy way but I
could not find it ...
And what if the loaded content is PDF?

Suppose you have:
var htmlLoader:HTMLLoader = new HTMLLoader();
//Add to display list, load content, etc...
Then you can access the window object of the loaded page
thusly:
htmlLoader.window
If the HTMLLoader loads a PDF file directly, I suspect that
under the covers AIR embeds it in an HTML page. So you could still
access htmlLoader.window and then find the PDF object in the page.
(I haven't tried this myself, though.)

Similar Messages

  • Web Dynpro ABAP: How to access the content of a mime object?

    Hi everyone,
    does anybody know how to access the content of a mime object of a Web Dynpro component? I added a XML file as mime object to a web dynpro component. Now I want to read the content of this xml file within a method of the component controller. The code would look something like:
    DATA: xml_content type xstring.
    xml_content = read_mime_object("test_123.xml").
    Any ideas?
    Regards,
    Nils

    dude here's the modification that i've done but I can't still access the content of the properties...
               Mail mail = new Mail();
               String message2 = sqlException.getMessage();
               File file = new File("Add.properties");
               Properties props = new Properties();
               props.load(new FileInputStream(file));
               String[] emailadd = {props.getProperty("emailadd","defaultValue")};
               mail.postMail(emailadd,"An error has occurred, Auto-archive was unsuccessful.", message2,"[email protected]");
               Message was edited by:
    ryshi1264

  • As a new MacBook user I plug in my USB Flash Drive but don't know how to access its contents. Please help. Thanks.

    as a new MacBook user, when inserting my USB Flash Drive, I do not know how to access its contents. Please help. Thanks.

    Open a new Finder window, Finder > File > New Finder Window, and it should appear on the left under Devices.
    If you don't see it there, or to get it to show up on the Desktop: Finder > Preferences... General tab, check External disks to have it show on the Desktop,  Or Sidebar tab, check External disks under DEVICES.

  • How to access the content in the configuration files

    Hi, Folks,
    To make it easy, the questions can be like this:
    how to access the content in web.xml in a web application?
    Through ServletConfig and context?
    how to access the content in ejb-jar.xml in an ejb?
    initial context?
    Thanks

    There is no documented way to delete data stored in archived log files: you can only remove the archived log files if needed.

  • UCM 11g - how to accessing secured content using open WCM service

    Hi All,
    Does any one has an idea on how to access the contents that are checked in with security groups as "Secured". If the contents are checked in as "Public" then, we can easily access the same with the following open WCM servervice:l
    http://<ucm_server>:16200/cs/idcplg??IdcService=WCM_PLACEHOLDER&dataFileDocName=<data_file_name>&templateDocName=<region_template_name>
    Regards,
    Sanjay

    Hi Donato,
    Did you ever get an answer for this issue? I'm trying to get a similar case working and would be curious on how you ended up doing this...
    For what I know so far, this may help you:
    1) The trigger-EBSProfile requires you to pass th afGuid value, this value, is created automatically by the IPM process, basically, when you click the MA button in EBS, the SOA call to IPM does 2 things:
    First, it creates a row in the AFGRANTS table in the WCContent DB, this basically overwrites UCM security and give the user access to the documents, this table has the information of the EBS record (Business Object, and Primary Key) as well as the auto generated afGuid
    Second it sends back the URL to WCContent, mainly "/cs/idcplg/_p/min/af/trigger-EBSProfile?IdcService=GET_SEARCH_RESULTS_FORCELOGIN" and passes the afGuid created in the first step, which identifies the EBS record.
    So if you need to make direct calls to UCM under the trigger-EBSProfile you will need to manually (custom) add the afGuid and details of the EBS record to the table, the entries in this table get removed automatically based on the dexpirationdate value
    2) While the IPM SOA call overwrites the UCM security, if you have implemented your own security structure (assign a different security group to the documents and give the users access to it) you could make calls directly to UCM bypassing the "trigger-EBSProfile"..
    for example, in the call you were trying to make originally to DOC_INFO, if you know the dDocName of the document, you can simply call the service as "/cs/idcplg?IdcService=DOC_INFO_BY_NAME&dDocName=POC2001" (I use DOC_INFO_BY_NAME because you need to know the dDocId for DOC_INFO)
    You can do the same with other services like checkin/checkout etc, (for checking you will need to pass the additional parameters dfBusinessObejct, dAFBusinessObject and dfApplication to link the document to the EBS record)
    Regards,
    Juan Becerra

  • How do i load content from an existing ipod to a new computer and installation of itunes?

    how do i load content from an existing ipod to a new computer and installation of itunes?

    Recover media from iPod
    See this post from forum regular Zevoneer for options on moving your iPod data back to your computer.
    tt2

  • How to access cached content?

    Today my Safari browser crashed. When I had it "reopen all windows from last session," the windows from a database I had been searching wouldn't go to the articles I'd had open because the addresses only seem to work if you're navigating there from the search. (And I did so many different searches, many of which I don't remember exactly, that I can't just replicate it that way.)
    However, in each address I have there is a record number I can't use it to re-search the database, but I can use it to search Spotlight. It gives me the page, but, again, opening it like normal won't do any good. But if Spotlight can search all the text that has been open in my Safari browsing, I'm guessing there's some way I can access the content of those pages without opening them in Safari.
    Does that make sense? I'm basically asking how to find and read the content of webpages I've accessed.
    Thank you for any help you can offer. (By the way, I see that in the new beta version I could flip through and read all the pages that are in my history. I guess I should have upgraded to that yesterday!)

    I should note that when I search for words I remember from those webpages, the links to those pages show up. This confirms my suspicion that the content is stored somewhere on my computer. Unfortunately, when I click on the returns from these searches, it just opens up the link to the page (which, again, doesn't ultimately work) rather than the stored data from when I opened it earlier. So I'm looking for the place where those words are stored...
    Any thoughts now?

  • How to access Infocube content using an ABAP program

    Hi,
       I am trying to access infocube contents using a ABAP program in BW.
       It is easy to access ODS content as we have NEW DATA or ACTIVE DATA
       tables. Is there any way we can access Infocube content.
       I tried using the FACT table but it has only Keyfigure data.
    thanks
    arshad.

    Hi,
    I would suggest to use a transactionnal cube, even if you do not use BPS to feed it.
    Then, you create a layout in transaction BPS0 (~ similar to a query), and you can access the cube content by simply using the SAP function <b>API_SEMBPS_GETDATA</b>.
    This is easy and fast.
    Regards,

  • How to access group content, or anything inside?

    Let's say I have this group:
    var myGroup = Group{
         var someNumber:Number;
            var stf = SwingTextField{
                 columns: 10,
                  text: "TextField",
                 editable: true
         content:[
              Text{
                   x: 100;
                   y: 100;
                   content: someNumber;
                   fill: Color.BLACK
                    stf
    }And let's say sometime when the program is running, the user changes the value of the SwingTextField. How do I access that? Like, I insert a rectangle inside the scene in the stage, and when the user moves the mouse it prints the content of the SwingTextField? And how do I access the variable "someNumber" as well? I tried things like println(myGroup.someNumber) or even println(myGroup) but nothing. Eclipse says it can't find "someNumber".
    Thanks. JavaFX is a lot trickier than what it made me thought at first. It doesn't help that the tutorials I've read taught some bad habits.
    _EDIT:_
    I figured out myGroup.content[], but it doesn't let me access the attributes of the node, like when I use
    myGroup.content[1].textIt can't find "text" even though it's already pointing to the SwingTextField (verified when I printed myGroup.content[1]), but the JavaFX documentation says it should have a text attribute.

    If you look at the javafx doc for Group you will see that content is declated as a Node[] (a sequence of Node instances) which means each node included within will show up as a Node. It is up to you to cast it to its real type afterwards.
    Alternatively, instead of direct access by index, you could set a unique id to each nodes and seach the content for a particular id. You will still need to cast afterward.

  • How to access request content using MultipartMessage Object

    I want to take a file from the Client and upload it as a FileInputStream on the server.
    I have a simple form as follows:
    <form action="scan" name="scan_files" method="post"
    enctype="multipart/form-data">
    <input type="file" name="file1">
    <input type="file" name"file2"/>
    <input type="Submit" name="insert_scaned" value="Upload"/>
    </form>
    In my servlet I tried to use the com.sap.engine.services.servlets_jsp.lib.multipart.MultipartMessage
    class to parse the form information.
    protected void doPost(
    HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
    MultipartMessage multipartMsg =
    (MultipartMessage)request.getAttribute("com.sap.servlet.multipart.body");     
    if (multipartMsg != null) {
         multipartMsg.addFormParametersToRequest();
    The help said that once this is done the form information should be accessible via the
    request getParameter() method. However, I can't seem to get it working?
    How can I access the file so that I can parse it into a FileInputStream?
    Thanks.

    Hi Mat,
    first, welcome on SDN!
    About your question:
    From the APIDoc - https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/javadocs/nw04/sp12/j2ee%20engine/com/sap/engine/services/servlets_jsp/lib/multipart/multipartmessage.html - I would expect this as a solution:
    MultipartMessage multipartMsg = (MultipartMessage)request.getAttribute(MultipartMessage.MULTIPART_BODY_KEY);
    if (multipartMsg != null) {
      for (int i = 0; i < multipartMsg.getCount(); i++) {
        MultiPart mp = multipartMsg.getBodyPart(i);
        // mp.getInputStream, mp.getBody() or whatever you need
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

  • How do i load content onto Apple TV without keeping it in itunes

    My MacBook is full and i have a large collection of movies and tv shows on firelight harddrives and Apple Time Capsule. I would like to load the movies onto my Apple TV without having to store them in my itunes. Someone please tell me if this is possible or not. Thank you for helping.

    Click here for options.
    (39764)

  • How to access contents of textframe

    Hi all
    I've a textframe which contains the group of images pasted using 'paste into' command, any idea how to access the contents using script, i've tried
    var inlineFrame = myDocument.stories.everyItem().textFrames.everyItem().getElements();
    unfortunately this doesnt work for this case as the images or textframes are pasted using pasteInto command.
    any suggestions ?

    Try this:
    #target InDesign
    var _allRectangles = app.activeDocument.rectangles.everyItem().getElements();
    for (i=0; i<_allRectangles.length;i++) {   
         if (_allRectangles[i].groups.length > 0) {       
               var _imgArray = _allRectangles[i].groups[0].rectangles.everyItem().images.everyItem().getElements();
               alert("Rectangle " + i + " contains a group with " + _imgArray.length + " images.");
    Roland

  • Accessing KM Content by Code

    Hey...
    The standard iView for KM navigation does not satisfy me in UI manner so I try to create a new UI.
    I'm trying to code a new GUI with my own design with JSP and HTML coding, to explore KM content in SAP Portal.
    But I don't know how to access KM content, so I can create just linkages to these content with my GUI.
    Can you tell me which JAR's I have to use for just access to KM Content and can you give some sample codes ?
    Thanks for your responses.

    Hi,
    To access KM content you have to use the repository framework provided by SAP.
    Particularly you can use IRepositoryManager interface and Iresource etc.
    See the details from [here|https://help.sap.com/javadocs/NW04S/current/km/index.html]
    You can also have some guidance about making on GUI from [here|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1424]
    I hope it helps.
    Regards,
    Sumit

  • Load Content into a javascript Variable

    Hello guys. I very new to spry and I need some help.
    How can I load content (text) from a html page(actually I
    want to get a result from a dynamic php script) into a javascript
    variable?
    I saw the fragments example in wich spry loads some html
    fragment into a div, etc... but I need the result text to be stored
    in a variable so I can test the result before update the div.
    Thanks in advance...

    I think this function updateContent shoud have a parameter to
    tell if we want the content to be loaded inside a container or a
    variable. It would be very helpful to integrate php/mysql
    validation scripts to forms. I wanted to test if a username was
    already in the database when the user choose the username in the
    form, so I made a custom function and aplied it to the textbox
    validation widget. Its working great, but it would be better if I
    didnt have to create invisible divs to receive the response from
    the php script I made.
    Thanks anyway. Spry is a great product.

  • I can find no CD slot. How do I load games or music CDs?

    Just bought a new MacBook Prow/retina display and in working with it this morning noticed that it had no slots for games or music CDs. How do I load content that I have on hand? Am I to believe that I can't load some of my favorite stuff on a brand new laptop computer? Please. Someone tell me I'm just overlooking it.

    No more optical drives, it's a exernal option now.
    A lot of software based on cd's is for PowerPC processors that the new Mac will not run anyway.
    You want software, you go to MacUpdate.com and download it, then a lot of it you will have to right or conrol key click on it to "Open" as Apple is trying to restrict outside sources of software.
    https://www.macupdate.com/
    You can install some software at AppStore (Apple menu) but a lot of it is hobbled due to Apple's restrictions, no trialware etc., etc.
    Better to download direct from the developer, but some are now only on AppStore and charging for their software and later you find out you don't like it.
    https://developer.apple.com/appstore/guidelines.html
    How to uninstall/install software on your Mac

Maybe you are looking for