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

Tags: Database

Similar Questions

  • Elements of reference in the external js file request

    I am using an external javascript file, but I have problems to reference the elements of the application

    APP_ID and the SESSION can be referenced using

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

    and page items (P1_ITEM) can be referenced using

    $v('P1_ITEM')

    Application items (A1_ITEM)However, do seem to not work. Tried using $v ('A1_ITEM') but without success. Is it possible to reference the elements of application in the external js file?

    Teo

    You can set point local page to the value of the item application and then refer to this local element.

  • created variable on click in edgeActions.js but want to reference in the external js file


    Hi, I created a variable on click in edgeActions.js but want to reference in the external js file. This is where I am so far:

    In my edgeActions.js I have variable st on compositionReady and then use it when I click the icon: questionMarkR1. It works fine... the problem is that I don't know how to reference the variable in my external js file. This first code works of the edgeActions.js:

    Symbol.bindElementAction (compId, NomSymbole, 'document', 'compositionReady', function (sym, e) {})


    sym.setVariable ("questionAsked", false); sets the initial value

    });

    Symbol.bindElementAction (compId, NomSymbole, "${_questionMarkR1} ', 'click', function (sym, e) {})

    var questionAsked = sym.getVariable ("questionAsked");

    Alert (questionAsked);

    If (questionAsked) / / if it is true
    {
    SYM. $("checkButton2") .removeClass ("hidden");
    SYM. $("popUp") .removeClass ("hidden");


    }
    of other fake //if
    {

    SYM. $("pic2a") .removeClass ("hidden");
    SYM. $("pic2b") .removeClass ("hidden");
    SYM. $("pic2c") .removeClass ("hidden");
    SYM. $("pic2d") .removeClass ("hidden");

    SYM. $("closeBox") .removeClass ("hidden");
    }

    });

    This next part does not work because I don't know how to properly reference the variable. That's what I've tried and it doesn't work:

    var questionAsked = sym.getComposition () .getStage () .getVariable ("questionAsked");


    Alert (questionAsked);

    Hello

    Animate edge exposes an API for external scripts, you will need to use in your case:

    For more information about the API to animate edge, see API JavaScript Adobe Edge animate CC

    Use the code below in your external js file:

    var comp = AdobeEdge.getComposition ("EDGE-606063631"); replace 'EDGE-606063631' by your model id, you can find in the .html file

    var point = comp.getStage ();

    var questionAsked = stage.getVariable ("questionAsked");

    Alert (questionAsked);

    HTH,

    Vivekuma

  • How to make reference to the external SWF file using if statement?

    I have a main swf file that loads several external SWF file when the user clicks a menu button. Now I want to target a specific swf file to Add an extra library child or of another swf when this specific swf file is loaded. How should I do? What should I put in the stated case?

    ///////////////////////////////////////////////////////////

    var newswf:URLRequest = new URLRequest (".") ("/ swf /" + event.target.name + ".swf");

    Loader.Load (newswf);

    addChild (loader); dynamically load SWFs

    If (newswf == ".") ("/ SWF/pubResCHETNA.swf ') //error here

    {

    FC.buttonMode = true;

    FC.addEventListener (MouseEvent.CLICK, full screen);

    }

    function fullScreen(e:MouseEvent):void

    {

    var loaderF:Loader = new Loader();

    loaderF.load (new URLRequest ("PopupFullscreen.swf"));

    addChild (loaderF);

    }

    ////////////////////////////////////////////////////////

    The State must be newswf.url == the path. However I store event.target.name as a variable and use it in the State. You use "." for your path so the condition probably will always fail.

    --

    Kenneth Kawamoto

    http://www.materiaprima.co.UK/

  • 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.

  • 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.

  • Need help to find the link to the external AS2 file

    I bought a picture gallery program that works very well, but I'm fighting to make a very slight change. I asked the author for assistance, but previous requests have met with no response, so I ask my question here, too.

    This program has most of its logic in an external file of AS2. I made some small modifications to this file and want to save it under a new name. However, which also would require me to change the reference to the external file AS2 from in the fla file. That is my problem. I can't find any code in the fla that contains such a reference.

    If I try to publish a swf without this file in the desired location, it causes a compilation error, proving that there must be a reference somewhere to this file. However, doing a search for this file in the "current document" AS2 when to display the fla file in Flash CS4 produces no result. Where else this reference can be hidden?

    David

    This .as file is definitely a class file based on what you described, not just an actionscript include file.  You might be able to find that it connected via the objects in the library.  Right click on each object movieclip in the library and choose the option to link in the menu that appears.  You should see an interface that has fields for an identifier and a class.  You may find the file attached in this way.

    To find the code associated with objects, you must have the Actions panel open and just click on an object on the stage, like a button or whatever.  Code is attached in the Actions window.  The ability to attach the code like this was abandoned when AS3 was released.

  • addition of html in the box edge animate the text of the external js file

    I have a text field in the anime that I want to update with a score of edge. The function that allows you to click and update the partition is in an enternal file so I'll try to figure out how to get my div animated dashboard replaced by jquery in the external file. That's what I have so far in the external js, but it is not reading the field to animate the text of edge correctly:

    external .js file:

    AdobeEdge.coinCounter += 250; It called the coinCounter variable introduced in edgeActions.js and the initial value of 0 updates
    Alert (AdobeEdge.coinCounter); This shows that it works and updated correctly

    var comp = AdobeEdge.getComposition ("EDGE-172492634");

    var point = comp.getStage ();

    stage.sym.$("gameText").html (AdobeEdge.coinCounter); It's when things go wrong. I want this updated value in the text box named 'gameText' which is in the composition of edgeAnimate

    stage.sym.$("gameText").html ("NewText"); There is no indication in the text box 'gameText. " something must be wrong how am I referencing outside edgeActions in the external .js file

    Did someone mind helping me to refer to the text box 'gameText"correctly so I can enter my new value? Thank you!!

    Hello

    You must remove "sym.": internship. $("gameText").

  • How to determine the total number of images in the external .swf file loaded

    I have to be able to load both external .swf files and make them play in order. To do this, I need to know the number of images in the first .swf file so I can check _currentframe against _totalframes to determine when he is finished playing so that I can load another.

    Most of the stuff I see indicate that _totalframes on an external .swf can be determined by loading the .swf in a container clip and then check using a listener in the .onLoadInit. Like this:

    ------------------------------------------------------------------------------------------ ----------------------------

    this.createEmptyMovieClip ("tester_mc", 1);
    var mcListener:Object = new Object();

    mcListener.onLoadInit = {function (target_mc:MovieClip)}
    target_mc.onEnterFrame = function() {}
    If (this ._currentframe > = this ._totalframes) {}
    trace ("total frames =" + this ._totalframes);
    delete this.onEnterFrame;
    } else {}
    trace (target_mc._currentframe + "OF" + target_mc._totalframes);
    }
    }
    }

    var test_mc:MovieClipLoader = new MovieClipLoader();
    test_mc. AddListener (mcListener);
    test_mc.loadClip ("Ad_Group.swf", tester_mc);

    ------------------------------------------------------------------------------------------ -------------------------------------

    Unfortunately, this doesn't seem to work. The trace will always return a total number of frames of 1.

    I guess it's because the container clip has only 1 frame, and the external .swf timeline seems to be ignored.

    I would appreciate any ideas on how to raise the total number of frames of an external .swf file or, Alternatively, put it another way when it's done playing. (Not only the loading, but play until the end.)

    TIA,

    C

    I guess it's because the container clip has only 1 frame, and the external .swf timeline seems to be ignored.

    I wouldn't imagine. My guess is that the main scenario for the external swf file has only 1 frame and the rest of the animation is inside a movieclip in this timeline. You publish this swf? Can you open the FLA and check how many images is open on the main timeline?

    The approach that you have mentioned is about what there is. But he knows check a chronology. If there are many nested movieclips, it may be impossible to understand what timeline you really want to be 'THE' full chronology.

    If you have the FLA, you can have the video call function on the _root timeline which tells the main swf that has completed a movieclip or something like that.

    Also, I have in my head somewhere that I recently saw something that someone made similar to this one, but do not remember... If it appears in my head that I will post.

  • Preloader which modifies the external SWF files every 5 seconds

    Hello

    I made a web banner in flash that loads an external swf and another external swf changes after 5 seconds. The banner have a preloader, but the problem becomes when you load the first time. As sovereign wealth funds are not cached in the cache of the browser and yet, time 5 seconds start counting from the preloader, and when the external swf file, shows only 1 second rest and it is replaced by another. There is a way to 'freeze' the time for each external swf until it loads completely?

    The code that loads SWFs every 5 seconds (this code is placed in a layer of action):

    start of the code:

    var intervalId: number;
    var: number = 0;
    var maxCount:Number = 23;
    var duration: number = 0;
    var banners: Array = new Array)
    "abatrade.swf,"
    "bancobrasil.swf,"
    "caparao.swf,"
    "cedro.swf,"
    "cesama.swf,"
    "copasa.swf,"
    "damatta.swf,"
    "emtel.swf,"
    "engedrain.swf,"
    "extel.swf,"
    "feedback.swf,"
    "iti.swf,"
    "intermedium.swf,"
    "magnesita.swf,"
    "maquenge.swf,"
    "maxxdata.swf,"
    "orteng.swf,"
    "paiva.swf,"
    "paraibuna.swf,"
    "paraopeba.swf,"
    "sabesp.swf,"
    "serpro.swf,"
    "soll.swf,"
    'thawte.swf '.
    );

    function executeCallback(param:String) {}
    var duration: number = 5000;
    loadMovie (banners [count], loadmovie_mc);
    loadmovie_mc._x = 0;
    loadmovie_mc._y = 0;

    clearInterval (intervalId);
    if(Count < maxCount) {}
    Count ++;
    intervalId = setInterval (Thi, "executeCallback", duration, banners [count]);
    }
    else {}
    Count = 0;
    intervalId = setInterval (Thi, "executeCallback", duration, banners [count]);
    }
    }

    If (intervalId! = null) {}
    clearInterval (intervalId);
    }

    intervalId = setInterval (Thi, "executeCallback", duration, banners [count]);

    end of the code
    ----------------------------------------

    And the code to the preloader (this code I place in the movieclip that loads external SWF files):

    start of the code:

    {onClipEvent (enterFrame)}
    var gtT:Number = this.getBytesTotal ();
    var gtL:Number = this.getBytesLoaded ();
    var gtP:Number = int ((gtL/gtT) * 100);
    If (TWG > gtL) {}
    This ._alpha = 0;
    _root. Loader._alpha = 100;
    _root. Loader.bar._width = gtP;
    clearInterval (intervalId);
    } else {}
    This ._alpha = 100;
    _root. Loader._alpha = 0;
    intervalId = setInterval (Thi, "executeCallback", duration, banners [count]);
    delete onEnterFrame;
    }
    }

    end of the code

    Note that I tried to freeze the time using a clearInterval does in the second code, but he simply doesn't work...

    Any ideas? Thank you

    Edson

    Here's the correct code kglad send me. Thank you very much!

  • How to create the new page in the master page and make reference to the reference text framework previous page id?

    I have problem to apply/create an element of the master page and how to run the previos page text block to create the page text

    InterfacePtr<IPageSetupPrefs> iPageSetupPrefs (,static_cast<IPageSetupPrefs * > (:QueryPreferences() IID_IPAGEPREFERENCES, docRef)));

    if (iPageSetupPrefs is nil) {

    Assert (iPageSetupPrefs);

      break

    }

    InterfacePtr<ICommand> iNewPageCmd (CmdUtils:kNewPageCmdBossCreateCommand());

    if (iNewPageCmd is nil) {

    Assert (iNewPageCmd);

      break

    }

    InterfacePtr<IApplyMasterCmdData> iApplyMasterCmdData (iNewPageCmd, IID_IAPPLYMASTERCMDDATA );

    if (iApplyMasterCmdData is nil) {

    Assert (iPageCmdData);

      break

    }

    InterfacePtr<IPageCmdData> iPageCmdData (iNewPageCmd,UseDefaultIID());

    if (iPageCmdData is nil) {

    Assert (iPageCmdData);

      break

    }

    Int32 numPagesToInsert = 1;

    PMRect pageSizeRect = iPageSetupPrefs->GetPageSizePref();

    Int32 pos = iPageCmdData->GetNewPageInsertPosition();

    ISpreadGeometry InterfacePtr<IGeometry> (spreadList->QueryNthSpread(0));

    if (iSpreadGeometry is nil) {

    Assert (iSpreadGeometry);

      break

    }

    spreadUIDRef =:GetUIDRef(iSpreadGeometry);

    PMRect dfltPMRectPageSize = iPageSetupPrefs->GetPageSizePref();

    PMReal pageWidth is dfltPMRectPageSize. Right () - dfltPMRectPageSize. Left ();

    PMReal pageHeight is dfltPMRectPageSize. Bottom () - dfltPMRectPageSize. Back to top ();

    PMRect usrDefPMRectPageSize (0, 0, pageWidth, pageHeight);

    K2Vector< PMRect> pageBoundingBoxes;

    for ( int32 i = 0; i < numPagesToInsert; ++ i) {

    pageBoundingBoxes. push_back (usrDefPMRectPageSize);

    }

    iPageCmdData->SetNewPageCmdData(spreadUIDRef, numPagesToInsert, pos +1, & pageBoundingBoxes, nil);

    / / CreateSpreadFromSpread (docRef, spreadUIDRef);

    InterfacePtr<IBoolData> iBoolData (iNewPageCmd,UseDefaultIID());

    if (iBoolData is nil) {

    Assert (iBoolData);

      break

    }

    bool16 allowShuffle;

    if (this->GetShufflePref(allowShuffle, docRef) iskFailure) {

      break

    }

    iBoolData->Set(allowShuffle);

    CmdUtils:ProcessCommand(iNewPageCmd);

    Above code, able to create a page but the problem in applied master page?

    Using document Pages face?

    I think that your posToInsertAt for IPageCmdData::Set is incorrect.

    If the doc does not have facing Pages, posToInsertAt = 1;

    If doc is facing Pages and page insertion is the left-hand Page, posToInsertAt = 2;

    If doc is facing Pages and insert page is the right Page, posToInsertAt = 1;

    posToInsertAt = spread-> GetNumPages();

    newDocCmd and newDocCmdData are not used, you can delete these.

  • Cross-reference to the external link is broken...

    Hi all

    With your help, I was able to establish corss-ref (or hyperlink) to an external document.

    Yesterday, using HyperText (e-mail Client) option, I was able to create a link to an external Document PDF.

    Syntex Client Message: message openfile relative_path

    After you publish a document, a PDF external link works fine.

    But whenI move all files and subfolders to a different location, the LINKS are BROKEN. I haveIf there is a way to fix this?

    Thanks in advance.

    The link works within the FM (hold the button ctrl + alt and click on the link)? If this does not work there, then your path information is not correct. Also, I think you might need to use the path in quotes because of the space in the folder name - FM has a heritage of unix and is a little sensitive on the paths and file names.

    Where the links are pointing to in the PDF file (use the Acrobat link tool > properties when you select the link area)?

  • 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.

  • Create Adobe Muse Widget with images and the external JS file.

    Hello, I want to create widget that include all about 7-8 images and 1 JS file.

    I read the documentation, but I have a few questions.

    Is there any way to import images of widget (no link to them)?

    Y at - it means to import the folder 'images' with pictures on it and this folder to extract to which I have 'say' (for example level even where is the page or file in the folder root of the site)?

    Is there a way to include the JS file?

    In my opinion, that these things are possible, but with Adobe Muse themes.

    How to manipulate the page with the options for the widget?

    For example, in the options, you can choose between 2-3 options and the option to apply to the page.

    I want the option widget that can change 1 variable JS variable will be in the script that is added to the page (not external JS file). I know how to add this script to the page, but I don't know how to handle with the widget options. Here's another example, I have this:

    ...........

    < bodyEndHTML >

    <! [CDATA [< script type = "text/javascript" >]]

    $(function() {})

    var someVar = "somevalue1";

    });

    < /script >]] >

    < / bodyEndHTML >

    < / HTMLWidget >

    I want with option widget to manipulate this variable 'someVar' (its value), between the selected values.

    You work with html exported Muse,

    It would be a complete customization with form action, you can try to use the coding corner

    Thank you

    Sanjit

  • 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

