What's not in this JavaScript code?

Untitled.png

Please fix this error.

var Exp = "totalexperience";

var Sup = "totalsup";

var f = this.getField (Exp) .value;

var a = this.getField (Sup) .value;

if(f==0) | (a == 0)

{

Event.Value = f + a;

}

Of other if(f!=0) | (a! = 0)

{

E, f = Event.Value * 100;

}

Change these two lines to:

If (f == 0 | a == 0)

ElseIf (f! = 0: a! = 0)

Note that it is something else, no one else.

Tags: Acrobat

Similar Questions

  • Adding an event does not add the JavaScript code to the code automatically window

    I'm learning to animate Adobe classroom in a book (among others).  The lesson says to add an event to the timeline.  I click the icon "open stock" ({}) to the beginning of the row on the timeline for the item that I want to add an action.  The edit window appears.  I click on "mouseover", and only a comment is added to the window instead of the Javascript code.  I have to enter the code manually.  Animate is no longer does this in the code window actions?

    Note that the second stage ("choose a target") is required to automatically add the code.

    You must select an object, and then click Enter.

  • Is there something wrong with this JavaScript code? (simple formula and if / or statement)

    var nNumber = NumericField1.rawValue - NumericField2.rawValue;
    
    if (nNumber > 2 || NumericField3.rawValue > 5) {
         TextField1.presence = "visible";
         TextField2.presence = "hidden";
    }
    

    I get can't get this code to work. This code should work in terms of formula, symbols, etc.?

    Hello

    Script seems correct. What's the language set on JavaScript? Is the form recorded a dynamic XML form in the save - in dialogue?

    Niall

  • What classes to import this external code?

    Hello

    I was wondering what classes I need to import into my outside like crowd to run the following code:

    public static var loader: Loader = newLoader();
    loader.contentLoaderInfo.addEventListener (Event.INIT, fontLoaded);
    Loader.Load (new URLRequest ("font.swf"));

    See you soon

    Shaun

    import flash.display.Loader;

  • Need help adjusting Javascript code in Adobe Edge (Countdown)

    Hello

    Im a beginner when it comes to working with Javascript and Adobe Edge and need a bit of help with setting of javascript code to work with Adobe Edge. A friend of mine helped me to make this javascript code: Edit fiddle - JSFiddle
    Its a countdown simple countdown to a certain time at a certain date. What I want to do is add this code as a trigger on a text called "countdown" element (inside a symbol called "count").

    I tried to do what the code is, but it does not work. Someone at - it suggestions?

    Thank you!

    MVH,

    Paul Hermans

    You have a private message with a countdown on my own model.

    I gave your link (Edit fiddle - JSFiddle): code ==> free free numbers.

  • Popup of console log in Chrome for the Javascript code for the Adf application

    Hello

    I use JDev 11.1.1.7.

    In our application, I used the same code as in the example (http://www.oracle.com/technetwork/testcontent/27-long-running-queries-169166.pdf) adf code corner next.

    I used this code to my command button on my page.

    The problem is, when you run the application in the browser Chrome, clicking this command button displays a warning for javascript popup (Please find below printscreen).js_error_popup.png

    The application is not break and continues to work even if this popup comes.

    I tried with other browsers, it is works well and do not show this javascript error.

    You can all help to suggest? Is there something wrong with the javascript code? Thank you.

    Best regards

    cmoster

    Hi Timo,

    The problem is now resolved.

    We have corrected by adding these params of context in the web.xml file to work around the problem.

        org.apache.myfaces.trinidad.DEBUG_JAVASCRIPT

        fake

     

     

        oracle.adf.view.rich.profiler.ENABLED

        fake

     

     

        oracle.adf.view.rich.LOGGER_LEVEL

        OFF

     

     

        oracle.adfinternal.view.faces.DISABLE_CONTENT_COMPRESSION

        fake

     

    Best regards

    cmoster

  • I have this javascript countdown 24 hours on 24, but I need to remove something from him and I don't know how

    I found this javascript code that is perfect for what I want, but it displays the current date on the countdown. Can someone help me to remove this date or hide it some how?

    Thank you

    < head >
    < script type = "text/javascript" >
    function ShowTimes() {}
    var now = new Date();
    var h = 23 - now.getHours ();
    var minutes = 59 - now.getMinutes ();
    var s = 59 - now.getSeconds ();
    var str = ";
    Str = Now.ToString ();
    Str += "< br > 0 days" + hrs + "hours" + minutes + "minutes" + seconds + "seconds."
    document.getElementById('countdownToMidnight').innerHTML = str;
    }
    / * var _cntDown;
    function StopTimes() {}
    clearInterval (_cntDown);
    }*/

    < /script >
    < / head >

    < body onload = "_cntDown = setInterval ('ShowTimes ()', 1000)" >
    < div id = "countdownToMidnight" > < / div >
    <!-< onclick = "StopTimes () the button" > stop < / button >->
    < / body >

    Here you go

  • I would like to know why Windows does not know what it is to have the codes mean

    More recently, Windows jumped this error code:

    Windows Update error 80070436

    Windows on my computer, or all of the online database has any idea.

    Remember, it is the rule, not the exception.

    I want to know:

    (1) why he gave me a code?

    (2) why he gave me a code he himself has no idea of what it refers to?

    (3) how is it possible to find something so special as a code 8-digit that makes no sense or reference?

    (4) why this is the case almost every time?

    (5) is it some kind of joke or game who has the power of Microsoft considers it necessary to continually unfold over and over again?

    In conclusion, I would have preferred that Windows just said "it didn't work and we don't, can't or won't give a reason or explanation.

    Which means that your error.

    Services and drivers are both in the Services database. You trying to add another named, but a same named a already exists.

    Event Viewer may have more information. The newspaper should have more information.

    More details about the error

    To decode 0 x 80070002. X 0 means that it is a hexadecimal number, 8 , error, the first 7 means it a windows error and the rest of Eastern 2, the number, the Windows error.
     
    To search for the error message we need to decimal format. Start the Calculator (Start - All Programs - Accessories - calculator) and choose the menu display - scientific, then the menu display - Hex. Enter 2 Menu display - decimal. It will say 2.
     
    Start an command prompt (Start - All Programs - Accessories - command prompt) and type
     
    net helpmsg 2
     
    and it will say
     
    The system cannot find the specified file.
     
    Use Notepad to search for FATAL and and the specific error code (for example, 80070002) in C:\Windows\Windowsupdate.log.

    Also check the cbs.log newspaper. You must follow these steps. You should check at the beginning and end of the troubleshooting. To make life easy, empty the file first, do the update, read the file. Otherwise, there will be tens of thousands of lines to read.

    Look for the lines saying error or failed.

    Run Microsoft Fixit

    Microsoft has a range of automatic programs to solve common problems. To see Windows Update problems

    http://support.Microsoft.com/mats/windows_update/en-us

    For the visit of the list the most comprehensive

    http://support.Microsoft.com/FixIt/en-us

    When you choose to download, choose the option to run on another computer. You can then save it to a folder on your hard drive. Open the folder, open the folder fix this laptop and run Run Fix It. It will contain all 27 FixIt.

    To view the results click on start - all programs - accessories - right click on command prompt and choose Run as administrator. Type (or copy the below line and a line empty below and right click in the command prompt window and choose Paste).

    del %SYSTEMROOT%\Logs\CBS\CBS.log

    Install the update

    Notepad %SYSTEMROOT%\Logs\CBS\CBS.log

    Which helps with Windows Update.

    The system update tool

    Also run the system update readiness tool

    For 32-bit Windows

    http://www.Microsoft.com/en-US/Download/details.aspx?ID=504

    For 64-bit Windows

    http://www.Microsoft.com/en-US/Download/details.aspx?ID=1540

    To view the results click on start - all programs - accessories - right click on command prompt and choose Run as administrator. Type (or copy the below line and a line empty below and right click in the command prompt window and choose Paste).

    Notepad %SYSTEMROOT%\Logs\CBS\CheckSUR.log

    Repair and defragment the database

    Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).
     
    SC stop wuauserv
     
    stop bits SC
     
     
    SC stop cryptsvc

    Esentutl.exe/p/o c:\Windows\SoftwareDistribution\DataStore\DataStore.edb

    Esentutl.exe /d c:\Windows\SoftwareDistribution\DataStore\DataStore.edb

    Esentutl.exe/p/o c:\Windows\System32\catroot2\{127D0A1D-4EF2-11D1-8608-00C04FC295EE}\catdb

    Esentutl.exe /d c:\Windows\System32\catroot2\{127D0A1D-4EF2-11D1-8608-00C04FC295EE}\catdb

    Esentutl.exe/p/o c:\Windows\System32\catroot2\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\catdb

    Esentutl.exe /d c:\Windows\System32\catroot2\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\catdb

     
    SC start cryptsvc
     

    SC start bits
     
    SC start wuauserv
     
    Difficulty of the Service
     
     
    Click Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type Regedit menu and file - import , import the wuauserv_Vista_32.reg.
     
    Reset
     
    Click Start - All Programs - Accessories - right on command prompt and choose Run as administrator. Type (or copy the lines below and a blank line under and right click in the command prompt window and select Paste). This will start the dependent services in the correct order.
     
    If you get an error message you can copy by do right click in the window, choose the brand, by selecting the text and press Efriendship.
     
    SC start DCOMLaunch
    SC start RpcSs
    start wuauserv sc config = auto
    SC start wuauserv
    departure from trustedinstaller sc config = request
    SC start trustedinstaller
    SC config COMSysApp start = demand
    SC start COMSysApp
    SC config BITS start = demand
    SC start BITS
    start slsvc sc config = auto
    SC start slsvc
    SC config start = auto EventLog
    SC start EventLog


    --
    C:\Windows\Windowsupdate.log
    C:\Windows\Windowsupdate.log
    C:\Windows\Windowsupdate.log
    C:\Windows\Windowsupdate.log
  • "Can not open AsIO.sys (2)" I get this message when I log in after a reboot. I have search for the file, but can't find it with the research or the command prompt. What do do in this file, and can be created and put into the appropriate folder?

    "Can not open AsIO.sys (2)" I get this message when I log in after a reboot.  I have search for the file, but can't find it with the research or the command prompt.  What do do in this file, and can be created and put into the appropriate folder?

    Hi Jack,

    This driver belongs to AsIO.sys Asus Probe. Try to uninstall Asus Probe and if you need, install again. If this does not help, uninstall Asus Probe and other tools of control such as Speedfan. Open the registry (regedit.exe) editor and search for AsIO.sys and remove all the entries that you can find.

    André
    "A programmer is just a tool that converts the caffeine in code" Deputy CLIP - http://www.winvistaside.de/

  • I bought the plan of creative photography of Cloud (one year), were charged, but have not received your activation codes so I can not use Ligthroom or Photoshop. What should do? I use a mac

    I bought the plan of creative photography of Cloud (one year), were charged, but have not received your activation codes so I can not use Ligthroom or Photoshop. What should do?

    I use a mac

    Your subscription to cloud shows correctly on your account page?

    If you have more than one email, you will be sure that you use the right Adobe ID?

    https://www.adobe.com/account.html for subscriptions on your page from Adobe

    .

    If Yes

    Some general information for a subscription of cloud

    Cloud programs don't use serial... numbers you, connect you to your cloud account paying to download & install & activate... you may need to sign out of the cloud and restart your computer and log into the cloud for things to work

    Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud

    -Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html

    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html

    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html

    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html

    -ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp

    -http://helpx.adobe.com/creative-cloud/kb/license-this-software.html

    .

    If no

    This is an open forum, Adobe support... you need Adobe personnel to help

    Adobe contact information - http://helpx.adobe.com/contact.html

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    -Select your product and what you need help with

    -Click on the blue box "still need help? Contact us. "

  • HTML5 reference code works is not inside the Javascript on DW CS6 function

    Hello

    I'm working on Dreamweaver CS6 and indicators of code does not work as expected when you write Javascript code.

    The minute that I insert a code hinting feature no longer appears the HTML5 elements.

    dw-with-function.gif

    Should I remove the function then him reappears indicators of HTML5.

    dw-no-function.gif

    How can I get the code referring to work when I add in the function?

    Thank you

    Herman

    Thank you for reporting this issue, Herman!

    We have recorded a bug for it and you're tracking internally.

  • This card was purchased in a country that does not match your identification code Adobe you can try to connect to

    This card was purchased in a country that does not match your identification code Adobe you can try to connect with a identifying different Adobe or contact us if you need assistance.


    Hi Debbyw01,

    Unfortunately, we cannot change the country associated with an Adobe ID but have the following options:

    -You can create a new Adobe ID with the country using another email address

    -If you prefer to use your current email address please contact Adobe http://helpx.adobe.com/in/contact.html who can help you

    Make a change to your existing ID which will allow you to create a new ID with the original e-mail address.

    Please let us know what you prefer.

    http://forums.Adobe.com/thread/988634?TSTART=0

    Kind regards

    Baudier

  • The JavaScript code does not work

    Thank you for this beautiful prduct comfortable, but when I try it in any site uses javascript code does not work.

    Open this link: http://view.jquerymobile.com/1.3.1/demos/widgets/panels/ and try clicking the buttons (nothing will happen).

    Yes. To be clear, you must click on the device to see work.

  • Pair cant my apple wireless keyboard for my new tv4 apple... He will not be the Apple TV and not ask the pairing code enter... Anyone know what I need to do?

    Pair cant my apple wireless keyboard for my new tv4 apple... He will not be the Apple TV and not ask the pairing code enter... Anyone know what I need to do?

    The ATV4 does not work with any wireless keyboard. The only alternative to the built-in function 'keyboard' is the iOS app.

  • Cannot download updates to silverlight, can not cancel this part of the old C:\temp\ext18866\ program what can I do?

    Cannot download updates to silverlight, can not cancel this part of the old C:\temp\ext18866\ program what can I do?

    Please post here for assistance: http://forums.silverlight.net/forums/13.aspx ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

