How to link javascript files in myApp.app directory in IOS from html file in app StorageDirectory

I'm using Adobe Air 3 for IOS offline app, and I want to implement a download updates (html files + js,css) feature from within the application. The files would be displayed in a StageWebView component.
Since Apple doesn't allow saving files inside the installation directory, I must use ApplicationStorageDirectory instead to download files into.
I want those download html files to link to .js / .css files already installed within the main application directory (e.g. at myApp.app).
The reason for that is I want to minimize the number of the downloaded (shared) files as much as possible. Is this possible?
Thank you.

I think this doesn't work in StageWebView:
http://help.adobe.com/en_US/air/build/WSfffb011ac560372f7e64a7f12cd2dd1867-8000.html#WS901 d38e593cd1bac354f4f7b12e260e3e67-8000
"Note: Links in a StageWebView instance cannot open URLs that use a custom URI scheme."
So I can't for example do this:
<link rel="stylesheet" href="app:/CSS/Templates.css" type="text/css" media="screen, mobile" title="main" charset="utf-8">
What I need is something like the following:
Inside ApplicationStoarageDirectory (/Library/Application Support/):
     test.html
I need it to link to a css file located inside ApplicationDirectory (installation directory), something like:
     <link rel="stylesheet" href="../../MyApp.app/CSS/Templates.css" type="text/css" media="screen, mobile" title="main" charset="utf-8">

