<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Thanks Jacob, </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I made a mistake with that line, (I put it in to
fast, first I just hardcoded the Hidden variable in my template, and the
javascript check worked) in but fixing it doesn't fix my problem. . When I
look in the source code, it looks ok, i have a hidden <FONT
face="Times New Roman" size=3>'CUR_PPC'</FONT> but still can't access it
with </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> if ($this->isVarSet( "CUR_PPC"
))<BR>
{<BR> $CURPPC
= $this->getVar( "CUR_PPC" );</DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>The rest of the code works, when I just set the var
<FONT face="Times New Roman" size=3>$CURPPC with a value, it runs
ok.</FONT></FONT></DIV>
<DIV>Am i forgetting another thing to make sure Chameleon processes all 'my'
hidden vars?</DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Regards, Jan</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=jacob.delfos@maunsell.com
href="mailto:jacob.delfos@maunsell.com">Jacob Delfos</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=chameleon@lists.maptools.org
href="mailto:chameleon@lists.maptools.org">chameleon@lists.maptools.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, August 05, 2005 2:01
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Chameleon] problem
accessing HTML Hidden Variable</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Hi Jan,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This line:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>$szValue = " <INPUT TYPE=HIDDEN NAME=$szVariable
VALUE=\"\">";</DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>should be</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>$szValue = " <INPUT TYPE=HIDDEN NAME='".$szVariable."'
VALUE=\"\">";</DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>You actually included the variable reference as
part of the string. So $<FONT face="Times New Roman" size=3>szVariable would
not have been picked up as a variable name. Probably if you check the source
code of the page, you could see it being written out as $szVariable. I also
put some quotes.</FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>--------------------------------------------------------------------------------<BR>From:
<A
href="mailto:chameleon-bounces@lists.maptools.org">chameleon-bounces@lists.maptools.org</A>
[mailto:chameleon-bounces@lists.maptools.org] On Behalf Of Jan Jansen<BR>Sent:
5 August 2005 00:05<BR>To: <A
href="mailto:chameleon@lists.maptools.org">chameleon@lists.maptools.org</A><BR>Subject:
[Chameleon] problem accessing HTML Hidden Variable</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>Hello list,</DIV>
<DIV> </DIV>
<DIV>I have a problem accessing an HTML hidden variable in my wigdet. Please
can anyone tell me what I am missing here?</DIV>
<DIV> </DIV>
<DIV>I include the custom Hidden variable as follows (this all works
fine):</DIV>
<DIV> </DIV>
<DIV><BR> function GetHTMLHiddenVariables()<BR>
{<BR> // parent::GetHTMLHiddenVariables();</DIV>
<DIV> </DIV>
<DIV> $szVariable =
"CUR_PPC";<BR> $szValue = "
<INPUT TYPE=HIDDEN NAME=$szVariable
VALUE=\"\">";<BR>
$aReturn[$szVariable] =
$szValue;<BR> return
$aReturn;<BR> }</DIV>
<DIV> </DIV>
<DIV>*****</DIV>
<DIV> </DIV>
<DIV>a javascript function on my template fills the hidden var with a value
(this all works fine):</DIV>
<DIV> </DIV>
<DIV>******</DIV>
<DIV> </DIV>
<DIV> /**<BR> * get the javascript functions for
this widget<BR> */<BR> function
GetJavascriptFunctions()<BR>
{<BR> $aReturn =
array();<BR> $szJsFunctionName =
"zoom24ppc";<BR> $szFunction =
<<<EOT<BR>/**<BR> * {$szJsFunctionName}<BR> * called when
the ppc value is set.<BR> */<BR>function
{$szJsFunctionName}(obj)<BR>{<BR>
<BR> {$this->mszHTMLForm}.CUR_PPC.value = obj;
<BR> //alert({$this->mszHTMLForm}.CUR_PPC.value);<BR>
{$this->mszHTMLForm}.submit();<BR>
<BR>
return;<BR>}<BR>EOT;<BR>
$aReturn[$szJsFunctionName] = $szFunction;</DIV>
<DIV> </DIV>
<DIV> return
$aReturn;<BR> }</DIV>
<DIV> </DIV>
<DIV>******</DIV>
<DIV> </DIV>
<DIV>But when I try to access the variable in ParseUrl function, it fails to
read out the value:</DIV>
<DIV> </DIV>
<DIV>******<BR> function ParseURL()<BR>
{<BR> // Check if HIDDEN input is set </DIV>
<DIV> </DIV>
<DIV> $szVariable =
"CUR_PPC";<BR> if
($this->isVarSet($szVariable))<BR>
{<BR>
$CURPPC = $this->getVar( "CUR_PPC" );</DIV>
<DIV> </DIV>
<DIV>etc, etc.. What am I forgetting here? Any help would be highly
appreciated</DIV>
<DIV> </DIV>
<DIV>regards, </DIV>
<DIV> </DIV>
<DIV>Jan</FONT></DIV>
<DIV><FONT face=Arial size=2><A
href="mailto:jacob.delfos@maunsell.com"></A></FONT> </DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Chameleon mailing
list<BR>Chameleon@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/chameleon<BR>
<P>
<HR>
<P></P>No virus found in this incoming message.<BR>Checked by AVG
Anti-Virus.<BR>Version: 7.0.338 / Virus Database: 267.10.1/64 - Release Date:
8/4/2005<BR></BLOCKQUOTE></BODY></HTML>