Display an alert message

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

Segi
Ebase User
Posts: 649
Joined: Mon Dec 09, 2013 6:37 pm

Display an alert message

#1

Postby Segi » Mon Dec 21, 2015 6:59 pm

I have a need to pop up a simple alert message dialog in some of my applications and I need to easily do so from any application.

At the moment the way that I do it is by adding an HTML control to my form and leaving the HTML code blank then naming the control ALERT

In the form shared functions, I link to a script which I created and is common to all applications called GLOBAL_FUNCTIONS.

In GLOBAL_FUNCTIONS, I have an alert function that is defined like this:

Code: Select all

function alert(msg) {
controls.ALERT.htmlText.setText&#40;'<HTML><BODY><SCRIPT>alert&#40;"' + msg + '"&#41;;</SCRIPT></BODY></HTML>'&#41;;
&#125;
This does work but I have been running into an issue lately where after an alert is displayed and dismissed, certain actions on the form like clicking on another tab in a tab control falsely trigger this alert again.

I tried using the Java JOptionPane way but that does not work either. This line of code causes my entire application to hang.

Code: Select all

JOptionPane.showMessageDialog &#40;this, "This is a message box"&#41;;
I do realize that I can use addErrorMessage but I don't like this approach because the message text is added to the page and might not be seen by my users on a page with a lot of information.

Has anyone found a way to display a simple message control that just works ?
0 x

kotinkarwak
Ebase User
Posts: 109
Joined: Mon Sep 21, 2015 9:55 pm

#2

Postby kotinkarwak » Mon Dec 21, 2015 10:27 pm

Could something like http://fabien-d.github.io/alertify.js/ help?
0 x
ebasetech v5

Skype: mateso08
Location: Kenya

Segi
Ebase User
Posts: 649
Joined: Mon Dec 09, 2013 6:37 pm

#3

Postby Segi » Mon Dec 21, 2015 11:42 pm

I tried using it but it will not work on the server side
0 x


Who is online

Users browsing this forum: No registered users and 21 guests