0 Replies Latest reply on Nov 10, 2010 10:24 AM by juresti

    Alert Box code not working?

    juresti

      The Box comes up fine when buttons are clicked nothing happens, does not go to URL etc Any help is appreciated.

       

      Alert.show("This is another alert message. Click the YES button to download the source code, BTW that red thingy is the icon. ;-)", "The Title Here", Alert.OK |

      Alert.CANCEL | Alert.YES | Alert.NO, this, aClicklHandler, "anIcon");

       

      //what happens when the buttons on the alert are clicked
      aClicklHandler = function (whatWasClicked) {
          switch (whatWasClicked.detail) {
              case Alert.CANCEL:
                  display_txt.text = "The CANCEL button was clicked";
                  break;
              case Alert.YES:
                  display_txt.text = "The YES button was clicked";
                  getURL ("http://opensource.brajeshwar.com/downloads/alertExample/alertExample.zip", "_self");
                  break;
              case Alert.NO:
                  display_txt.text = "The NO button was clicked";
                  break;
              default :
                  display_txt.text = "The OK button was clicked";
          }
      };