Page 1 of 1

Alert / Popup like email popup

Posted: Tue Aug 13, 2013 11:10 am
by Bishu

I have a variable at List_Page->Page_DataRendered
from here I would like to Popup a small window to display a alert message.

I like the popup design just like the export email popup.

thanks in advance


Re: Alert / POPUP like email popup

Posted: Tue Aug 13, 2013 1:05 pm
by digitalphotoworld

Is it possible to do this conditional? I need this only on some special tables/views.


Re: Alert / POPUP like email popup

Posted: Tue Aug 13, 2013 3:54 pm
by Webmaster

You can use Startup Script (see Server Events and Client Scripts in the help file), e.g.

<?php if (...Your Condition..) { ?>
ew_ShowMessage("Your Message");
<?php } ?>


Re: Alert / POPUP like email popup

Posted: Tue Aug 13, 2013 4:10 pm
by Bishu

Thanks for your reply I hope there is a little confusion in my question.
I want to write a command to popup a message
as
function Page_DataRendered(&$footer) {

if (TRUE) {
echo "<script>alert('this is my popup.')</script>";
}

}

It gives me a simple popup.
how can i make its design similar with the popup giving by phpmaker


Re: Alert / POPUP like email popup

Posted: Tue Aug 13, 2013 6:14 pm
by mobhar

Bishu wrote:
It gives me a simple popup.
how can i make its design similar with the popup giving by phpmaker

In order to display the look and feel just like the built-in popup message that provided by PHPMaker, then make sure you have enabled "User JavaScript popup message" from "Tools" -> "Advanced Settings" of PHPMaker.


Re: Alert / POPUP like email popup

Posted: Tue Aug 13, 2013 6:49 pm
by Webmaster
  1. Since you are using JavaScript, it is better to use client side event directly than using server side event to output JavaScript.
  2. To use Bootstrap modal message, Webmaster wrote:

ew_ShowMessage("Your Message");
Note: "Use JavaScript popup message" uses ew_ShowMessage(), but NOT vice versa.