TheunisP
Posts: 342
|
| Posted: 01/03/2006, 11:32 AM |
|
Hi 1 and all,
a quickie, I have:
a number of main pages that get their top (title), lef & right (menus) & bottom info section from 4 include files.
what I need:
I need to set a few global variables containing color and heading info when the page first loads depending on which domain the user came from (this is done), I now need to pass this info to the main body but also the 4 include files so that the menus will customize to that domain.
The question - what method of global variable is the suggested way of doing this?
Thanks in advance
T
|
 |
 |
peterr
Posts: 5971
|
| Posted: 01/03/2006, 12:17 PM |
|
I think that the closest equivalent of global variables in Web applications is a session variable. So this may be a good choice.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
TheunisP
Posts: 342
|
| Posted: 01/03/2006, 12:26 PM |
|
Thanks P
PS. When's the next CCS dev competition? I'm hacking the most extreme system currently 
PSPS. Only started using the web reports - what a great function!
|
 |
 |
TheunisP
Posts: 342
|
| Posted: 01/03/2006, 12:54 PM |
|
P, I ran into a problem the code below works in a Label_before show event but not the page before show (it is just empty in the latter) - any ideas?
strURL = lcase(Request.servervariables("HTTP_HOST"))
Thanks
T
|
 |
 |
peterr
Posts: 5971
|
| Posted: 01/03/2006, 1:02 PM |
|
Hi T,
I'll check regarding CCS dev competition, and I expect it to happen in a month or so.
The code you provided must work any time it is executed, I think. Since there is no output in that code then I suspect that your test output doesn't work, not the above code.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
TheunisP
Posts: 342
|
| Posted: 01/03/2006, 1:10 PM |
|
P, I'm lost now check the code line below, it addresses a lable in page called header - the code is in the header_before show event, and now go not even the @@ displays:
header.Label3.value = "@@ " & lcase(Request.servervariables("HTTP_HOST"))
- can it be the sequence of how events get done?
|
 |
 |