[Chameleon] How to pass forward user specific extents?
William A. Bronsema
wbronsema at dmsolutions.ca
Tue Aug 24 12:26:40 EDT 2004
Ken,
Add a hidden input tag like:
<input type="hidden" name="myLoadCheck" value='1'>
Use php to check the form variables that are passed over the URL. On
the initial load the form variable "myLoadCheck" will not be set so you
know it is the first load. Subsequent page load will have the variable set.
something like:
$bNotFirstLoad = ( isset( $_GET['myLoadCheck'] ) ||
isset( $_POST['myLoadCheck'] ) );
I haven't tried it, but something like this should work.
Regards,
Bill
Ken Sanderson wrote:
> Thanks Paul and Bill.
>
> I used Bill's method of:
> $oApp->moMapSession->oMap->setextent
>
> As this was creating an unknown object error:
> $this->moMapObject->oMap->extent->setextent
>
> How do you suggest checking for first load? I had assumed that the
> script in PHTML only was read on the original load.
>
> Ken
>
--
William A. Bronsema, C.E.T.
Applications Developer,
DM Solutions Group Inc.
e-mail: wbronsema at dmsolutions.ca
Web : http://www.dmsolutions.ca
Phone : (613) 565-5056 ext.25
Fax : (613) 565-0925
________________________________________________
More information about the Chameleon
mailing list