Is alert(x) not working?

Is alert(x) not working?

29
Basic UserBasic User
29

    Jun 21, 2007#1

    Any idea why alert(1) does not work?

    262
    MasterMaster
    262

      Jun 21, 2007#2

      The alert() method is part of the HTML DOM (document object model) of javascript. This is not a part of the javascript core, and thus not available to scripting in UltraEdit.

      Instead in UltraEdit 13.10 the messagebox was introduced:
      UE13.10 help wrote:messageBox(Msg,Title);

      Msg= Message text in quotes ("")
      Title: Title text in quotes ("") (optional)

      Presents message dialog with "OK" button. Example:
      UltraEdit.messageBox("Can't complete process", "Process Abort");

      16
      Basic UserBasic User
      16

        Jun 21, 2007#3

        because alert is also en extension to Core Javascript, which happens to work in most browsers, but not in many other js supporting apps.

        Core global functions are:

        eval
        isFinite
        isNaN
        parseFloat
        parseInt

        don't forget that in their ever lasting attempts to be top of the browsermarkets, vendors have added many new extensions to javascript, but they are not really part of the language. And of course that is also how javascript was meant to be used. A core set of functionality that can be extended by the hosting application

        29
        Basic UserBasic User
        29

          Jun 21, 2007#4

          jorrasdk wrote:UltraEdit.messageBox("Can't complete process", "Process Abort");
          This doesn't work for me. I'm on the latest UEStudio 6.30.

          6,680583
          Grand MasterGrand Master
          6,680583

            Jun 21, 2007#5

            UEStudio v6.30 and UltraEdit v13.10 have the identical scripting engine.

            I started my UEStudio v6.30, created a new ASCII DOS file, pasted the line

            UltraEdit.messageBox("Can't complete process", "Process Abort");

            saved the file as Test.js and clicked in menu Scripting on item Run Active Script and I see the message box with correct title and message text.
            Best regards from an UC/UE/UES for Windows user from Austria