Maybe you are looking for

  • Can LabVIEW Embedded for ARM works with any Board or just with a few predefined?

    Hello Can LabVIEW Embedded for ARM works with any evaluation committee or just with a few predefined (MCB2300, MCB2400 and EK-LM3S8962)? I ask this question because even if I chose "another processor" in the definition of the new project only 3 optio

  • HP ENVY 700-203eo: image of DVD Burning 0xC0AA0301 error

    Hello HP ENVY 8.1 700-203eo/Windows I am trying to burn an .iso to a DVD image, but it fails with 0xC0AA0301 error code. I also tried to burn the DVD using the included bloatware Power2Go, with a similar result. Downloaded and tried ImgBurn - which a

  • Generic & MS drivers installed for most devices

    Why should I especially generic & MS drivers instead of the part 3 insttalled of pilots on most of my devices?  What could cause this kind of situation? Michael

  • Access WAP 121 CLI

    Hi all Someone can tell me if the WAP 121 offers CLI access or is it management GUI only? Thanks in advance.  All the answers have been evaluated.

  • To export the schema error in 4.1.0.881

    When I export a report schema design, I get the errors below.2015-05-19 11:11:27, 993 [main] INFO ApplicationView - Data Modeler Oracle SQL Developer 4.1.0.8812015-05-19 11:11:50, 635 [Thread 23] ERROR ReportsHandler - Error exporting to the schema d