Maybe you are looking for

  • When I send a message, it seems to go OK, but Thunderbird then hangs up trying to copy the message in the sent folder. How do I overcome this?

    A pop-up window headed ' Send Message - Re:...» "reports status as"Copy of record Message. "" "... »with a progress bar that is large and green, but it never ends. If I abandon the process and close Thunderbird, when I open it the message is not in t

  • Change your Podcast Description and Image

    I've been podcasting for only less than a year. The show has grown and evolved, and I really want to update the description and image to better reflect and explain the show. The current description is super super short. I was told to change the descr

  • alignment of the bullets for doc epub

    Hello I'm trying to format my paper for the publication of the ebook. I use Pages and specifically the ebook eBook template in Pages. I formatted and re-formatted in the last days to try to get my chips to align properly when I export the doc Pages i

  • graph of a few blocks after a specific location

    Hi I'm new to view lab and boasts a location on a chart to a number on the xaxis in the waveform graph. I want graphic 2 blocks of data after my desired location how can i go by doing this. the location of the original is in time... but not in real t

  • Greatly reduced after standby download speed

    About 2-3 years ago my dropped download speed of about 14 Mbps to 5 Mbps after getting out of the mode standby. I am running xp with all updates and everything works ok - cpu temp is ok, HD temp is ok and works well and motherboard temp is ok, all ti