Similar Messages

  • How to link pdf file in flash by xml ??

    how to link pdf file in flash by xml ??

    try to give <a href="your address">My Pdf</a>
    and your textfield should be html enabled
    mytextField.html=true
    mytextField.htmlText=your xml text

  • CS3:How to link a file to a InDesign document?

    Hello all,<br /><br />I looked at in the LinkWatcher sample code to get an idea how to link a file to a document, I came up with the code below, the last line of code needs pageitemUID instead of pageUID which I  used it here:<br /><br />IDFile outFile = Utils<ImyUtils>()->getMyFile(); // it reads the file <br />InterfacePtr<IDataLinkHelper> dataLinkHelper(::CreateObject2<IDataLinkHelper>(kDataLinkHelperBoss)); <br />InterfacePtr<IDataLink>      dataLinkNew(dataLinkHelper->CreateDataLink(outFile)); <br /><br />IDocument* theFrontDoc = Utils<ILayoutUIUtils>()->GetFrontDocument();<br />IDataBase* database = ::GetDataBase(theFrontDoc); <br /><br />InterfacePtr<IDocument> piDoc(theFrontDoc, UseDefaultIID()); <br /><br />InterfacePtr<IPageList> pageList(piDoc, UseDefaultIID()); <br />     <br />UID pageUID(kInvalidUID);<br /><br />if (pageList->GetPageCount() >  0)<br /> {<br />     pageUID = pageList->GetNthPageUID(0);<br />}<br />// I try to link the file to the front document, although it say pageitemUID, as a second //parameter, but I don't want to link the file to a particular page item. is this a right thing to do?<br /><br />int32 result = dataLinkHelper->AddDataLink(database,pageUID, dataLinkNew); <br /><br />as I execute the code it doesn't add the file in  Link palette in CS3, but when I pass a UID of one page item such as text frame, it will add the name of file to link palette with a "1" comes to  end of row that shows how many times this file was included in the frame. but in case I have not a page item can I use the pageUID instead ?<br /><br />Thanks In Advance,<br />Mor

    Lee,
    Sorry I think I didn't use the right terminology, somehow I want to include/link the file (not with menu item 'place') programmatically in my current open Indesign document, then I expect to see the filename in Link palette. I can do this with linking to a page item in doc but I don't want to assign it to a particular page item, rather I want to assign it to doc. Is any approach to do it?
    Thanks again,
    Mor

  • I need to know how to link 2 files in 1 folder

    Can anyone tell me how to link 2 files in one folder?  They are currently in the same folder but I need to link them.
    Thank you!

    Now we're getting somewhere.
    Unfortunately, I don't know Word or Excel very well. It might be better to find assistance over in the Microsoft Word for Mac Forums:
    http://office.microsoft.com/en-us/mac-word-help/learning-roadmap-for-word-for-ma c-2011-HA103528093.aspx
    http://office.microsoft.com/en-us/mac-word-help/results.aspx?qu=Link+to+excel&ex =1&origin=HA103528093

  • How to call javascript file in windows?

    I developed javascript for automated pdf files. But i don't know how to call that javascript file from outside of acrobat. Kindly advice me the various way to use that script. This is for acrobat 8.0.

    You can place Acrobat JavaScripts in various form elements, document actions, documents, and the application folder or user application folder. See the Acrobat JavaScript API Reference and Guide fo rmore information, http://www.adobe.com/devnet/acrobat/javascript.html .
    From within Acrobat's JavaScript's debugging console, one can use the following code to locate the JavaScript folders used by Acrobat/Reader:
    function JSInfo() {
    /* define function to report JS information */
    // some basic system information
    console.println(app.viewerType + ' ' + app.viewerVersion + ' is running on ' + app.platform);
    // user level script folder
    try {
    var userJS = 'User level JS folder: ' + app.getPath("user","javascript");
    } catch(e) {
    var userJS = "User has not defined use JS folder level scripts";
    console.println(userJS);
    // application level script folder
    try {
    var appJS = 'Application level JS folder: ' + app.getPath("app","javascript");
    } catch(e) {
    var appJS = "There are no defined application level JS folder level scripts";
    console.println(appJS);
    return;
    } // end of JSInfo function
    JSInfo(); // call the function

  • How to link Excel file to Access

    Hello,
    I created a barcode database using excel and labview. Now i want this data to be in access as a database and continuosly update it.
    I have a doubt also as i have created excel sheet of various product barcode and there is always a new sheet that is saved when ever working( this is a requirement)  so how can i link all the file and creat one access database.
    Thanks in advance, Need urgent help
    Regards
    Naman Vaidya

    sorry for the confusion. 
    i want labview to link my excel and acess, so that a database is created.
    second thing is i am having verious barcode data like for eg. for product X i have a particular barcode and for product Y another so my software create a new excel file whenever we change a product or a particular quantity of any product is filled. Now the question is if everytime i creat a new excel how do i creat a single database by linking all files using labview.
    Thanks for the reply.

  • How to include javascript file (.js) to pages in portal

    Hi,
    I have been trying to include a javascript file (something.js) to a portal. actually, I want to include it on a html portlet that will be my navigation page.
    I have used the code below to add the js file, but it seems not working
    <script language="JavaScript1.2" src="/javascript/cp_navigation.js">
    </script>
    I have uploaded the js file to the /ora9ias/enterprise/portal/javascript folder (created) in portal server. is there any configuration that I have left out?
    another thing, if I want to include some of the js file to the <head> section, am I possible to do it? and how?
    thanks

    Jerry,
    Where to find this? give the date or the name, please?
    *We're often desperate users that are under pressure to make these Oracle applications WORK for our employers!
    Your help in making us efficient is definitely appreciated!

  • How to refresh JavaScript File.

    I am running JavaScript file on the Folder level.
    Looks like I am still running the previous version
    of the file even after I made corrections to the
    js file.
    Is it any refresh action I can use in the code or
    on the keyboard.
    Is somebody can help with this?
    Thanks.

    There is no refresh. You need to close all instances of Acrobat (including those in the browser) and restart the application. Acrobat only reads through this folder on application initialization.

  • How to link to file in new window?

    I'm building a portfolio site. Right now, I know that I can open a new window when linking to an external page or even one of my own pages. However, I want to link to files that will open a new window instead of reloading the current page. For example, I want to link to an HTML file that references a .SWF. The .SWF and HTML file are in the same folder, so it plays just fine, but I need it in a new window. Any ideas?

    In the Inspector, Link to external page, and open in new window.

  • How to link to file after download?

    Hi,
    I'm probably missing something real obvious here.  But, I have a button that users use to download a file from the server.  They click the button then it pops up a file dialog asking them where they want to save it, what to name it, etc.
    That all works fine. But after the file is downloaded, they have to go into Windows Explorer to find the file they just downloaded in order to open it.  How do I give similar functionality to a regular browser download where it gives a link to the file they just downloaded, then they can just click that link it and it launches the file in the associated application?  Make sense?
    Thanks!

    Hi,
    Don't take this the wrong way (I mean to be helpful here), but -
    1) You mentioned this is for a bank, so presumably this file contains potentially confidential data.
    2) Someone inside your organisation should really understand the format of this file (rather than giving it to me to understand).
    3) Sure I can look at it, but that would fall under my category of 'consultancy work' (I do provide lots of free help in these forums, but I also need to draw the line somewhere!).
    If you don't feel comfortable examining the file yourself, is there no-one else on your development team who would be able to take a look at it?
    John.

  • How to link CS5 file to another file

    I've done a 12-page newsletter - complete with loads of images etc - using Indesign CS5 with links created by the TOC (Table of Contents) to each of the articles within the newsletter which will be a PDF.
    I have been advised that even as a PDF, the document will be far too costly to download on mobile devices/smartphones etc and that in order to circulate it to our mailing list, I need to produce a separate one-page Indesign CS5 file with links to the articles in my original piece of work. 
    What I now want to do is create a separate file for the front page linking to the main document which will be on our website but having spent the past two days attempting to figure out how to do this myself and trawling through my books and around the internet, I'm none the wiser.
    I'd greatly appreciate advice/guidance on the simplest and easiest way to do this with a complete idiot's guide on the steps needed to do so.
    Many thanks

    try to give <a href="your address">My Pdf</a>
    and your textfield should be html enabled
    mytextField.html=true
    mytextField.htmlText=your xml text

  • How to import javascript files in page template?

    Hi,
    How can I import .js files into page template, so I can access its methods in each page that is built using that template? I have tried with <script> inside <f:verbatim> but didn't have much success. When I run a page that has a template with .js file imported in that way, I always get "report not found" error, or something similar (report is the name of the javascript method in imported file).
    Pedja

    Pedja,
    The following works as well (assuming "/faces/" is part to the url):
    <script src="../scripts/utilScripts.js"
                     type="text/javascript"> </script>Although, I prefer the use of your solution.
    --Ric                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to link Javascript code stored in a separate folder to a Form

    I have some Javascripts stored in a differnt Folder. If I want to achieve some different functionality in my forms , how and where do I link this folder. I tried in the Form Edit mode to attach it in the HTML code in the Script tag with the SRC attribute but not been successful.
    Help on this will be highly appreciated
    Thank you all in anticipation
    Cheers
    Nitin

    Hi,
    Simplest way would be to drag the script object to be under the root node (form1). On both pages would would then be able to reference the function by:
    testScript.doThisNow();
    If you leave the script object under page1, then from page2, the following should work:
    page1.testScript.doThisNow();
    Hope that helps,
    Niall

  • How to execute javascript file on event..

    Hi... I made a template form. After filling it, when user press the button, i want to execute a javascript code which is in a .js file. What do I have to write in the code related to the button? Thanks

    Acrobat JavaScript has some unique objects, properties, and methods that are unique to Acrobat. Adobe has poset a number of documents deatiling the Acrobat's JavaScript.
    JavaScript for Acrobat: http://www.adobe.com/devnet/acrobat/javascript.html
    Acrobat Documentation: http://www.adobe.com/devnet/acrobat/?view=documentation
    The location of the application folder, depends upon the OS and Acrobat/Reader version.
    Use or a folder level JavaScript, requires the JS file to be installed on each client computer
    To impliment a counter there are a number of ways. The easiest is to use a 'global' 'subscribed' variable. See the August 2004 (issue 34) of the Acument Traing Journal, http://www.acumentraining.com/acumenjournal.html, for information about how to do this.
    One can also use the ADBC, Adobe DataBase Connection or a submit to a web server script page to obtain data from a file.
    If you want to read and write a file in Acrobat/Reader there are a number of restrictions.

  • How to link folio to web-based app builder?

    Hello,
    I'm building a native Android app through the web-based App Builder (on Windows machine). That part went well. But how can i link my folio from within InDesign CC to that app? I expected the App Builder to ask me where to find it, but it didn't. So now, i created just an empty app ... Anybody?

    In the General tab, you specify the Application account and password, as described in the Building native Android apps help article.
    Application Account / Password. Select the Application account (also referred to as a "Title ID") used to publish the folios that will appear in the app library.
    Have you used the Account Administration tool to configure and Adobe ID with an Application role? And have you used Folio Producer to publish one or more folios in that account as Public? If so, those published folios will appear in your native Android app when you download it and add it to a device.
    You can also download the Android version of the Adobe Content Viewer from the Google Play Store to test folios in your account. Keep in mind that the native viewer is still catching up to the iOS viewer's feature set. Again, these limitations are described in that article.

Maybe you are looking for

  • How to improve the performance of the abap program

    hi all, I have created an abap program. And it taking long time since the number of records are more. And can anyone let me know how to improve the performance of my abap program. Using se30 and st05 transaction. can anyone help me out step by step r

  • I am having these visual errors recently and often. Screen Caps include.

    FF Version 37.0.2 Not a question but a Please Fix This. Love FF but having to go to Chrome... :-(

  • Serialization vs. HttpSession

    Hi,           Does HttpSession store an object's state the same way that an object           becomes serialized?           This is only interesting to me because I am trying to use the transient           modifier to NOT save any instance variables I

  • Error in global conversion rule for InfoObject when Activating 2LIS_11_V_IT

    Hello, I am facing several issues while activating the Content. For 2LIS_11_V_ITM I get the following message: Error in global conversion rule for InfoObject 0INCOTERMS2 Message no. RSAR263 Diagnosis Errors with the global conversion rule for the fie

  • Scroll bar alters website

    Hi there, I have made a website for my final assessment, however one page has more text than the other causing the scroll bar to appear! This pushes my web site across a couple of pixels teacher says it doesn't look good and I have to fix it, however