MichaelMcDonald
Posts: 640
|
Posted: 09/22/2015, 12:46 AM |
|
Add a dialog panel, set Auto on TRUE (Visible Yes)
In the before show event of the panel:
$Panel1->Visible = false;
if(CCGetSession("showpanel") == 1){
$Panel1->Visible = true;
}
if(CCGetSession("showpanel") != 1){
$Panel1->Visible = false;
}
Now you can use a GET variable or a button_click: CCSetSession("showpanel","1");
And if you want to hide the close X in the top right hand corner, put this in .css file:
.ui-dialog-titlebar-close {
visibility: hidden;
}
_________________
Central Coast, NSW, Australia.
|
|
|
eratech
Posts: 513
|
Posted: 10/01/2015, 2:10 AM |
|
Thanks Michael - I'm finding the modal and panels more useful, once you work out the right place to poke the code in.
Cheers
Eric
_________________
CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia |
|
|
MichaelMcDonald
Posts: 640
|
Posted: 10/01/2015, 5:10 PM |
|
Yeah I'm facelifting an ERP thing I put together over 8 years.
And I'm not even sure if any of those in-built trigger events are useful because they all drop on page refresh....
I usually these days use an on change or onload event to show/hide and all this together is enough for my requirements.
_________________
Central Coast, NSW, Australia.
|
|
|
MichaelMcDonald
Posts: 640
|
Posted: 10/01/2015, 5:20 PM |
|
For some reason can't post this next one so look out in your PM's.
_________________
Central Coast, NSW, Australia.
|
|
|
|