RE: Genero Web Front End and popups dialog box - how to ?
"Sisavanh SENGSAVANH" <[email protected]>
| Newsgroups | gmane.comp.lang.4gl.fourjs.user |
|---|---|
| Message-ID | <002101c512a4$1736efe0$6a00000a@helios> |
Hi,
This is on our request list (request #0007).
For the moment what you can do is:
- either make a OPEN WINDOW in your 4GL but this replace the entire page.
- either use a MENU with a user style. The menu will be displayed on top of your current html page.
Example:
menu "dialog" attributes (image="smiley", style="dialog", comment="Do you want quit ?")
command "yes"
let act = "yes"
on action no
let act = "no"
on action quit
let act = "quit"
end menu
The menu style becomes "gStyleDialog" class at html generation.
So you can adapt this class to display a layer on top of the current page.
You can use the following styles:
.gStyleDialog {
position: absolute;
left: 50%;
top: 10%;
right: auto;
background-color: red;
border: 2px solid buttonshadow;
border-top-color: buttonhighlight;
border-left-color: buttonhighlight;
}
.gStyleDialog .gMenuTitle {
display:block;
}
.gStyleDialog IMG {
top: 10%;
display: block;
margin: 1em 1em 0em 1em;
}
.gStyleDialog UL {
padding: 0.5em;
text-align: center;
}
.gStyleDialog LI {
display: inline;
}
Many regards,
--
____________________________________________________________
Sisavanh SENGSAVANH European Support Team
mailto:[email protected] Phone: +33 (0)3 88 18 61 24
Four J's Development Tools - Genero, It speaks your language
http://www.4js.com
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Fred Fung
Sent: Monday, February 07, 2005 3:14 PM
To: [email protected]
Subject: [fourjs-users] Genero Web Front End and popups dialog box - how to ?
Hi all,
In the Genero Web Front End, is there any way to pop up a confirmation dialog box on top of the browser window which the user is
working on ? What I would like to do is that after the user made changes to a screenful of information on the browser window (using
a default html template) but then clicked the "Cancel" button on the top toolbar, I want to pop up a dialog box to ask him/her to
confirm the cancellation. If the user picks "Yes", then the 4GL code will discard the modification. If "No", then the 4GL code will
CONTINUE INPUT.
From what I have found so far in the documentation, Web Front End only supports SDI and such a popup is not possible.
Thanks.
Fred