Alert / Popup like email popup

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
Bishu
User
Posts: 429

Alert / Popup like email popup

Post 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


digitalphotoworld
User
Posts: 416
Location: Nürnberg/Germany

Post by digitalphotoworld »

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


Webmaster
User
Posts: 9430

Post 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 } ?>


Bishu
User
Posts: 429

Post 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


mobhar
User
Posts: 11747

Post 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.


Webmaster
User
Posts: 9430

Post 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.


Post Reply