[Chameleon] Problems with Query Widget Customizing Results
Jason Fournier
jfournier at dmsolutions.ca
Tue Aug 23 21:07:39 EDT 2005
Sašo,
Do you have more than one form in your calling template? If so you will
have to reference the proper form (ie, the one that contains sid).
document.forms[0].sid.value should exist if you only have one form. If
you look in the source of the Chameleon application do you see the sid
hidden variable?
Jay
Sašo Celarc wrote:
> Hi !
>
>
>
> I followed the instructions in
> http://chameleon-tiki.maptools.org/tiki-index.php?page=QueryWidgetCustomizingResults
> but I get the message »Your session is invalid or has expired.« in the
> query results popup window.
>
>
>
> I echoed the variables and the value:
>
> document.forms[0].sid.value
>
> in expression:
>
> var url = 'query.php?x=' + nX + '&y=' + nY + '&sid=' +
> document.forms[0].sid.value;
>
> has value »undefined«,
>
> so I call the url:
>
> window.open("query.php?x=321&y=305&sid=undefined", null, "width=500,
> height=400, directories=no, location=no, menubar=no, scrollbars=no,
> status=no, toolbar=no, resizable=no").
>
>
>
> I think, that this »undefined« causes the »Your session is invalid or
> has expired.« error. The default QueryWidget works OK.
>
>
>
> Where is the problem ?
>
>
>
> Regards,
>
> Saso Celarc
>
>
>
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.338 / Virus Database: 267.10.14/79 - Release Date: 22.8.2005
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
--
________________________
Jason Fournier
DM Solutions Group Inc.
jfournier at dmsolutions.ca
www.dmsolutions.ca
613.565.5056 x18
More information about the Chameleon
mailing list