<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
updating the /htdocs/js/dhtml*.js from CVS should do the trick. The bug
is due to the introduction of an AJAX layer in the CVS version of
CartoWeb.<br>
<br>
In fact, updating dhtmlAPI.js only should correct the problem. However,
the dhtml*.js files are coupled together; updating them all is better.<br>
<br>
Damien<br>
<br>
<br>
Mathieu Coudert wrote:
<blockquote cite="mid200607261008.k6QA8BVR009181@ns1.oieau.fr"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
  <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {page:Section1;}
-->
  </style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
  <div class="Section1">
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB">In fact I
got a JavaScript error when I select a
layer : <o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><i><font color="green" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: green; font-style: italic;"
 lang="EN-GB">Erreur&nbsp;:
CartoWeb is not defined<o:p></o:p></span></font></i></p>
  <p class="MsoNormal"><i><font color="green" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: green; font-style: italic;"
 lang="EN-GB">Fichier
source&nbsp;:
<a class="moz-txt-link-freetext" href="http://dev.sandre.eaufrance.fr/gis/ogcviewer_dev/cartoweb3/htdocs/blank.htm">http://dev.sandre.eaufrance.fr/gis/ogcviewer_dev/cartoweb3/htdocs/blank.htm</a><o:p></o:p></span></font></i></p>
  <p class="MsoNormal"><i><font color="green" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: green; font-style: italic;">Ligne&nbsp;:
2<o:p></o:p></span></font></i></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal" style=""><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB">It comes
from <i><font color="navy"><span
 style="color: navy; font-style: italic;">layers.tpl</span></font></i>
in <i><font color="navy"><span style="color: navy; font-style: italic;">cartoweb3/coreplugins/layers/templates/layers.tpl</span></font></i>
in line 15. (</span></font><i><font color="green" face="Courier New"
 size="1"><span
 style="font-size: 8pt; font-family: &quot;Courier New&quot;; color: green; font-style: italic;"
 lang="EN-GB">onclick="<a class="moz-txt-link-freetext" href="javascript:updateChecked(">javascript:updateChecked(</a>'{$element.nodeId}');<o:p></o:p></span></font></i></p>
  <p class="MsoNormal"><i><font color="green" face="Courier New"
 size="1"><span
 style="font-size: 8pt; font-family: &quot;Courier New&quot;; color: green; font-style: italic;"
 lang="EN-GB">&nbsp;&nbsp;&nbsp; CartoWeb.trigger('Layers.LayerShowHide');</span></font></i><font
 face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB">)<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB">So, the
layer is not selected and then, the parameter
layers in $request is empty&#8230;.<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Any idea
about that?<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Thanks<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Mathieu<o:p></o:p></span></font></p>
  <div>
  <div class="MsoNormal" style="text-align: center;" align="center"><font
 face="Times New Roman" size="3"><span style="font-size: 12pt;">
  <hr tabindex="-1" align="center" size="2" width="100%"></span></font></div>
  <p class="MsoNormal"><b><font face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">De&nbsp;:</span></font></b><font
 face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma;">
<a class="moz-txt-link-abbreviated" href="mailto:cartoweb-users-bounces@lists.maptools.org">cartoweb-users-bounces@lists.maptools.org</a>
[<a class="moz-txt-link-freetext" href="mailto:cartoweb-users-bounces@lists.maptools.org">mailto:cartoweb-users-bounces@lists.maptools.org</a>] <b><span
 style="font-weight: bold;">De la part de</span></b> Mathieu Coudert<br>
  <b><span style="font-weight: bold;">Envoy&eacute;&nbsp;:</span></b> mercredi 26
juillet 2006 10:34<br>
  <b><span style="font-weight: bold;">&Agrave;&nbsp;:</span></b>
<a class="moz-txt-link-abbreviated" href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</a><br>
  <b><span style="font-weight: bold;">Objet&nbsp;:</span></b>
[Cartoweb-users]
Different versions of CW and Layers Plugin </span></font><o:p></o:p></p>
  </div>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Hi list,<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Still
working with two different versions (CVS
version and &#8220;~3.2.0&#8221; version like I said in preceding email) I have
a problem with Layers Plugin.<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB">In the CVS
version, when I choose a layer in my tree
(list of layers displayed in a pop-up) there&#8217;s nothing in the <i><font
 color="green"><span style="color: green; font-style: italic;">request</span></font></i>
var (when I try <i><span style="font-style: italic;">to <font
 color="green"><span style="color: green;">print_r ($request)</span></font></span></i>
the parameter <i><font color="green"><span
 style="color: green; font-style: italic;">layers</span></font></i>
is absent, so it is empty&#8230;...the same behaviour for <i><font
 color="green"><span style="color: green; font-style: italic;">openNodes</span></font></i>
)<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Any idea?<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Do I need to
modify something to return my selected
layers in the CVS version?<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Thanks for
your help,<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Mathieu<o:p></o:p></span></font></p>
  </div>
  <br>
-- <br>
Ce message a ete verifie par <a href="http://www.mailscanner.info/"><b>MailScanner</b></a>
pour des virus ou des polluriels et rien de suspect n'a ete trouve.
  <div>&nbsp;</div>
Les donnees et renseignements contenus dans ce message sont personnels,
confidentiels et privis.Toute publication, utilisation ou diffusion,
meme partielle, doit etre autorisee.
  <div>&nbsp;</div>
Any data and information contained in this electronic mail is personal,
confidential and private. Any total or partial publication, use or
distribution must be authorized.
  <br>
-- <br>
Ce message a ete verifie par <a href="http://www.mailscanner.info/"><b>MailScanner</b></a>
pour des virus ou des polluriels et rien de suspect n'a ete trouve.
  <div>&nbsp;</div>
Les donnees et renseignements contenus dans ce message sont personnels,
confidentiels et priv&eacute;s.Toute publication, utilisation ou diffusion,
meme partielle, doit etre autorisee.
  <div>&nbsp;</div>
Any data and information contained in this electronic mail is personal,
confidential and private. Any total or partial publication, use or
distribution must be authorized.
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Cartoweb-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cartoweb-users@lists.maptools.org">Cartoweb-users@lists.maptools.org</a>
<a class="moz-txt-link-freetext" href="http://lists.maptools.org/mailman/listinfo/cartoweb-users">http://lists.maptools.org/mailman/listinfo/cartoweb-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>