HTMLLoader - Embed local .html in remote .html using iframe.sandboxRoot and iframe.documentRoot ?

Hi! This already took me hours of research and testing but I might misunderstand this part of the Adobe AIR documentation:
http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7f08. html#WS5b3ccc516d4fbf351e63e3d118666ade46-7f07
The problem:
Huge fancy HTML5 elearning project with loads of assets but users with superslow (GPRS like) internet connection.
Solution (idea):
Provide USB-sticks with most of the static course data (all SCOs) and somehow redirect server requests to this files.
More concrete concept:
1. On this USB stick we also provide a Adobe AIR "wrapper" app with captive runtime (since users are no admins) which starts a StageWebView or HTMLLoader instance to access the online server. No problem.
2. This HTML wrapper also submits the local path to our data directory on the USB stick. Should also work fine.
3. The server then writes different <iframes> for this specific wrapper app and within the Adobe AIR WebKit runtime all requests from (example) http://mydomain.com/data/ would be redirected file:///path/on/usbstick/to/data/ .
Well, I thought this <iframe> would do the trick:
<iframe
     src="http://mydomain.com/data/content1.html"
     sandboxRoot="file:///path/on/usbstick/to/data/"
     documentRoot="file:///path/on/usbstick/to/data/"
     >
</iframe>
But unfortunately it doesn't. Of course I tried already almost all possible settings for src, sandboxRoot and documentRoot but it still didn't work:
var innerHTML = "";
var possibleSrc = ["content1.html", "http://mydomain.com/data/content1.html", "file:///path/on/usbstick/to/data/content1.html" ];
var possibleSandboxRoot = [ "http://mydomain.com/data/", "file:///path/on/usbstick/to/data/", "app:/data/" ];
var possibleDocumentRoot = [ "http://mydomain.com/data/", "file:///path/on/usbstick/to/data/", "app:/data/"];
for ( var i = 0; i < possibleSrc.length; i++ ) {
     for ( var ii = 0; ii < possibleSandboxRoot.length; ii++ ) {
          for ( var iii = 0; iii < possibleDocumentRoot.length; iii++ ) {
               var src = possibleSrc[ i ];
               var sandboxRoot = possibleSandboxRoot[ ii ];
               var documentRoot = possibleDocumentRoot[ iii ];
               innerHTML += '<iframe class="content" src="' + src + '" sandboxRoot="' + sandboxRoot + '" documentRoot="' + documentRoot + '" allowcrossDomainxhr="true"></iframe>';
So now my questions:
Is it possible?
Can I create with AIR an HTML wrapper which provides access to the files on the USB stick?
Is there some other technique out there which can do what I need?
I would really love to get at least some hints...

Just to give you a hint if you're researching this topic: Seems like only Firefox portable has the ability to rewrite security rules. So you might look in this direction.

Similar Messages

  • Local HTML using Content Image

    I have an HTML string which, in my webview I am using NavigateToString to show.  I have several images in my project which are marked as content and copy local.  I was wondering how I can link to those images?  In my xaml they show up in the
    Image object.
    Any help would be great!,
    Thanks!

    Hi cwang733t,
    Yes, it should like this, however I did not see your other codes, I don't know how you convert the image to base64 string, I found some sample online:
    https://code.msdn.microsoft.com/windowsapps/Loading-Image-into-WebView-a3f68921
    Take a look to see if this helps :)
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Cannot insert data from local database into remote database using subquery

    I have two oracle databases on different host.
    One is version 8i in Host A and the other is 9i in Host B.
    First, I try to create a dblink in 8i to 9i, but it fail.
    Then, I create a dblink in 9i to 8i, it success.
    I have already tried some select statement in 9i to view the table in 8i, which is success and that means the dblink is really work.
    The sql statement is like
    Select * from table1@hostA
    Then I have tried running some INSERT statement in 9i, which is copy data from table 1 in 8i to table 2 in 8i, both tables are in 8i. The sql statement is like
    Insert INTO table2@hostA(field1, field2)
    select field1, field2
    from table1@hostA
    This also success.
    Also, I have tried to use the following INSERT statement
    Insert INTO table2@hostA(field1, field2) values ('XXX', 'XXX)
    This also success.
    However, when I try to insert data from table in 9i to table in 8i using the following INSERT statement, it failed.
    Insert INTO table2@hostA(field1, field2)
    select field1, field2
    from table1
    The statement can execute, but all the rows inserted with every field value equal to NULL. I have tried to run the select part, it can return the data. But when I run the INSERT statement above, the value inserted into table2 is all equal to NULL.
    One more thing, I discover that the databases are using different NLS_CHARACTERSET
    9i is AL32UTF8
    8i is WE8ISO8859P1
    Is this relevant to my problem?
    Does anyone know the solution about this problem?
    Thanks!!

    How is the best way to do this ?How much are you planning to send?
    You can use COPY command. Ensure that you have valid database link between two databases.
    Available options are:
    create - creates a new table. errors out if the destination table exists.
    replace - drop the destination table and re-creates with data.
    insert - inserts data if the destination table exists.
    append– appends data into an existing table.
    use set arraysize 5000 -The arraysize specifies the number of rows that SQL*Plus will retrieve from the database at one time.
    copy from scott/tiger@ORCL to scott/tiger@ORCL92 create new_emp using select * from emp;

  • Simple remote connection using Cisco AnyConnect and ISR router

    Hi all,
    I am just wondering what the easiest and simplest method would be to make remote PCs (running Cisco AnyConnect) establish a VPN IPsec to a Cisco ISR (881/887, 1900s,2900s series). I used to use EasyVPN method (simple and fast to configure and no need for special licences other than crypto licence) but since Cisco VPN Client is no longer supported I had to resort to WebVPN which requires a licence depending on the number of clients to support (SSL licences for 10,20 users and so forth). I've read a bit about FlexVPN but I can't find an easy example to what I want to do. The closest is this one (FlexVPN and Anyconnect IKEv2 Client Configuration Example):
    http://www.cisco.com/c/en/us/support/docs/security/flexvpn/115941-flexvpn-ikev2-config-00.html
    But that example makes use of RADIUS. Is there a way to make use of local database (users configured on the router) instead of RADIUS?
    Basically what I am after is the following
    - Remote users install Cisco AnyConnect to establish a VPN connection to HQ
    - HQ ISR (880s, 1900s, 2900s) terminates that VPN connections and allows access to local resources (shared drives, applications...).Authentication method would be local database on the router. No need of RADIUS/ACS as this is for very small companies with no IT resources to maintain and configure a RADIUS/ACS server.
    I think what I need is this AnyConnect to IOS Headend Over IPsec with IKEv2 and Certificates Configuration Example:
    http://www.cisco.com/c/en/us/support/docs/security/flexvpn/115014-flexvpn-guide-cert-00.html
    But the example is too highlevel for me to follow, basically I don't know how to generate such certificates and distribute it to remote clients.
    Any help as to how to create such certificates or how to configure FlexVPN to just requiring the user to enter usr/pass (using local database not RADIUS nor ACS) would be highly appreciated.
    Cheers
    Alvaro

    If you insist .. try this:
    http://www.cisco.com/c/en/us/support/docs/security/flexvpn/116032-flexvpn-aaa-config-example-00.html
    http://www.cisco.com/c/en/us/support/docs/security/flexvpn/115907-config-flexvpn-wcca-00.html
    http://www.cisco.com/c/en/us/support/docs/security-vpn/ipsec-negotiation-ike-protocols/50282-ios-ca-ios.html

  • No disconnect warning when multiple remote users use same username and password to logon to VM

    I created a single user account to be used by multiple users to access a system consisting of multiple VMs. The problem is that when User #1 has an active session and User #2 attempts to log onto the same VM User #1's session is ended without
    warning. Now if User #1 has an active session and User #2 attempts to log onto the same VM using different credentials a [Remote Desktop Connection] dialog displays alerting User #1 that User #2 wants to connect and gives an option to disconnect or stay connected.
    Realizing that the latter preferred behavior is because the two Users are using different credentials I would like to know if the same preferred behavior of alerting the Users of active connections can be enabled for instances when both Users are using
    the same credentials - perhaps by recognizing that their remote ips are different or something.

    not sure if this fits your case exactly. there was another similar question asked in the forum and the solution was:
    You may set this via group policy, for example, in the server's local policy using gpedit.msc:
    Computer Configuration\ Administrative Templates\ Windows Components\ Remote Desktop Services\ Remote Desktop Session Host\ Connections\
    Restrict Remote Desktop Services users to a single Remote Desktop Services session     Disabled
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/a26af954-c2ef-4beb-b892-9e7717518850/allowing-users-to-open-multiple-remote-sessions-on-windows-server-2012-rds?forum=winserverTS

  • Itunes remote speaker using Airport Express and Extreme

    I have purchased an Airport Extreme and Airport Express, so I can listen Itunes music on my stereo system. For some reason, there is simply no remote speaker selection button on the bottom right of the Itunes windows. Does it has to do with the fact that I am using an old Mac OS X?
    My Macmini has no airport card, so I connected the ethernet to the Airport extreme, and plugged the Airport express few feet from the base. Nothing but an orange tilting light comes out of the little box. I can surf the net perfectly but the Itunes is ignoring all my investment on the couple of Airport boxes i purchase...What I am doing wrong?

    Yes, I thought that purchasing the Airport extreme as
    the ethernet interfase directly connected to the
    MacMini, was almost the same as having the airport
    card inside the Mini. Where did I get lost?? I have
    the extreme directly to the mini, and an express
    plugged somewhere close and nothing happens...
    The problem is that the mini can only stream iTunes to an Airport Express via Airport. While you have connected it to an Airport basestation, as far as the mini is concerned, it is working via ethernet because that's how the data is leaving the system. It doesn't have an Airport card, thus it can't stream iTunes content to an Airport Express.

  • TS1741 Remote app used to connect and work

    I've tried everything listed but it still does not connect.  Any ideas?

    Itunes recognizes the device when setting up home share, but once I enter the 4 digit code, it does not connect.  Everything is current.  I've tried ever trick listed here.
    http://support.apple.com/kb/TS1741?viewlocale=en_US&locale=en_US

  • HTMLLoader - local HTML file with remote access

    Hi,
    I use the HTMLLoader to load a local HTML file. (AIR
    development with Flash)
    In this local HTML file is a remote JavaScript, which I need.
    It doesn't work, because of the sandbox.
    But is it possible to deactivate the sandbox or anything
    else, that I can use the local HTML file with remote access?

    Hi,
    I use the HTMLLoader to load a local HTML file. (AIR
    development with Flash)
    In this local HTML file is a remote JavaScript, which I need.
    It doesn't work, because of the sandbox.
    But is it possible to deactivate the sandbox or anything
    else, that I can use the local HTML file with remote access?

  • Using local HTML results in content generation error

    I'm trying to place local html that only deals with a column of text and an image in a box and make it scroll. When I place the html file with the Web Content Overlay directly in a frame and Preview on the Desktop Viewer, the frame scrolls perfectly, but won't import into the folio with the Folio Builder. "Content generation error, the folder is invalid for import." I also tried placing the html file in a frame as above, apply Web Content Overlay, and then Pasting Into a Content frame and then using the Scrolling frame Overlay. Works fine on the Desktop Viewer, but Builder won't import the article, same error as above. I could really use help with this! I can't find any instructions other than for YouTube embeds or full page html.

    Yes, but one of my clients uses HTML for many things, loves js and wants to provide content that way. I thought you could use any interactive overlay in a scrolling box. I'm also trying to embed a Google map in a scrolling box and not having much luck with that either!
    Sent from my iPad

  • Embed  html file without using IFrame UI

    Is there any way to embed html file without using IFrame UI?

    Hi
    To embed a static HTML content inside your view, Iframe is the easiest form or else, you can provide links through Linktourl UI or through a static text or a button, invoke a action and display the HTML content inside the frame or call it in a seperate (external) window.
    Otherwise, we have only less options!
    if you have anything specific, do let us know
    thanks
    sathya

  • Link button to local html page using AS3

    I am using AS3 and having trouble linking a button to a local html page

    Okay, I tried both of the codes and it is still now working.
    navigateToURL(new URLRequest("file:///fishcom/Home.html"));
    I get a Windows dialog box that states that the path can not be found.
    navigateToURL(new URLRequest("./fishcom/Home.html"));
    This goes to http://./fishcom/Home.html  but not my page.
    The Flash file and the HTML page are in the fishcom folder on my desktop. Very frustrating because this was so easy in AS2. 

  • How to display local HTML file in web-view?

    Hello everyone,
    we have no problem with showing of remote HTML content from server in box on page in web view. But how we can show such a content when included in HTMLResources? In guide is just "Display a local HTML file in an in-app browser", which works wihout problem, but we don't want to show this HTML content in in-app viewer, it should be part of page.
    Thanks
    Martin

    Now i'm confused. In guide is this:
    To use local HTML files, click the folder icon and specify the local HTML file. The HTML file (such as index.html) should appear in a folder that includes any images or scripts used in the HTML file.
    But no info where such a local HTML file should reside. If this file is in HTMLResources, it is ignored.

  • Parse local HTML files

    Hi,
    I want to parse local HTML files.
    Is there another way than using the Internet Explorer($ie = new-object -com "InternetExplorer.Application";) (without relaying on external packages)?
    At the moment I do something like that:
    $ie = new-object -com "InternetExplorer.Application";
    Start-Sleep -Seconds 1
    $ie.Navigate($srcFile)
    Start-Sleep -Seconds 1
    $ParsedHtml = $ie.Document
    foreach($child in $ParsedHtml.body.getElementsByTagName('table'))
    I still want to have the methods like 'getElementById()' or 'getElementByTagName()'.
    With my current approache, the performance is not realy good and it seems that the iexplorer.exe process is not terminating at the end of the script. 
    Also it seems to have sideeffects with running internet explorer instances (from GUI) - not working to start IE in powershell sometimes.
    Last time I also have a hanging script, not continuing till i manually terminate the iexplorer.exe process.
    The error was:
    Exception calling "Navigate" with "1" argument(s): "The remote procedure call f
    ailed. (Exception from HRESULT: 0x800706BE)"
    At D:\Scripts\Run.ps1:529 char:14
    + $ie.Navigate <<<< ($src)
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ComMethodTargetInvocation
    so I would prefere a method parsing HTML without IE.

    Hi John Mano,
    Please also try to Parse local HTML files with
    System.Xml.Linq, the script may be helpful for you:
    Using PowerShell to parse local HTML files  
    I hope this helps.                               
    XML?
    I thought HTML is not compatible with xml. 
    And as I don't know LINQ good ... 
    Ok, I'll give it a try. later.
    I can't answer the question about other ways to parse HTML, but to close your IE session you should do the following:
    $ie.Quit() # this terminates the IE process
    $ie = $null # this frees the COM object memory
    Thanks for that.
    I now use that, but seems to be still some IEs open ...
    Maybe a path missing where i dont do it.
    But finally I still get this error. And it is blocking the whole script ...
    Exception calling "Navigate" with "1" argument(s): "The remote procedure call f
    ailed. (Exception from HRESULT: 0x800706BE)"
    At E:\DailyBuild\Scripts\PublishTestResults.ps1:533 char:15
    + $ie.Navigate <<<< ($srcFile)
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ComMethodTargetInvocation

  • Open local html document in flash

    I've been using the getURL command to open documents on a
    remote server. I need to be able to open a local document on a
    local intranet. Is the a command to open a local html file on a
    local or networked drive?

    Yes, you can open an HTML file in an in-app browser by adding the HTML file to the HTMLResources.zip. Create a button with a Go To URL action that looks something like this:
    HTMLResources/HTML_Local/index.html
    Make sure that you create your HTMLResources.zip file properly and upload it to the folder. You can test this in the Adobe Content Viewer on either the iPad or the Desktop as long as you preview the folio (not the article or layout).
    Basically, you use the same technique to link to the HTML file that you use to link to PDF files. For details, see the DPS Tips app > Advanced Overlays > Linking to PDF Files.

  • Unable to view local HTML content from "Help Content Only" SSL  iFrame

    Hi
    Can anyone confirm whether it is possible to view local HTML files within an iFrame when generating Help Content Only SSL content which is also locally deployed?
    I have had no problem viewing local html files from within an iFrame with a locally viewed Browser-Based Help project but despite trying a number of variations on the syntax, I simply cannot obtain the same result from a Help Content Only SSL that is then incorporated within a merged help system. I can however create hyperlinks to view local content using the following syntax (file:/C:\folderName\fileName.html - the only drawback for local preview is that you must right-click and select "open in new tab"). Essentially, I am trying to eliminate the requirement to have to right-click and open in new tab to view local html files.
    The project I am working on is deployed both locally and remotely and this whole process is necessary for emergency management and business continuity purposes.
    I hope my explanation isn't too convoluted and would be glad to clarify it further if required. I would appreciate any assistance!

    Hi John
    I appreciate you and Peter obtaining this  information from Adobe and I appreciate your continuing patience in  trying to understand what I am doing.
    I will start  from the beginning and hopefully clarify my process when deploying my  application locally (my remote process differs somewhat but is not  germane to this discussion). Obviously this will contain some repetition from previous posts but I hope it helps...
    The project itself integrates content created from Adobe RoboHelp with content created within Adobe Dreamweaver
    First, I should mention that I am using RoboHelp 8 as I don't believe I have addressed which version I am using. There's nothing particularly unusual about the project itself.
    Utilizing Dreamweaver I have created a self-contained HTML-only (no server-side functionality) website which is placed at the root level of the C: drive
    Within the RoboHelp project I create a hyperlink to access the local HTML files from the RoboHelp topic pages. The process I use to do so is from within the HTML view of the specific topic page and I use the following file path: "file:/C:\folderName\fileName.html". The only end-user requirement is that they must right-click and select "open in new tab", otherwise the link does not work. Please note, this is ONLY required for accessing the local HTML files.
    I output my RoboHelp project using the Adobe Air SSL, with the output type set to "Help Only Content" which creates the .rha files. I utilize multiple .rha files within my project as each .rha file constitutes a module specific to an individual municipality (in my particular instance)
    I use the Help Viewer Wizard from the RoboHelp "Toolbox" pod to create what I refer to as the "shell" .air file. Once the "shell" .air file created from the Help Viewer Wizard is  installed, it creates a shortcut on my desktop.
    I place an XML .helpcfg file within the directory on C:Program Files where my "shell" .air file has been installed to reference each .rha module which must be placed at the root level of the C: drive in order to be properly referenced by the .helpcfg file
    By double-clicking on the desktop shortcut created in Step 6 it opens the "shell" module which, in turn, loads in each individual .rha file which can be accessed individually from the drop-down menu in the top-right corner
    Why do I do it this way?? My organization severely restricts admin privileges on our workstations. We have one IT person / several hundred officers so I needed to create a system where the only time we need IT assistance is in the initial installation of the "shell" .air file created from the Help Viewer Wizard and placement of the .helpcfg file within the C: Programs folder. Once this is done, because the .rha files are on the C: drive, I can swap these out and update as necessary (we currently have an annual renewal cycle) and we require no further IT intervention. The local system I have just described has hyperlinks to the online browser-based help so that users can also access it and see any content updates made throughout the course of the school year
    Having said all that, based on the model I have just described, I have been trying to create iFrames from within my RoboHelp 8 topic pages (placed on my C: drive) to access the local HTML Dreamweaver site (also on my C: drive). The problem I have been having is that the resultant iFrames display only a blank white page and I have tried a number of variations on the syntax of the file path without success.
    The process I have been using to create the iFrame is as follows:
    In Design view, select Insert >> HTML >> iFrame
    In the iFrame dialog box, provide a name for the iFrame and then navigate to the local file on my C: drive level Dreamweaver HTML-only website that I want to link to.
    Click "Apply" and from the resulting dialog box states that "This action will create an external link to the help system... Do you want to continue?", I click "Yes"
    The resultant file path is "../../../../../folderName/fileName.html" which obviously won't work but I have created the iFrame and now I switch over to HTML view and insert the file path that I have been using for the hyperlinks ("file:/C:\folderName\fileName.html"). I also modify the width to 100% and the height to 1000 px
    The user is not being directed to a different domain. So, if as Adobe states, that iFrames are "supported in local AIR Help (.rha) as well" then I don't know why it will not work for me. Again, this is the file path that allows me to create a hyperlink which will access my local Dreamweaver HTML files: "file:/C:\folderName\fileName.html" so if that syntax works for a hyperlink, why will it not work for the iFrame?
    The videos I referenced are also contained within the local Dreamweaver HTML site
    My usage of the term "merged help" may have been unclear and hopefully steps 1-8 outline what I am doing
    Again, I am very grateful to all who have joined this discussion to try to help me! I think it should be manifestly evident by now that I am self-taught and basically that's the only excuse I can offer in my defense for my poor articulation. Not too many years ago I wanted nothing whatsoever to do with computers!

Maybe you are looking for

  • Error: adobe acrobat elements has encountered a problem and needs to close

    When I right-click to Convert to PDF or Convert to PDF and EMail for .xls, .xlsx, .doc, .docx, .pptx, .ppt, .pub, and .igx items (what I've tried so far), I get the following error: "Adobe acrobat elements has encountered a problem and needs to close

  • Missing Some Select input options the Query

    Hello all, Normally when i excute a query, it will ask for date range and year, fiscal period etc input options which i have to input to execute a given query. But  for one of the BWuser(sales guy) iam unable to see the fields, can anyone guess what

  • Add photos to a specific Collection from Survey view?

    When I'm doing my edit from a shoot, I often use the Survey view to look at groups of images. Also, I use collections as a way to store selections into future use categories like Contests 2010, Portfolio, etc. In Survey, it seems only possible to add

  • Is it Possible to manage BP Master Data in all Currencies?

    Hi, I want to know that,  how to manage BP Master Data in All Currencies like  ( Dollar, Euro, INR ) Our Marketing  Document shows all these Currencies when we punch it . Plz reply me soon ................................................? Thanks, Jyo

  • Images don't show or load.

    I have had this happen a couple times and seemed to work its self out  But not this time.  What I have done so far is, 1. ran update to 2.3, 2. renamed the preferences . agprefs. files.   Per instruction from Adobe support.    No change in issue.  So