Actually, my project contains no bug (well, I hope so!) ; it works fine when I call it directly in Firefox. The problem occurs whith the function affiche_carte described below, in my website page.<br>Something must be wrong with the way the data are loaded and the ajax function...<br> What do you think?<br> <br> thanks <br> Guillaume<br><b><i><br> </i></b><font color="#c00000" face="Courier"><span style="font-family: Courier; color: rgb(192, 0, 0);"><script language="JavaScript" type="text/javascript"></span></font><font face="Courier"><span style="font-family: Courier;"><br> <br> <b><i><span style="font-weight: bold; font-style: italic;">function</span></i></b> affiche_carte<b><span style="font-weight: bold;">(</span></b>paramDepart, paramArrivee <b><span style="font-weight: bold;">) {</span></b><br> <b><i><span style="font-weight: bold; font-style: italic;">var</span></i></b> aleatoire ;<br> aleatoire=Math.random<b><span style="font-weight:
bold;">()</span></b> ;<br> ajax = <b><i><span style="font-weight: bold; font-style: italic;">new</span></i></b> Ajax.Updater<b><span style="font-weight: bold;">(</span></b><br> 'letrajet', <i><font color="#4040ff"><span style="color: rgb(64, 64, 255); font-style: italic;">// DIV id must be declared before the method was called</span></font></i><br> 'test.php', <br> <b><span style="font-weight: bold;">{</span></b> <i><font color="#4040ff"><span style="color: rgb(64, 64, 255); font-style: italic;">// options</span></font></i><br>
method:'get' <br> <b><span style="font-weight: bold;">})</span></b>;<br> mondoc = document.getElementById<b><span style="font-weight: bold;">(</span></b>'letrajet'<b><span style="font-weight: bold;">)</span></b>; <br> mondoc.innerHTML = "Recherche en cours...";<br> mondoc.style.visibility = 'visible'; <br> <br> <b><span style="font-weight: bold;">}</span></b><br> <font color="#c00000"><span style="color: rgb(192, 0, 0);"></script><br> </span></font></span></font><br> <b><i><br> Mathieu Coudert <m.coudert@oieau.fr></i></b> a écrit :<blockquote class="replbq"
style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <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:Courier; panose-1:2 7 4 9 2 2 5 2 4 4;} @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:blue; text-decoration:underline;} p {mso-margin-top-alt:auto; margin-right:0cm;
mso-margin-bottom-alt:auto; margin-left:0cm; font-size:12.0pt; font-family:"Times New Roman";} 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"> <div class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Hi guillaume,<o:p></o:p></span></font></div> <div class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></div> <div class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">If you are using Firefox, try to use the Firebug extension in order to debug your project…<o:p></o:p></span></font></div> <div class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">If you are already using it what is the error message?<o:p></o:p></span></font></div> <div class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB"><o:p> </o:p></span></font></div> <div class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">Mathieu<o:p></o:p></span></font></div> <div class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB"><o:p> </o:p></span></font></div> <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> <div class="MsoNormal"><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">De :</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"> cartoweb-users-bounces@lists.maptools.org [mailto:cartoweb-users-bounces@lists.maptools.org] <b><span style="font-weight: bold;">De la part de</span></b> guillaume champlong<br> <b><span style="font-weight: bold;">Envoyé :</span></b> lundi 11 septembre 2006 14:58<br> <b><span style="font-weight: bold;">À :</span></b> cartoweb-users@lists.maptools.org<br> <b><span style="font-weight: bold;">Objet :</span></b> [Cartoweb-users] integration into a website</span></font><o:p></o:p></div> </div> <div
class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><o:p> </o:p></span></font></div> <div class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">hi all,<br> <br> I am trying to install my cartoweb project into a website with Ajax, but my map is not displayed : I have the tools, the coordinates, etc, but instead of the map, it's only written "Loading message" but it stops there, the map never comes.<br> <br> here's my code :<br> <br> </span></font><font color="#c00000" face="Courier"><span style="font-family: Courier; color: rgb(192, 0, 0);"><script language="JavaScript" type="text/javascript"></span></font><font face="Courier"><span style="font-family: Courier;"><br> <br> <b><i><span style="font-weight: bold; font-style: italic;">function</span></i></b> affiche_carte<b><span style="font-weight: bold;">(</span></b>paramDepart, paramArrivee <b><span style="font-weight: bold;">)
{</span></b><br> <b><i><span style="font-weight: bold; font-style: italic;">var</span></i></b> aleatoire ;<br> aleatoire=Math.random<b><span style="font-weight: bold;">()</span></b> ;<br> ajax = <b><i><span style="font-weight: bold; font-style: italic;">new</span></i></b> Ajax.Updater<b><span style="font-weight: bold;">(</span></b><br> 'letrajet', <i><font color="#4040ff"><span style="color: rgb(64, 64, 255); font-style: italic;">// DIV id must be declared before the method was called</span></font></i><br> 'test.php', <br> <b><span style="font-weight: bold;">{</span></b> <i><font color="#4040ff"><span style="color: rgb(64, 64, 255); font-style:
italic;">// options</span></font></i><br> method:'get' <br> <b><span style="font-weight: bold;">})</span></b>;<br> mondoc = document.getElementById<b><span style="font-weight: bold;">(</span></b>'letrajet'<b><span style="font-weight: bold;">)</span></b>; <br> mondoc.innerHTML = "Recherche en cours...";<br> mondoc.style.visibility = 'visible'; <br> <br> <b><span style="font-weight: bold;">}</span></b><br> <font color="#c00000"><span style="color: rgb(192, 0, 0);"></script><br> </span></font></span></font><br> <br> My
test.php page is something like:<br> <br> <?<br> <b><font color="blue"><span style="color: blue; font-weight: bold;">echo</span></font></b> file.getContent('path/to/my_project.php?param1=X&param2=Y&param3=Z');<br> ?><br> <br> any idea?<br> thanks<br> <br> Guillaume<o:p></o:p></div> <div><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> <o:p></o:p></span></font></div> <div class="MsoNormal" style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> <hr align="center" size="1" width="100%"> </span></font></div> <div class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. <a href="http://fr.rd.yahoo.com/evt=42054/*http:/fr.answers.yahoo.com">Cliquez
ici</a>. <br> -- <br> Ce message a ete verifie par <a href="http://www.mailscanner.info/"><b><span style="font-weight: bold;">MailScanner</span></b></a> pour des virus ou des polluriels et rien de suspect n'a ete trouve. <o:p></o:p></span></font></div> <div> <div class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> <o:p></o:p></span></font></div> </div> <div class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et privés.Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. <o:p></o:p></span></font></div> <div> <div class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> <o:p></o:p></span></font></div> </div> <div class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">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. <o:p></o:p></span></font></div> </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><font face="3DArial" size="3D2"></font> </div>Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et privés.Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. <div><font face="3DArial" size="3D2"></font> </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. </blockquote><br><p> 
                <hr size="1">
<b>Yahoo! Mail réinvente le mail !</b> Découvrez le <a href="http://fr.rd.yahoo.com/evt=40577/*http://fr.promotions.yahoo.com/mail/nouveaumail.html
">nouveau Yahoo! Mail</a> et son interface révolutionnaire.