Partage
  • Partager sur Facebook
  • Partager sur Twitter

Problème sur double liste en ajax

de l'aide serait la bienvenue :)

    4 mai 2010 à 9:47:40

    Bonjour,

    J'ai récupéré un site que je dois finir, et j'ai résolu tous les bugs qui étaient présents excepté un concernant un formulaire en ajax à double liste déroulante, le choix de la première mettant à jour le contenu de la seconde.

    Fonctionne bien sous Firefox et IE8, pas du tout sur IE <8 et Safari.

    La page concernée:
    http://www.euxos.com/site/recherche/in [...] ?fab=%&proj=0

    Voici le code:

    fonctionMachine.js
    // JavaScript Document
    //window.onload = testerNavigateur;
    //-----------------------------
    function testerNavigateur(type_fab, type_proj) {   
    	objetXHR = creationXHR();
    	if(objetXHR==null) {
    		document.getElementById("button").disabled= true;
    		var erreurNavigateur="Erreur Navigateur : Création d'objet XHR impossible";
    		remplacerContenu("info", erreurNavigateur);
    	    document.getElementById("info").style.visibility="visible";
    	}
    	//alert("Fab: "+type_fab+" - Proj: " + type_proj);
    	document.getElementById("button").onclick=jouer;
    	document.getElementById("categorie").onchange=function() {recupScategorie(this.value);}
    	document.getElementById("scategorie").onchange=function() {demandePieces(type_fab, type_proj);}
    }
    //##############################MOTEUR AJAX 1############################################
    function jouer() {   
    	 /*-----------------------------Config et envoi de la requete ASYNCHRONE : */
    	 objetXHR = creationXHR();//création d'un objet XHR multi-navigateurs
    	 var temps = new Date().getTime();//création d'une variable temps pour l'anti-cache
    	 //construction de la chaine des parametres
    	 var parametres = "categorie="+ codeContenu("categorie") +
    	 				  "&scategorie="+ codeContenu("scategorie") +
    	                  "&anticache="+temps ;
    	 //Config. objet XHR
         objetXHR.open("get","gainAleatoire.php?"+parametres, true); 
    	 objetXHR.onreadystatechange = actualiserPage;//désignation de la fonction de rappel
    	 //gestion du bouton et du chargeur
    	 document.getElementById("button").disabled= true;
    	 document.getElementById("charge").style.visibility="visible";
         objetXHR.send(null);//envoi de la requete
    	 /*---------------------------------------- */
      }
      function actualiserPage() {
    	if (objetXHR.readyState == 4) {//test si le résultat est disponible
    	 if (objetXHR.status == 200) {
    	   demandeGains();
           var nouveauResultat = objetXHR.responseText.split(":");//recup du résulat > tableau 
    	   //actualisation du résultat
    	   remplacerContenu("resultat", decodeURI(nouveauResultat[1]));
    	   //actualisation du nom
    	   remplacerContenu("gagnant", decodeURI(nouveauResultat[0]));
    	   //affiche la zone info
    	   document.getElementById("info").style.visibility="visible";
    	   //gestion du bouton et du chargeur
    	   document.getElementById("button").disabled= false;
    	   document.getElementById("charge").style.visibility="hidden";
    	 }else{
    	   //message d'erreur serveur
    	   var erreurServeur="Erreur serveur : "+objetXHR.status+" – "+ objetXHR.statusText;
    	   remplacerContenu("info", erreurServeur);
    	   document.getElementById("info").style.visibility="visible";
    	   //gestion du bouton et du chargeur
    	   document.getElementById("button").disabled= false;
    	   document.getElementById("charge").style.visibility="hidden";
    	   //annule la requete en cours
    	   objetXHR.abort();
    	   objetXHR=null;
    	   }
    	 }
      }
    
    //##############################MOTEUR AJAX 3############################################
    function demandePieces(type_fab, type_proj) {   
     //création d'un objet XHR multi-navigateurs
     objetXHR3 = creationXHR();
     var temps = new Date().getTime();//création d'une variable temps pour l'anti-cache
     //construction de la chaine des parametres
     var parametres3 = "scategorie="+ codeContenu("scategorie") +
                       "&fab="+ type_fab +
    				   "&proj="+ type_proj +
    	               "&anticache="+temps ;
     //Config. objet XHR
    // alert("URL: " + "piecesListe.php?"+parametres3)
     objetXHR3.open("get","piecesListe.php?"+parametres3, true); 
     objetXHR3.onreadystatechange = affichepieces;//désignation de la fonction de rappel
     objetXHR3.send(null);//envoi de la requete
     }
    
    function affichepieces() {
    	if (objetXHR3.readyState == 4) {//test si le résultat est disponible
    	 if (objetXHR3.status == 200) {
    	   listeJSON = objetXHR3.responseText;//recup du résulat > objet JSON
    	   objetJSON3=listeJSON.parseJSON();
    	   //créa des nouvelles lignes
    	   var tableListe=document.getElementById("tableListe");
    	   supprimerContenu(tableListe);
    	   for(i=0;i<objetJSON3.pieces.length;i++){
    	   	 var image=objetJSON3.pieces[i].image;
    		 var reference=objetJSON3.pieces[i].reference;
    		 var designation1=objetJSON3.pieces[i].designation1;
    		 var raisonsoc=objetJSON3.pieces[i].raisonsoc;
    		 var id=objetJSON3.pieces[i].id;
    		 var nbResults=objetJSON3.pieces[i].nbPieces + ' produit(s) correspond(ent) a votre recherche';
    		 if(i==0){
    		    var tmpTR=document.createElement('tr');
    		    var tmpTD=document.createElement('td');
    	   	 	var tmpTXT=document.createTextNode(nbResults);
    		    tmpTD.setAttribute('colspan','4');
    			tmpTD.setAttribute('class','chevron');
    	   	    tmpTD.appendChild(tmpTXT);
    	   	    tmpTR.appendChild(tmpTD);
    			tableListe.appendChild(tmpTR);
    		 }
    	     nouvelleLigne(tableListe,designation1,raisonsoc,reference,id,image);
    	   }
    	 }else{
    	   //message d'erreur serveur
    	   var erreurServeur="Erreur serveur : "+objetXHR3.status+" – "+ objetXHR3.statusText;
    	   remplacerContenu("info", erreurServeur);
    	   document.getElementById("info").style.visibility="visible";
    	   //gestion du bouton et du chargeur
    	   document.getElementById("button").disabled= false;
    	   //annule la requete en cours
    	   objetXHR3.abort();
    	   objetXHR3=null;
    	   }
    	 }
      }
      //-----------------------------------------
    function nouvelleLigne(tab,text1,text2, text3,text4) { 
    	   var nouveauTR=document.createElement('ul');
    	   nouveauTR.setAttribute('class','rechliste')
    	   //-----------------------------------------
    	   var nouveauTD1=document.createElement('li');
    	   nouveauTD1.setAttribute('class','descri');
    	   var nouveauTXT1=document.createTextNode(text1);
    	   nouveauTD1.appendChild(nouveauTXT1);
    	   
    	   var nouveauTD2=document.createElement('li');
    	   nouveauTD2.setAttribute('class','construc');
    	   var nouveauTXT2=document.createTextNode(text2);
    	   nouveauTD2.appendChild(nouveauTXT2);
    	   
    	   var nouveauTD3=document.createElement('li');
    	   nouveauTD3.setAttribute('class','liens');
    	   var nouveauTXT3=document.createTextNode(text3);
    	   nouveauTD3.appendChild(nouveauTXT3);
    	   
    	   var nouveauTD4=document.createElement('li');
    	   nouveauTD4.setAttribute('class','test')
    	   
    	   nouveauTD3.setAttribute('class','ref');
    	   
    	   //var nouveauA6=document.createElement('img');
    	   //nouveauA6.setAttribute('src', '../images/'+text4'.gif');
    	   
           
           // Bouton Détails
           var nouveauA4=document.createElement('a');
           nouveauA4.setAttribute('href','../detailproduit.php?id='+text4);
           var nouveauA5=document.createElement('img');
    	   nouveauA5.setAttribute('src','../img/detail.png');
           nouveauA4.appendChild(nouveauA5);
           nouveauTD4.appendChild(nouveauA4); 
           
    
    	   //------------------------------------------
    	   nouveauTR.appendChild(nouveauTD1);
    	   nouveauTR.appendChild(nouveauTD2);
    	   nouveauTR.appendChild(nouveauTD3);
    	   nouveauTR.appendChild(nouveauTD4);
    	   //------------------------------------------
    	   tab.appendChild(nouveauTR);
    }
    //##############################MOTEUR AJAX 4############################################
    
    function recupScategorie(categorie) {  
    	 //reinitialise les options du menu 2 a chaque changement
    	  document.getElementById("scategorie").options.length = 1;
    	 //cas ou il n'y a pas de nom sélectionné	
    	 if (categorie == "") return null ;
    	 //--------------------
    	 objetXHR4 = creationXHR();//création d'un objet XHR multi-navigateurs
    	 var temps = new Date().getTime();//création d'une variable temps pour l'anti-cache
    	 //construction de la chaine des parametres
    	 var parametres = "categorie="+ categorie +
    	                  "&anticache="+temps ;
    	 //alert('scategorieListe.php?' + parametres);
    	 //Config. objet XHR
         objetXHR4.open("get","scategorieListe.php?"+parametres, true); 
    	 objetXHR4.onreadystatechange = creationMenu2;//désignation de la fonction de rappel
    	 //gestion du bouton et du chargeur
         objetXHR4.send(null);//envoi de la requete
    	 /*---------------------------------------- */
      }
    
    function creationMenu2(){
    	if (objetXHR4.readyState == 4) {//test si le résultat est disponible
    	 if (objetXHR4.status == 200) {
    	   //recup du résulat au format TXT 
    	   var nouveauResultat = objetXHR4.responseText;
    	   //conversion de chaine JSON en objet JSON
    	   var objetJSON=nouveauResultat.parseJSON();
    	   //création du menu dans le DOM>>dans fonction de rappel
    		for (i=0; i<objetJSON.listeScategorie.length; i++)
    			{
    //			  var elementOption = document.createElement('option'); 
    //			  var texteOption = document.createTextNode(objetJSON.listeScategorie[i].scategorie); 
    //			  elementOption.setAttribute('value',objetJSON.listeScategorie[i].etiquettesr);  
    //			  elementOption.setAttribute('value',objetJSON.listeScategorie[i].etiquettesr);  
    //			  elementOption.appendChild(texteOption); 
    //			  document.getElementById("scategorie").appendChild(elementOption); 
    		      var elmt = new Option(objetJSON.listeScategorie[i].descriptifsr, objetJSON.listeScategorie[i].etiquettesr);
    			  var ddl = document.getElementById("scategorie");
    			  ddl.add(elmt, null);
    			}
    	}
    	}
    }
    


    fonctionAjax.js

    // JavaScript Document
     function creationXHR() {
       var resultat=null;
       try {//test pour les navigateurs : Mozilla, Opéra, ...
    	    resultat= new XMLHttpRequest();
         } 
         catch (Error) {
         try {//test pour les navigateurs Internet Explorer > 5.0
         resultat= new ActiveXObject("Msxml2.XMLHTTP");
         }
         catch (Error) {
             try {//test pour le navigateur Internet Explorer 5.0
             resultat= new ActiveXObject("Microsoft.XMLHTTP");
             }
             catch (Error) {
                resultat= null;
             }
         }
      }
    return resultat;
    }
    //------------Fonctions de gestion du DOM (solution alternative à innerHTML)
    function remplacerContenu(id, texte) {
      var element = document.getElementById(id);
      if (element != null) {
        supprimerContenu(element);
        var nouveauContenu = document.createTextNode(texte);
        element.appendChild(nouveauContenu);
      }
    }
    
    function supprimerContenu(element) {
    if (element != null) {
        while(element.firstChild)
            element.removeChild(element.firstChild);
       }
    }
    //--------------Fonctions encodage
    //code en UTF8, la valeur d'un élément dont id passé en parametre
    function codeContenu(id) { 
    	var valeur=document.getElementById(id).value;
    	return encodeURIComponent(valeur);
    }
    


    json.js

    /*
        json.js
        2007-08-19
    
        Public Domain
    
        This file adds these methods to JavaScript:
    
            array.toJSONString(whitelist)
            boolean.toJSONString()
            date.toJSONString()
            number.toJSONString()
            object.toJSONString(whitelist)
            string.toJSONString()
                These methods produce a JSON text from a JavaScript value.
                It must not contain any cyclical references. Illegal values
                will be excluded.
    
                The default conversion for dates is to an ISO string. You can
                add a toJSONString method to any date object to get a different
                representation.
    
                The object and array methods can take an optional whitelist
                argument. A whitelist is an array of strings. If it is provided,
                keys in objects not found in the whitelist are excluded.
    
            string.parseJSON(filter)
                This method parses a JSON text to produce an object or
                array. It can throw a SyntaxError exception.
    
                The optional filter parameter is a function which can filter and
                transform the results. It receives each of the keys and values, and
                its return value is used instead of the original value. If it
                returns what it received, then structure is not modified. If it
                returns undefined then the member is deleted.
    
                Example:
    
                // Parse the text. If a key contains the string 'date' then
                // convert the value to a date.
    
                myData = text.parseJSON(function (key, value) {
                    return key.indexOf('date') >= 0 ? new Date(value) : value;
                });
    
        It is expected that these methods will formally become part of the
        JavaScript Programming Language in the Fourth Edition of the
        ECMAScript standard in 2008.
    
        This file will break programs with improper for..in loops. See
        http://yuiblog.com/blog/2006/09/26/for-in-intrigue/
    
        This is a reference implementation. You are free to copy, modify, or
        redistribute.
    
        Use your own copy. It is extremely unwise to load untrusted third party
        code into your pages.
    */
    
    /*jslint evil: true */
    
    // Augment the basic prototypes if they have not already been augmented.
    
    if (!Object.prototype.toJSONString) {
    
        Array.prototype.toJSONString = function (w) {
            var a = [],     // The array holding the partial texts.
                i,          // Loop counter.
                l = this.length,
                v;          // The value to be stringified.
    
    // For each value in this array...
    
            for (i = 0; i < l; i += 1) {
                v = this[i];
                switch (typeof v) {
                case 'object':
    
    // Serialize a JavaScript object value. Ignore objects thats lack the
    // toJSONString method. Due to a specification error in ECMAScript,
    // typeof null is 'object', so watch out for that case.
    
                    if (v) {
                        if (typeof v.toJSONString === 'function') {
                            a.push(v.toJSONString(w));
                        }
                    } else {
                        a.push('null');
                    }
                    break;
    
                case 'string':
                case 'number':
                case 'boolean':
                    a.push(v.toJSONString());
    
    // Values without a JSON representation are ignored.
    
                }
            }
    
    // Join all of the member texts together and wrap them in brackets.
    
            return '[' + a.join(',') + ']';
        };
    
    
        Boolean.prototype.toJSONString = function () {
            return String(this);
        };
    
    
        Date.prototype.toJSONString = function () {
    
    // Eventually, this method will be based on the date.toISOString method.
    
            function f(n) {
    
    // Format integers to have at least two digits.
    
                return n < 10 ? '0' + n : n;
            }
    
            return '"' + this.getUTCFullYear() + '-' +
                    f(this.getUTCMonth() + 1)  + '-' +
                    f(this.getUTCDate())       + 'T' +
                    f(this.getUTCHours())      + ':' +
                    f(this.getUTCMinutes())    + ':' +
                    f(this.getUTCSeconds())    + 'Z"';
        };
    
    
        Number.prototype.toJSONString = function () {
    
    // JSON numbers must be finite. Encode non-finite numbers as null.
    
            return isFinite(this) ? String(this) : 'null';
        };
    
    
        Object.prototype.toJSONString = function (w) {
            var a = [],     // The array holding the partial texts.
                k,          // The current key.
                i,          // The loop counter.
                v;          // The current value.
    
    // If a whitelist (array of keys) is provided, use it assemble the components
    // of the object.
    
            if (w) {
                for (i = 0; i < w.length; i += 1) {
                    k = w[i];
                    if (typeof k === 'string') {
                        v = this[k];
                        switch (typeof v) {
                        case 'object':
    
    // Serialize a JavaScript object value. Ignore objects that lack the
    // toJSONString method. Due to a specification error in ECMAScript,
    // typeof null is 'object', so watch out for that case.
    
                            if (v) {
                                if (typeof v.toJSONString === 'function') {
                                    a.push(k.toJSONString() + ':' +
                                           v.toJSONString(w));
                                }
                            } else {
                                a.push(k.toJSONString() + ':null');
                            }
                            break;
    
                        case 'string':
                        case 'number':
                        case 'boolean':
                            a.push(k.toJSONString() + ':' + v.toJSONString());
    
    // Values without a JSON representation are ignored.
    
                        }
                    }
                }
            } else {
    
    // Iterate through all of the keys in the object, ignoring the proto chain
    // and keys that are not strings.
    
                for (k in this) {
                    if (typeof k === 'string' &&
                            Object.prototype.hasOwnProperty.apply(this, [k])) {
                        v = this[k];
                        switch (typeof v) {
                        case 'object':
    
    // Serialize a JavaScript object value. Ignore objects that lack the
    // toJSONString method. Due to a specification error in ECMAScript,
    // typeof null is 'object', so watch out for that case.
    
                            if (v) {
                                if (typeof v.toJSONString === 'function') {
                                    a.push(k.toJSONString() + ':' +
                                           v.toJSONString());
                                }
                            } else {
                                a.push(k.toJSONString() + ':null');
                            }
                            break;
    
                        case 'string':
                        case 'number':
                        case 'boolean':
                            a.push(k.toJSONString() + ':' + v.toJSONString());
    
    // Values without a JSON representation are ignored.
    
                        }
                    }
                }
            }
    
    // Join all of the member texts together and wrap them in braces.
    
            return '{' + a.join(',') + '}';
        };
    
    
        (function (s) {
    
    // Augment String.prototype. We do this in an immediate anonymous function to
    // avoid defining global variables.
    
    // m is a table of character substitutions.
    
            var m = {
                '\b': '\\b',
                '\t': '\\t',
                '\n': '\\n',
                '\f': '\\f',
                '\r': '\\r',
                '"' : '\\"',
                '\\': '\\\\'
            };
    
    
            s.parseJSON = function (filter) {
                var j;
    
                function walk(k, v) {
                    var i;
                    if (v && typeof v === 'object') {
                        for (i in v) {
                            if (Object.prototype.hasOwnProperty.apply(v, [i])) {
                                v[i] = walk(i, v[i]);
                            }
                        }
                    }
                    return filter(k, v);
                }
    
    
    // Parsing happens in three stages. In the first stage, we run the text against
    // a regular expression which looks for non-JSON characters. We are especially
    // concerned with '()' and 'new' because they can cause invocation, and '='
    // because it can cause mutation. But just to be safe, we will reject all
    // unexpected characters.
    
    // We split the first stage into 3 regexp operations in order to work around
    // crippling deficiencies in Safari's regexp engine. First we replace all
    // backslash pairs with '@' (a non-JSON character). Second we delete all of
    // the string literals. Third, we look to see if only JSON characters
    // remain. If so, then the text is safe for eval.
    
                if (/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/.test(this.
                        replace(/\\./g, '@').
                        replace(/"[^"\\\n\r]*"/g, ''))) {
    
    // In the second stage we use the eval function to compile the text into a
    // JavaScript structure. The '{' operator is subject to a syntactic ambiguity
    // in JavaScript: it can begin a block or an object literal. We wrap the text
    // in parens to eliminate the ambiguity.
    
                    j = eval('(' + this + ')');
    
    // In the optional third stage, we recursively walk the new structure, passing
    // each name/value pair to a filter function for possible transformation.
    
                    return typeof filter === 'function' ? walk('', j) : j;
                }
    
    // If the text is not JSON parseable, then a SyntaxError is thrown.
    
                throw new SyntaxError('parseJSON');
            };
    
    
            s.toJSONString = function () {
    
    // If the string contains no control characters, no quote characters, and no
    // backslash characters, then we can simply slap some quotes around it.
    // Otherwise we must also replace the offending characters with safe
    // sequences.
    
                if (/["\\\x00-\x1f]/.test(this)) {
                    return '"' + this.replace(/[\x00-\x1f\\"]/g, function (a) {
                        var c = m[a];
                        if (c) {
                            return c;
                        }
                        c = a.charCodeAt();
                        return '\\u00' +
                            Math.floor(c / 16).toString(16) +
                            (c % 16).toString(16);
                    }) + '"';
                }
                return '"' + this + '"';
            };
        })(String.prototype);
    }
    


    Et enfin la page php:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <?php require_once('../Connections/dbconnect.php'); ?>
    <?php
    $var='catalogue';
    $type_fab=0;
    if(isset($_GET['fab']))
    	$type_fab = $_GET['fab'];
    else
    	$type_fab=="%";
    if(isset($_GET['proj']))
    	$type_proj = $_GET['proj'];
    else
       $type_proj=="%";
    ?>
    <head>
    <!--<META HTTP-EQUIV='Pragma' CONTENT='no-cache'>-->
      <meta content="text/html; Charset=iso-8859-1" http-equiv="Content-Type" />
      <title>recherche de pieces Euxos</title>
      <link rel="stylesheet" type="text/css" href="style.css" />
      <script type="text/javascript" src="fonctionsAjax.js"></script>
      <script type="text/javascript" src="fonctionsMachine.js"></script>
      <script type="text/javascript" src="json.js"></script>
      <link href="../pages/euxos_public.css" rel="stylesheet" type="text/css" />
    </head>
    
    <body onload="javascript:testerNavigateur('<?php echo $type_fab; ?>','<?php echo $type_proj; ?>');MM_preloadImages('../img/detail.png')" >
    	
    <div id="containeur" >
    	<div id="head"><?php include('../nav2.php'); ?></div>
    
    	<div id="main">
    	<!--zone du chargeur-->
    	<img id="charge" src="chargeur.gif"  />
    		<div id="fab">
    			<?php if ($type_fab!='%') { ?>
    			<img src="../admin/img/<?php echo $type_fab; ?>_o.jpg" align="middle" title="fabriquant" />&nbsp;<br />
    			
    			<!-- DESCRIPTION DE LA MARQUE -->
    			<p><?php 
    				mysql_select_db($database_dbconnect, $dbconnect);
    				$query_rsfab = "SELECT descript FROM fabricant WHERE id ='".$type_fab."'";
    				$rsfab = mysql_query($query_rsfab, $dbconnect) or die(mysql_error());
    				$row_rsfab = mysql_fetch_assoc($rsfab);
    				$totalRows_rsfab = mysql_num_rows($rsfab);
    				echo $row_rsfab['descript'];
    			?></p>
    			<!-- #################### -->
    			
    			
    			<?php ;} elseif  ($type_proj!='0') { ?>
    			<img src="../admin/projet/<?php echo $type_proj; ?>_o.jpg" align="middle" title="projet" />&nbsp;
    			<?php ;} else {?>
    			<img src="../admin/projet/null_o.jpg" align="middle" title="euxos" />&nbsp;
    			<?php ;} ?>
    		</div>
    
    		<!--zone du formulaire-->
    		<div id="formulaire">
    			<div id="superieur"></div>
    			<form>
    				<span class="chevron" >></span>
    					<?php
    						require_once('../Connections/dbconnect.php');
    						mysql_select_db($database_dbconnect);
    						$requeteSQL="SELECT DISTINCT rubrique.etiquetter, rubrique.id, rubrique.descriptifr
    						FROM piece, rubrique WHERE rubrique.etiquetter=piece.rubrique_id AND rubrique.etiquetter=piece.rubrique_id AND piece.fabricant_id LIKE '".$type_fab."' ORDER BY rubrique.descriptifr";
    						$reponseSQL = mysql_query($requeteSQL);
    						echo "<select name='categorie' id='categorie'>";
    						echo "<option value=''>S&eacute;lectionnez votre cat&eacute;gorie</option>";
    						while ($donnees = mysql_fetch_array($reponseSQL)) {
    						echo "
    						<option value='".$donnees['id']."'> ".$donnees['descriptifr']." </option>";
    						}
    						echo "</select>";  
    					?>
    				<br/>
    				<select name='scategorie' id='scategorie'>
    					<option selected="selected" >S&eacute;lectionnez la sous-cat&eacute;gorie</option>
    				</select>
    				
    				<input name="button" id="button" type="hidden"  value="voir" />
    			</form>
    
    			<div id="inferieur"></div>
    	
    			<!--liste des gains-->
    			<div id="commentaire">
    				<table width="730" border="0" align="center" cellpadding="5" cellspacing="0" >
    					<div id="tableListe">
    						<ul>
    							<li>&nbsp;</li>
    						</ul>
    					</div>
    				</table>
    			</div><!-- Fin de commentaire -->
    			<!-- Fin des gains -->
    		</div><!-- Fin formulaire -->
    		<div class="clear"></div>
    
    	</div><!-- Fin de main -->
    	
    
    </div><!-- Fin Conteneur -->
    
    <div id="footer"><?php include('../pied.php'); ?></div>
    
    </body>
    </html>
    


    Toute aide sera fortement appréciée, je suis perdu sur ce script.

    Merci beaucoup
    • Partager sur Facebook
    • Partager sur Twitter
      14 mai 2010 à 17:43:15

      Safari doit avoir une console d'erreur, cherche là.

      Je n'ai pas safari sous la main :/

      Edit :
      Erreur : testerNavigateur is not defined
      Fichier Source : http://www.euxos.com/site/recherche/index.php?fab=%&proj=0
      Ligne : 1
      


      Tu appelles dans ton body onload une fonction qui n'existe pas.
      • Partager sur Facebook
      • Partager sur Twitter

      Problème sur double liste en ajax

      × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
      × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
      • Editeur
      • Markdown