How to check if condition. ??

Hello

Alert (isOtherAlertPresent) / / this fake show

{if (isOtherAlertPresent)}
Alert ("Yes");
document.getElementById('alertIcon').style.visibility = "visible";
                
}
else {}
Alert ("no");
document.getElementById('alertIcon').style.visibility = 'hidden ';
                
}

If this condition is false, so it show no., but YES it shows why... ?

Where is the HTML code that contains the element with the id: alertIcon?

It is difficult to answer without this piece of code.  Your code is not also look to right.  In this case are that you assign isOtherAlertPresent what anyone?

Your code should perhaps be something like:

If (document.getElementById('alertIcon').style.visibility = 'visible') {}

Alert ("Yes");

} else {}

Alert ("no");

}

To do this you will need an element with the id in your HTML code, the value alertIcon as:

Tags: BlackBerry Developers

Similar Questions

  • How to check this condition in where clause

    WITH t1 AS
        (SELECT 1 empno, 'Sun' name,100 deptno, 'M' Gender  FROM dual
        UNION ALL
        SELECT 2,'Gun',100 deptno, 'F' FROM dual
        UNION ALL
        SELECT 3, 'Run',50,'M' FROM dual
        UNION ALL
        SELECT 4, 'Nun',75,'F' FROM dual
        UNION ALL
        SELECT 5, 'Tun',25,NULL FROM dual)
        SELECT empno,name,deptno,gender FROM t1;
    
    I want to display those dept. data which is having Genders both 'M' and 'F',

    You can use two ANDed 'exists' conditions...

    ...
    SELECT empno,name,deptno,gender FROM t1 t1o;
    where
    exists (select 'x' from t1 t1i where t1o.deptno = t1i.deptno and t1.gender = 'M')
    and
    exists (select 'x' from t1 t1i where t1o.deptno = t1i.deptno and t1.gender = 'F')
    
  • How to check the columns updated condition in after triggers

    Hello

    I create after the update trigger,
    -------------------------------------------------------------
    create or replace
    TRIGGER 'TR_U_PAYING_MEMBER '.
    AFTER UPDATE
    ON PAYING_MEMBER
    FOR EACH LINE
    DECLARE
    PRAGMA AUTONOMOUS_TRANSACTION;

    BEGIN
    IF ***(:new.active_member_status) and (: old.active_member_status) is not null THEN
    Begin
    Insert in the table of the newspaper...
    commit;
    End
    End
    ---------------------------------------------------------------

    How can I check the condition only this update of column. (********)
    I used "update (: new.active_member_status) ' but it does not work.

    NVL IF (: New.ColName, ' the NVL value)! = NVL (: old.) Column name, 'any value NVL') THEN...

    is what you are looking for.

  • How to check & & condition in the output text

    I want to check a condition like this in the output text

    < af:outputText id = "t1" value = "#{empty bean.text1 & & vacuum bean.text2? '} '. Temp1': "temp2" "/ >"

    It throws an error saying "name expected instead of.

    If you change the el expression in the source of your jsff/jspx file tab, use the el below:

    If you use the el: in the property inspector, and then it gets converted to the above expression.

    It will be useful.

  • How to check that the variable 'does not contain' value?

    Hello

    I use CP 7.0.1.237.

    We want to use the widget text box for a custom quiz and verify a response. While we understood how to check the existence of certain key words, we are not able to find a way to check that the content does NOT contain certain keywords. For example, we want to ensure that the text entered in this widget does not contain a "Transformation" and "Non-compliant.

    Is this possible at all?

    Thank you

    Anthony

    Anthony, it works perfectly. Created this conditional action with 4 decisions. I used the interaction of training text scrolling in CP8 (because now you can control the variable - which means I might have a Reset button):

    First decision:

    Second decision (the third is similar to the following)

    Fourth and final decision

    I put the variable words (v_first... v_fifth), it's a reflex I use since I shared actions that much. The variable associated to the ETB (you can now reset an empty var in CP8) is v_TextArea and the Boolean value that will decide if positive feedback (StarOK) should be shown is v_TA_OK. If you want to display a negative feedback, put this in the ELSE part of the final decision.

    FYI: it took 15 minutes, including the creation of assets and the variables and tests. Personally I would have needed more time to do it in JS, but that's just me.

    Lieve

  • How to remove Code condition on iwatch after the last update

    How to remove Code condition on iWatch after the last update?

    Hello

    On your iPhone, in the application of the watch, go to: My Watch (tab) > password - tap on disable password.

  • When im on firefox and try clicking on websites, I get several redirects, I think that its because of one of the extensions but I don't know how to check

    whenever I'm on firefox it starts randomly redirect me to other sites I think that its because of one of my extensions, but I do not know how to check or what is the origin of the problem please help

    Thank you fixed it

  • iPod Classic stopped display work.  Work displayed in iTunes.  Updated iTunes to 12.4 but did not help.  I can see how to check

    iPod Classic stopped display work.  Work displayed in iTunes.  Updated iTunes to 12.4 but did not help.  I can see how to check and uncheck "Display work" in iTunes but not how on the iPod as others have suggested.  Need to perhaps restore and recharge.

    Long ago with including works on devices was optional, and you can sometimes fix cache work on a device by not including and then add it again. This choice has long since disappeared. A complete restoration and reloading is now the only method to recreate the cache.

    TT2

  • Anyone know how to check the date of warranty until when?

    Anyone know how to check the date of warranty until when?

    https://checkcoverage.Apple.com/Jo/en/;JSESSIONID=9pJ0X9pFPJtNg3c44yDGCvk9pVpt5l QSgn4B60y4Skv1WfmnqMkF!-1840326800

  • Color LaserJet Enterprise M577: How to check OXPD 1.6 or 1.7 version

    Hello

    Could someone please tell me how to check OXPD 1.6 or 1.7 on HP M577 version?

    Thank you.

    As a general rule the futuresmart 3.8 + FW should have support 1.7.  Using the last FW will be the best option to ensure you have the latest OXPd support.

  • 14 - ac069tu: how to check HP laptop - 14-ac069tu Max RAM support

    Hello
    I would like to ask how to check Hewlett Packard laptop computer - 14-ac069tu maximum support RAM?
    It is 8 or 16 GB?

    Thank you.

    Hello

    Supports 16 GB 2 x 8

    http://h10032.www1.HP.com/CTG/manual/c04644008

    Two slots for memory module not customer-accessible/upgradable (Intel processors)

    Supported dual channel DDR3L-1600

    A memory non-customer-accessible/extendable module location (Intel Braswell)

    Single channel DDR3L-1600 supports up to 8 GB of RAM in the conƭgurations following & #29;

    ●16384-MB of total system memory (8192 × 2)

    ● total system 12288 MB memory (8192 × 1) + (4096 × 1)

    ● System total of 8192 MB memory (8192 × 1.) or (4096 x 2)

    ● total system 6144 MB memory (4096 x 1) + (2 048 × 1)

    ● System total of 4096 MB memory (4096 × 1.) or (2048 x 2)

    ● total 2048 MB system memory (2 048 × 1) supports up to 2 GB memory max on-board system (only for the Celeron processors) DDR3 1333 MHz Dual Channel Support (DDR3L - 1600 MHz to 1333 MHz DDR3L bridge)

    http://www.Kingston.com/us/memory/search/PartNumber/default.aspx?partid=693374-005

    Crucial system scanner

    Concerning

  • How to check my backup drive?

    I'm used to be able to check my backup of disk utility disk. I now use El Capitan 10.11.1 on an iMac and can't find this option. When I try to run first aid on the backup drive, she fails. Can someone tell me how to check the disk please, thank you

    Not how? are you clicking on the partition when you run first aid?

    FWIW, first aid is equivalent to check and repair disk.

  • How to check if my data is synchronized in firefox 4 beta 7 because now sync is included in firefox button

    How to check if my data is synchronized in firefox 4 beta 7 because now sync is included in firefox button.

    And also when the status bar has instead addon bar is added. What is the purpose of the bar addon?

    All fixed in Firefox 4 Final.

  • My MacBook Pro suddenly becomes very slow, accepting orders very slow how to check if the ram is working properly

    My MacBook Pro suddenly becomes very slow, accepting orders very slow how to check if the ram is working properly

    You can try this download.   Etrecheck.   https://etrecheck.com/#about

    Then publish the report as a reply in this thread.

    It will allow us to review your system without disclosing a private matter.

  • How to check the balance on the gift card itunes

    How to check the balance on the gift card itunes

    Redeem it

Maybe you are looking for