How can I use a custom js file to specify link destinations?

If I use a rectangle to create a button (name "ExitRight"), I specify the button action in a click script. So, to go to a web page using the click script, I enter:
window.location= " window.location="https://www.google.com/";
This works fine and if I look in the edgeAction.js file I find:
//Edge symbol: 'engine_anim'
   (function(symbolName) {  
      Symbol.bindElementAction(compId, symbolName, "${_ExitRight}", "click", function(sym, e) {
         // insert code for mouse click here
         window.location="https://www.google.com/";
      //Edge binding end
   })("mySymbol");
   //Edge symbol end
Now, what I really want to do is be able to change the destination the button takes me to by using a global variable to specify the destination:
something like...
window location = myDestination;
...where myDestination is a global created in  an external custom js document loaded in to the script library
Just putting...
myDestination = "https://www.google.com/";
...into the external js doc doesn't work. So how can I accomplish this?
Peter Small

It must be summer vacation time. Questions are not being answered and this is the third question that I've had to find out the answer for myself.
The solution I found (from a post by hemanth kumar r https://forums.adobe.com/thread/1479495) was to make variables and functions properties of AdobeEdge.
So in the external .js document a variable is declared and given a value:
AdobeEdge.myVariableName = "The variable value";
To use it in a symbol/element:
alert(AdobeEdge.myVariableName);
And a function is declared:
AdobeEdge.myFunctionName(param){...function code...} //param optional
To call these in a symbol/element:
AdobeEdge.myFunctionName(param);
Peter Small

Similar Messages

  • How can I use an old XMP file on a new set of images??

    I have an older XMP file that contains settings used to retouch some previous images in a particular way. I'd like to apply those same settings to a new set of images. How can I use that older XMP file on a new set of images in Lightroom?
    The contents of the XMP file are as follows:
    <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 4.2-c020 1.124078, Tue Sep 11 2007 23:21:40   
    ">
    <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
      <rdf:Description rdf:about=""
    xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/">
       <crs:Version>6.0</crs:Version>
       <crs:ProcessVersion>5.7</crs:ProcessVersion>
       <crs:WhiteBalance>Custom</crs:WhiteBalance>
       <crs:Temperature>4700</crs:Temperature>
       <crs:Tint>+4</crs:Tint>
       <crs:Exposure>-0.35</crs:Exposure>
       <crs:Shadows>5</crs:Shadows>
       <crs:Brightness>+50</crs:Brightness>
       <crs:Contrast>+25</crs:Contrast>
       <crs:Saturation>-8</crs:Saturation>
       <crs:Sharpness>25</crs:Sharpness>
       <crs:LuminanceSmoothing>0</crs:LuminanceSmoothing>
       <crs:ColorNoiseReduction>25</crs:ColorNoiseReduction>
       <crs:ChromaticAberrationR>0</crs:ChromaticAberrationR>
       <crs:ChromaticAberrationB>0</crs:ChromaticAberrationB>
       <crs:VignetteAmount>0</crs:VignetteAmount>
       <crs:ShadowTint>-1</crs:ShadowTint>
       <crs:RedHue>0</crs:RedHue>
       <crs:RedSaturation>0</crs:RedSaturation>
       <crs:GreenHue>0</crs:GreenHue>
       <crs:GreenSaturation>0</crs:GreenSaturation>
       <crs:BlueHue>0</crs:BlueHue>
       <crs:BlueSaturation>0</crs:BlueSaturation>
       <crs:FillLight>0</crs:FillLight>
       <crs:Vibrance>+5</crs:Vibrance>
       <crs:HighlightRecovery>24</crs:HighlightRecovery>
       <crs:Clarity>+8</crs:Clarity>
       <crs:Defringe>0</crs:Defringe>
       <crs:HueAdjustmentRed>0</crs:HueAdjustmentRed>
       <crs:HueAdjustmentOrange>0</crs:HueAdjustmentOrange>
       <crs:HueAdjustmentYellow>0</crs:HueAdjustmentYellow>
       <crs:HueAdjustmentGreen>0</crs:HueAdjustmentGreen>
       <crs:HueAdjustmentAqua>0</crs:HueAdjustmentAqua>
       <crs:HueAdjustmentBlue>0</crs:HueAdjustmentBlue>
       <crs:HueAdjustmentPurple>0</crs:HueAdjustmentPurple>
       <crs:HueAdjustmentMagenta>0</crs:HueAdjustmentMagenta>
       <crs:SaturationAdjustmentRed>0</crs:SaturationAdjustmentRed>
       <crs:SaturationAdjustmentOrange>0</crs:SaturationAdjustmentOrange>
       <crs:SaturationAdjustmentYellow>0</crs:SaturationAdjustmentYellow>
       <crs:SaturationAdjustmentGreen>0</crs:SaturationAdjustmentGreen>
       <crs:SaturationAdjustmentAqua>0</crs:SaturationAdjustmentAqua>
       <crs:SaturationAdjustmentBlue>0</crs:SaturationAdjustmentBlue>
       <crs:SaturationAdjustmentPurple>0</crs:SaturationAdjustmentPurple>
       <crs:SaturationAdjustmentMagenta>0</crs:SaturationAdjustmentMagenta>
       <crs:LuminanceAdjustmentRed>0</crs:LuminanceAdjustmentRed>
       <crs:LuminanceAdjustmentOrange>0</crs:LuminanceAdjustmentOrange>
       <crs:LuminanceAdjustmentYellow>0</crs:LuminanceAdjustmentYellow>
       <crs:LuminanceAdjustmentGreen>0</crs:LuminanceAdjustmentGreen>
       <crs:LuminanceAdjustmentAqua>0</crs:LuminanceAdjustmentAqua>
       <crs:LuminanceAdjustmentBlue>0</crs:LuminanceAdjustmentBlue>
       <crs:LuminanceAdjustmentPurple>0</crs:LuminanceAdjustmentPurple>
       <crs:LuminanceAdjustmentMagenta>0</crs:LuminanceAdjustmentMagenta>
       <crs:SplitToningShadowHue>138</crs:SplitToningShadowHue>
       <crs:SplitToningShadowSaturation>13</crs:SplitToningShadowSaturation>
       <crs:SplitToningHighlightHue>0</crs:SplitToningHighlightHue>
       <crs:SplitToningHighlightSaturation>0</crs:SplitToningHighlightSaturation>
       <crs:SplitToningBalance>0</crs:SplitToningBalance>
       <crs:ParametricShadows>0</crs:ParametricShadows>
       <crs:ParametricDarks>0</crs:ParametricDarks>
       <crs:ParametricLights>0</crs:ParametricLights>
       <crs:ParametricHighlights>0</crs:ParametricHighlights>
       <crs:ParametricShadowSplit>25</crs:ParametricShadowSplit>
       <crs:ParametricMidtoneSplit>50</crs:ParametricMidtoneSplit>
       <crs:ParametricHighlightSplit>75</crs:ParametricHighlightSplit>
       <crs:SharpenRadius>+1.0</crs:SharpenRadius>
       <crs:SharpenDetail>25</crs:SharpenDetail>
       <crs:SharpenEdgeMasking>0</crs:SharpenEdgeMasking>
       <crs:PostCropVignetteAmount>0</crs:PostCropVignetteAmount>
       <crs:GrainAmount>0</crs:GrainAmount>
       <crs:ColorNoiseReductionDetail>50</crs:ColorNoiseReductionDetail>
       <crs:ConvertToGrayscale>False</crs:ConvertToGrayscale>
       <crs:ToneCurveName>Medium Contrast</crs:ToneCurveName>
       <crs:ToneCurve>
    <rdf:Seq>
    <rdf:li>0, 0</rdf:li>
    <rdf:li>32, 22</rdf:li>
    <rdf:li>64, 56</rdf:li>
    <rdf:li>128, 128</rdf:li>
    <rdf:li>192, 196</rdf:li>
    <rdf:li>255, 255</rdf:li>
    </rdf:Seq>
       </crs:ToneCurve>
       <crs:CameraProfile>Adobe Standard</crs:CameraProfile>
       <crs:CameraProfileDigest>3DA8CE4A626CE36A1D0C55BF157793C9</crs:CameraProfileDigest>
       <crs:HasSettings>True</crs:HasSettings>
      </rdf:Description>
    </rdf:RDF>
    </x:xmpmeta>

    I’m pretty sure Adobe NEVER intended for someone to copy an XMP file from one photo to another outside of LR as a way to replicate settings.   You can make a preset from a photo, as discussed, or if you don’t want to do that, copy-paste the settings from a representative photo that you initially select to one or more new photos.  You could have a special LR folder that holds standard photos to copy/paste from.  Of course creating a Develop preset from the representative photo is the “normal” way to handle such situations, but maybe you have hundreds of different situations to copy settings from and don’t want to create presets for each one, but I’d argue that you could create a complex folder hierarchy for your presets and still have them findable without that much problem.
    As far as the mystery about why some photos show Reset and some show From Metadata, is the Process Version (down in Camera Calibration) of the photo before reading the settings the same between the two situations?  And in general, are these virgin photos newly imported into LR or have some been modified in LR, already?  Does an XMP file already exist for any of these, where that XMP is being overwritten by your external-to-LR copying?  Or do you have auto-write-XMP enabled and your hand-copied XMP is getting overwritten by LR, automatically, before you have a chance to read in anything?

  • How can i use my custom login page in a custom partner application ?

    Dear All,
    I'm trying to customize a login page displayed other than the default sso login page
    by submiting my form to the regular pl/sql procedure : "PORTAL.wwptl_login.login_url"
    but i tried to type the requested partner application url in the browser i got the sso
    login page other than my custom login page. So, How can i use my custom login page in a custom partner application ?
    Regards,
    Mohammed Amin
    [email protected]

    I cannot begin to express my level of frustration. I have been trying to use the composition widget light box display for some time now. I drag the widget to my document. The default widget has three small trigger boxes and a large area made up of a forward and backward button, a background, a text box and a frame for your image.
    My steps have been …
    I click on the little trigger box.
    I click on the frame that holds the main image.
    I go to the fill menu and browse my computer for my image and then click OK.
    IT shows up on my screen. Yay
    I attempt to continue using the next two trigger boxes provided in the widget.
    After that, I add more by clicking on the little plus sign.
    This is where all heck breaks loose.
    Every single time I attempt to add thumbnails, something messes up. When I go to preview, either not all of my main images show up, or it starts with the wrong one, or some are missing. I have looked and looked for help on this and the only thing I can find is how easy it is to create a great portfolio lightbox display.  But as we know, that only works when your thumbnails are the same image as the images in your lightbox. If you want something different, you have to use the composition wizard. I am finding it extremely difficult and confusing to customize.
    Is there an exact sequence you need to use to add images to the slideshow? I am my wits end.

  • To test how can we use the opt  'logical file name' to name the file based

    Hi Sir/Madam,
               to test how can we use the opt  'logical file name' to name the file based on the selection made in the dtp run for extracting data as flat file.

    Hi Vishali,
    In the DTP select the file location as application server and give the logical file path. The actual file and logical path can be created using transaction "FILE" and "AL11".
    Rest of the process is same as that of extraction from local file.
    Regards,
    Durgesh.

  • HOW CAN WE USE ALV-CUSTOM CONTROL

    Dear Friends,
    How can we use the custom control ALV.please provide the sample PPT or material to learn the container ALV.
    Thanks &Regards,
    Rajkumar.A

    SAP released document on ALV custom control. Pretty cool stuff..
    http://www.saphelpbykevin.com/saphelpbykevin/modules.php?name=Downloads&d_op=getit&lid=10#dl
    Edited by: Kevin Nguyen-Tu on May 14, 2008 7:44 PM

  • I have a passport external hard. previously, I used it on windows, then I changed my laptop to mac. Now, It's only read. How can I use it for copying files on it on mac? I don wanna use it on windows again.

    I have a passport external hard. previously, I used it on windows, then I changed my laptop to mac. Now, It's only read. How can I use it on my mac for copying files on my passport? I don wanna use it on windows again.

    If you're not going to use the drive on a Windows machine, you should use Disk Utility (Applications>Utilities folder) to erase the drive and format it as "Mac OS Extended (Journaled)" with a single GUID partition (default):
    Good luck,
    Clinton

  • How can I use/edit a xlxs file?

    I was sent a xcel spreadsheet as xlxs. How can I use it?

    Microsoft Excel (part of Microsoft Office)
    Numbers (Apple)
    Open Office
    Libre Office
    Any of these will open the file, the last 2 are free.

  • How can I use my log4j config file of my web project in ias?

    I used log4j in my web project. So I put a config file "log4j.properties" in my project WEB-INF/classes/.
    It works well in tomcat. But when I deploy it to ias parent by orabpel project, It didn't work know!
    I can only see my log in "$ORACLE_HOME/opmn/logs", and some message I nedd is losed, such as the class name, line,datetime, Thread and so on.
    I think the config file of my project is't work, maybe log4j use some config file of ias but me.thx
    So where is the log4j config file of ias, can i modify it ?
    Or how can I let my project use my config file not ias? Any one can help me, thx!

    If you are wondering if/how to control the log messages coming from bpel, here is the corresponding log4j config file that it uses:
    $ORACLE_HOME/bpel/domains/<DOMAIN_NAME>/config/log4j-config.xml

  • How can I have a custom output file destination for each different preset?

    Hey guys,
    I have a bunch of presets in AME but I need to have each preset export to it's own folder. How can I do that? This was a really simple thing to do in Compressor but in Media Encoder is seems like I can only specify one output file destination for the whole application in general and everything gets exported to that folder. Can anyone help me with that please?

    This is a user to user forum. It is not staffed by Adobe employees so you will not always get a direct response from Adobe.
    That being said, the output destination is not tied to the presets so this is not possible without a little extra work. You can change multiple output destinations by selecting multiple jobs and then clicking on one of the output locations to update them all. Another way to set this up would be to use watch folders.
    This is a feature request are aware of but if you would like to add your vote for it, please add that request here: Adobe - Feature Request/Bug Report Form

  • How can I use images from Jar files

    Hi,
    I would like to use the images provided by ADF if any on my UI like pencil Icon for Edit, pushpin for freeze and so on.
    How can I refer them in Image source. Custom images I have stored in my pubilc_html directory and using them.
    Do I need to unzip that to my project public_html directory ?
    Thanks,
    Satya

    Hi Satya,
    you can reference those images via the ADF resources servlet once you know the correct URL to an image.
    For example, in 10g the pencil icon is called lovi.gif, so its full URL will be
    http://host:port/context-root/adf/images/oracle/lovi.gifand you can use it in an af:objectImage like
    <af:objectImage source="/adf/images/oracle/lovi.gif" />Hope this helps,
    Patrik

  • How can I use the iCloud backup files?

    Recently I lost my passcode and I had to reset my iPhone. Some of my data is on iCloud but I don't know how to use my camera roll again in my Photos. All I want is to know how can I store my pictures and videos from iCloud to my Photos.

    Your camera roll is included in your device backup by default, unless you excluded it in settings.  However, you can't view the photos and videos (or anything else) in the backup; you can only restore it to your device.  Later this fall, iCloud Photo Library will be introduced along with iOS 8.  At that time, you can start storing and accessing your photos and videos in iCloud (see https://www.apple.com/icloud/preview/).
    If you want to store your camera roll, import it to your computer using your usb cable as explained here: iOS: Import personal photos and videos from iOS devices to your computer.

  • How can I use the custom new image size presets also when I resize an image

    Hi there,
    I have created some new image presets at various sizes, and I have saved these presets.
    They appear when I create a new image.
    How can I get these preset sizes to also appear when I re-size an image ?
    The presets for new images seems to be stored in a different way to the re-size image presets, as the re-size image presets are empty.
    Many thanks
    Mark
    Photoshop CS6

    Here is what I tried to do, I used a AutoBthreshold2 and I didn't set a value to it. The image is attached below and the template. Thank you.
    Here is the error.
    Attachments:
    pattern.vi ‏51 KB
    template.jpg ‏1 KB
    bb.jpg ‏350 KB

  • How can I use the m4p music files in e.g. Power Director

    Power Director cant read the m4p format and converting them in a readable format like wav is blocked by the itunes software. Is there any possibility to import these files in Power Director ?
    Thanks fo help.
    Manfred

    The only way to use a track purchased from the iTunes Music Store in other applications is to burn the track to an audio CD. You can then use that CD just like any other audio CD.

  • How can I use JAVA to copya file from a location to another location?

    Hello all,
    I am planning to design a web page (let say an HTML has a form that post fields to a jsp page) that allow me to select a file and then copy it to another location like what we see in email attachement.
    Is the any related java class that i can use for this matter or ready JavaBean?
    Thanks in advance
    Yahya

    jspSmartUpload
    look for package named com.jspsmart.upload.
    Very easy to use to pull a file from a person's pc up to where the form is posted to. You will need to setup your form to type to be multi-part form. Use an input type of file to generate the file browse button.

  • Application can't use mutiple custom error files?

    I have problems getting custom error files to work in a stand-alone application.
    For different components of my program, I have different custom error files:
      Micro4-errors.txt
      Isabel-errors.txt
      Triggering-errors.txt
    Running in the Labview ADE everything works fine.  But in the .EXE i get undefined errors for some of the error conditions.   It seems that only one of custom error file is being used, and the rest is ignored...
    Does that sound familiar to someone?
    Running Labview 8.5 on Windows XP.

    I know what wrong now. Seems that the files are at the wrong location.    According to http://digital.ni.com/public.nsf/allkb/6077DBEDA4F9FEE3862571F600449501  they should only be in either errors\ or user.lib\errors\.
    Funny thing....   When I place them in errors\ it still doesn't work.   In the user.lib\errors\ directory, it does work.    So it seems that the documentation & application builder don't agree on that.   

Maybe you are looking for

  • Where is my purchased music in iTunes?...they are listed but not showing in the list

    I went into iTunes to check out the new "Purchased" area and found a really helpful list of artists on the left hand side.  Each one has a number next to it which I believe is the number of songs for each artist.  When I click on many of the artists

  • Unknown error during 10.4.6 update and now machine doesn't startup

    Hi all As with many people, the update broke my machine. The update failed with an unknown error. Then no apps would start, so I rebooted, and now the PB won't start, just goes to the Apple with the spinning thingy beneath, and sits there forever. An

  • Flashing question mark with added frustration

    I have a Mac Book Pro 17inch, 6 months old. After 3 months it had to go off for a new hard drive because the original simply stopped working. I've had it back for 4 weeks and today the spinning wheel appeared, I shut down with the power key, tried to

  • KM document iviews

    hello all, I created a document iview with two links in the document .One of this link is a PDF and the other is a word document. As a usser when i click on the these links i should only be able to read it and not do any changes to these documents. I

  • Premiere Elements 2.0 UNABLE TO LOCATE COMPONENT

    I've restarted my computer several times this morning in hopes that the serious error message will go away - I go to burn a dvd and the microsoft msg pops up to report a problem. Also, when I restart my computer, I get the following message. apdproxy