Any idea why alert(1) does not work?
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:
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");
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
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
This doesn't work for me. I'm on the latest UEStudio 6.30.jorrasdk wrote:UltraEdit.messageBox("Can't complete process", "Process Abort");
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.
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