External javascript file in the page login.html Campus Mobile

Hello


We try to load an external javascript file of Mobile Campus of Oracle application login.html page.  The code works in the Android app, but not the IOS app.  Here is a code snippet:

Can you offer any help on how we can get the javascript code to load correctly for iOS?  The code is not local to the application is because we're going to make changes so that it displays various messages on the login page at different points throughout the year.

Thanks for any help you can provide!

Just wanted to give everyone an update and let you know that we have understood the question.

in the file Application.xml - MAF, we added our URL to the white list (Security tab).  This allowed the application to invoke successfully the javascript code for the external file.  I hope it is useful to someone, as it seems to help others / Oracle support on this forum is unlikely.

Tags: Oracle Mobile

Similar Questions

  • page element to reference in the external JavaScript file

    Hello

    Anyone know how I can refer to page within an "external JavaScript file elements?" Things such as $v ('P3_ITEM1') and & P3_ITEM1. works great if I put the JavaScript code directly in the page header - section of JavaScript. For ease of maintenance, I want to move these JavaScript codes in the external file on the server. I tried the two $v ('P3_ITEM1') and & P3_ITEM1. and they do not work in the external JavaScript file - 4.1.0.00.32 apex.

    Thank you.

    Andy

    Andy,

    Something like this should work. You should not add pAppID or pSession as parameter, if they will always be entries on the page.

    APP_ID: $v('pFlowId')
    SESSION: $v('pInstance') 
    

    and make sure that all substitution strings are replaced.
    >
    var ajaxRequest = new htmldb_Get (null, & APP_ID, 'APPLICATION_PROCESS =?', 0);
    >

    Kind regards
    Janet Tyson

  • Using the external js file in the custom workflow

    Hello

    I use 11.1.1.8 and jdev 11.1.1.7 spaces

    While referring to (http://js.xyz.com/js/abc.js) external js file in my integrated jsff in weblogic page, there is no problem, js works perfect , but when I deploy my workflow a workflow customized to webcenter spaces page cannot access this file js url.

    I have to give this operation any grant? How?  I found something external applications like this, but there wasn't a connection information. My field of js file didn't need approval.

    Thank you.

    Jsff file, I use the js as file

    < af:resource type = "javascript".

    source ="http://js.xyz.com/js/abc.js" / > ".

    Thanks for everyone, location external links js in the page of the portal model has solved my problem.

  • How can I add a PDF file to the page in the site Web of Muse?

    How can I add a PDF file to the page by Muse?

    Hello Gini1950,

    In case you want visitor to click a button and open the PDF file in the browser, you can try following:

    1. create a button (Rectangle or text box)

    2. click on the button and go to the hyperlink menu and click on "link to file".

    3. navigate to the PDF file and select it.

    This will create a hyperlink to the file and it will open in the browser if someone clicks on the button.

    Please let me know if you are trying to achieve something else.

    Kind regards

    Vivek

  • Display the HTML file in the Page of the OFA

    Hi all
    I have a requirement in which I need to display the HTML files in different regions of a tableLayout.

    I created tableLayout region in my page, and in the region of tableLayout I created 2 rowLayouts

    Now, I want to display the first HTML file in rowLayout1 and the second HTML file in rowLayout2.

    So I created 2 iframes
    OAHTMLWebBean outRegion1 is createWebBean (OAHTMLWebBean) (pageContext, HTML_WEB_BEAN, null, "IFRAME");.

    OAHTMLWebBean outRegion2 is createWebBean (OAHTMLWebBean) (pageContext, HTML_WEB_BEAN, null, "IFRAME");.

    Then setting the src of HtmlWebBean property

    outRegion1.setHTMLAttributeValue ("src", filename1);
    outRegion2.setHTMLAttributeValue ("src", filename2);

    passing the full path regarding the file1 and file2 (e.g. c:\filename2.htm) respectively.

    When I try this approach by placing the files on my local system and cross the jDEV, I get the expected results.

    But when I try to put these files on the server and try to run applications they I didn't put out, I see just 2 images and its display "page is not found" in each frame.

    I'm sure that the files are present on the server and on the paths specified.

    Can you please help?

    Thank you

    Hello

    HTML files must be placed at the top of the OA_HTML (there will be some path on local machine that is going to be to replicate this, as D:\jdevhome\jdev\myhtml\OA_HTML) place your file here and in the sourcs don't provide only your full path file name, it will open.

    Let me know in case of any problem.

    Kind regards
    Out Sharma

  • How to add the external css file to the _edge.js file

    I tried to add in the html page, but when I save the edge project it deletes.

    I'm able to add the external js file in scripts: [] in the _edge.js file

    We can add inside resources: []?

    And is it possible to add an external css in files of edge except in page html and javascript?

    CSS:

    Please put this in scene/creationComplete (file name change to your file name and path)

    $(" ",{"rel":"stylesheet","type":"text/css","href":"css/finename.css"}).append ("#Sta ge»);"})

    Add! important in CSS file properties.

    js files should be loaded with the upload script Panel on the right side of your user interface.

  • Problems with external javascript file

    For some reason, I can't get a text external/javascript [.js] file works correctly on my Web page. I went to Adobe Help Viewer and follow the instructions clearly. But it all comes to a cause I can't seem to see a little icon in fashion design javascript to connect my widget external javascript to support javascript on my page. Why is this? I have the visual aid invisible items checked as well. Here is an article of the code below.

    Rufus65 wrote:
    > I'm sorry, I went from one problem to another, the first problem with the
    > javascript shield was my main problem and the first and its fixed. now, it's a new
    > problem, but I think I can just cut this time around, I got the codes mutilated
    > of this site: http://www.widgetbox.com/#. it allows you to customize your own
    > widgets and I thought that it was legitimate, apparently is not. to solve my javascript
    > problem, basically I want to just a website that has downloadable widgets for me
    > to insert into my website using dreamweaver CS3. That is my main task, I was
    > trying to accomplish. I started 5 steps before this goal which was not brilliant
    > at all. So my main problem [outside my other topic post on my screwed upward
    [> header] is just to get legitimate widgets that are free and easy to use in
    > dreamweaver CS3, cause I don't have time to learn Javascript code or whatever it is
    > close to him.

    Depends on which widgets you want and what you need to make them specifically for you. Maybe start a new thread, listing widgets that you feel you need and what you want to do with them.

    You do not have available in the Insert bar Spry widgets, but they can or may not be able to accomplish some of the things you like to do, be specific about what you want to do on your end, and what you want the end result to be. Send examples if you have.

    Many widgets will require some, if not encoding extended, to get the best out of them. For example, widgets to http://ui.jquery.com/ can do something relatively well, but in Dreamweaver CS3, you need to enter the code to be able to set a lot of options.

    Where it's important, DWCS4 added a "web widgets" option that allows you to install widgets from the Exchange:
    http://www.Adobe.com/cfusion/exchange/index.cfm?s=5&from=1&o=desc&cat=290&l=-1&event=Produ ctHome & exc = 3

    But even once, they may need a little digging intot he code to get the best of them.

    HTH

    --
    Danilo Micen
    | http://blog.Extensioneering.com/
    | Extensioneer WebAssist
    | Adobe Community Expert

  • Find and view a network file in the page of the ADF

    Hello

    I have a simple requirement where at the click of a button link in my page ADF, I need to display an html page stored in the network location (e.g. / / < host name > / folder1/folder2/demofile.htm)

    I have only the path and only a substring of the filename, so I have to search for the file in the network directory using this substring. Once I have the file name, I use af:goLink to navigate to the network path and view the file in the browser.

    Here is the piece of code from Managed bean and the jspx

    FindFilebean.java

    .

    .

    path = "" \< host name > \\folder1\\folder2".

    File f = new File (path);

    [] List of the files in the folder = f.listFiles ();

    File latestFile.

    for (file: filelist) {}

    {if (file. ToString(). Contains (fileNameSubstring)}

    If (latestFile== null |) ((latestFile! = null & & latestFile. lastModified() < file.lastModified ())) {

    latestFile= file ;}

    }

    }

    path = latestFile;

    .

    .

    FindFile.jspx

    < af:goLink text = "Print Traveler" id = "gl1".

    destination = "#{viewScope. . "{FindFilebean.path}" targetFrame = "_blank" / >

    < af:popup = "deferred" autoCancel childCreation = "disabled" id = "p1".

    It works perfectly fine when I run a local integrated server, but I get a null value pointeron access to the f.listFiles (); when it is deployed on the weblogic managed server

    I also tried the following:

    1. creates a servlet and tried to read the file using the buffered output stream and display in an inlineFrame

    2 FiledownloadActionListener to read the file and view/download it

    These two approaches work very well locally but display/download a blank page on the server.

    Please suggest what Miss me here and if there is another way to achieve this.

    JDev version: 11.1.2.4.0

    WebLogic Server version: 10.3.6.0

    Thanks in advance.

    In fact f.listFiles () should not throw NPE as the directory exist a lot and the code snippet works fine on the local server.

    But you should add check and display the appropriate message to the users in the case

    As you mentioned the managed server is not able to access the network share.

    Guidance on how I could do this job?

    That is the question to your system administrator.

    They need to map this network share to the managed server machine.

    Or if this is impossible, then you can perhaps use another approach (ftp, scp,...)

    Dario

  • Links to external .AS files after the conversion to AS3 canvas

    After you convert an AS3 project in canvas, objects that were previously linked to a file external .AS, containing their class to the library as always appear related to this class, as follows:

    2.JPG
    but I get no choice but in the environment of the AS3 to 'Change the class' and implement these for editing external .AS files, as you can see here:

    Capture.JPG

    Can I still retain the binding object in Javascript and how do I do in the environment Adobe animate CC, please?

    In the library, you can double-click on the column link to any element and give it a name of link. Later, it is used like this:

    var something = new lib. Thingy();

    But there is no file class in HTML5 Canvas. If you want external CODE to participate you must convert it into Javascript and put it in the first picture inside the movieclip.

  • External Javascript files but no JS file

    Hey everybody,

    I have a question:

    How to post an animated project edge that has external JS files references without the reference to the. /JS/ folder?

    I'll explain: in the environment where I download my project, I can't make the subfolders (don't know why, it's just so) all my resources (images, sounds, javascript files) must be in the folder the project root.

    Unfortunately, as you know, when I import a JS file on board one. /JS/ folder is created automatically and my files are move inside.

    I want onboard to quit do it and leave my files at the root and reference them there.

    Is it possible that I can do this?

    Thank you much in advance.

    Andrea

    Hello

    You use $. getScript() or yepnope() to load your js files.

    jQuery.GetScript | jQuery API Documentation

  • Need to call the javascript function when the page is loaded

    Hello - I have a javascript function defined on Page 0 of my application. It is in the source of an unconditional
    region whose view point is after the header.

    I call successfully the function of event onchange on individual page elements. (The function
    sets the value of an element based on the value of another).

    But I also need to call the function when the page is loaded. The page is a form of data modification,
    so many values is filled when it is loaded, and I need the dependent values populated
    also.

    I tried to add the call to function in the following way. It is not at all get called (alerts are not forthcoming)
    and there is no error in the Firefox error console...
    - as an event onload in individual items
    -call directly to the edit HTML page header
    -call directly from the HTML body of the edit page (which, from what I've read, sounds
    as to execute onload and my page template doesn't have a defined substitution onload string).

    In these 2 cases, I simply call it like: jsLookupValue ($v ("P8_OBJECTTYPE_ID"), "objecttype_id", "P8_OBJECTTYPE_NAME", "objecttype_name", "hdb_objecttype");

    How can I do this?

    Thank you
    Carol

    If you define the function on the zero page and any page you should be able to call using something like:

    
    

    Have you tried to put just a statement alert() on the page in order to check that it runs just about anything?

  • Cannot drag and drop images from the list of files on the page

    I use DW8 for the redesign of a site someone else created in FrontPage and will continue adding content using FrontPage. I'm afraid that another user would not understand CSS formatting and finally break, so I keep a page a table-based layout using the fairly minimal CSS for style.

    Some of these pages, when I try to drag an image from the list on the page file DW, the cursor only becomes a stripe diagonal-circle sign ' ", and it will not drop the image. When I create a blank page, with or without a table, I can drag image files and drop them without problem.

    There is NO FrontPage special tricks in these pages, by the way - no model or anything that uses FrontPage. Just in case I was missing everything I did "clean up html" command and had him remove DW or non - DW comments, and he found nothing to 'clean up '.

    Can someone tell me what it might be on a page that would prevent him drag / drop list file DW8?

    Thank you very much!

    Theophanes

    I still don't know what the problem was, well, just rename the site and its location on the disk, forcing DW to reread everything from the beginning, eliminated the mysterious problem. There is probably an easier way to force DW to do this - I'll look for it if it happens again.

    Thanks for your help!

    Theophanes

  • Move links to javascript value when the page is loaded

    Hello

    I use JDeveloper 11.1.2.4.0.

    When loading my jsf page, I want to pass the value of the lat, long columns of links the attribute so that the map google map is rendered correct loading of the page.

    I can do when a button is clicked.  But I want to do it when the page is loaded.

    Any ideas?

    Thanks in advance.

    Here is the code snippet, which includes the javascript function: instead of coding hard - 34.397 and 150.644, I would like to happen next as parameters or

    access it some how from the pagedef attribute binding.

    < f: facet name = "metaContainer" >
    " < af:resource type = 'javascript' source = ' https://maps.googleapis.com/maps/API/js?v=3.exp & Sensor = false "/>
    < af:resource type = "javascript" >
    var map;

    initialize() function
    {
    var mapOptions =
    {
    Zoom: 8, Center: new google.maps.LatLng (-34.397, 150.644)
    };
    card = new google.maps.Map (document.getElementById('map-canvas'), mapOptions);
    }

    google.maps.event.addDomListener (window, "load", initialize);
    < / af:resource >
    < / f: facet >

    Hello

    set a listener of phase for the view (using the beforeMethod on the f: view of the page markup). In the method, then use the ExtendedRenderKit Service to call JavaScript from Java. The method must listen for the phase PREPARE_RENDER, who is the liaison for the page to exist. You can access the link from BindingContext.getCurrent () .getCurrentBindings () layer. From there, you call (AttributeBinding) bindings.get ("the binding of the attribute name") to get the attribute mandatory and then - in a next step - the inputValue with data to transmit

    Call JavaScript from Java:

    String script = «...» Add JS calls to set values in JS variables accessed by Google Maps"

    ExtendedRenderKitService erks = Service.getRenderKitService (context, ExtendedRenderKitService.class);

    erks.addScript (context, script);

    Frank

  • How to load external swf files into the AIR

    I try this code its working at the computer, but when I publish this .apk or .ipa file, my external swf file does not open

    (I included my external file as well)

    places_btn.addEventListener (MouseEvent.MOUSE_DOWN, newvid);

    function newvid(event:MouseEvent) {}

    trace ("you clicked me");

    var loadit = new Loader();

    addChild (loadit);

    loadit. Load (new URLRequest ("scene02.swf"));

    }

    01.jpg

    Add this in your newid function:

    You forgot to put the beginning of your original function:

    var loadit = new Loader();

    addChild (loadit);

    var _lc:LoaderContext = new LoaderContext (false null, ApplicationDomain.currentDomain),

    loadit. Load (new URLRequest ("scene02.swf"), _lc);

  • Problem to browse to files in the page with the text field with special characters

    Hello.
    I have a very interesting thing happening in my APEX (4.0.1) application.

    I have problems with a text field, because when I insert the text 'aaaaa' and send the page, the text is transformed in "Aaa£ aa.
    After some time trying to understand the game characters and translations and etc, I realized that this thing happened in some pages.

    Then, I started to remove components of the page where it happens and I discovered that what initially is an element to browse file...
    Every time I have send the page, if there is an element of browse file created on the page, the text is changed. If I delete the queue item browse, when submitting the page, the text remains correct.

    Is it supposed to work like this? And if yes, why is it?

    Thank you.
    vssantos

    Published by: vaissantos on April 1st, 2011 22:45

    Is it supposed to work like this?

    No, of course not.

    Of one of your previous posts, it seems that you use the APEX? If so, similar problems have been reported a number of times before: + {: identifier of the thread = 1104224} + suggests a fix.

Maybe you are looking for