Une erreur banale jQuery

Répondre


Cette question est un moyen d’empêcher des soumissions automatisées de formulaires par des robots.
Smileys
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: =D> #-o =P~ :^o :non: :priere: 8-|
Voir plus de smileys
  Revue du sujet
 

  Étendre la vue Revue du sujet : Une erreur banale jQuery

Re: Une erreur banale jQuery

par rimie » 08 août 2011, 11:10

maintenant ca marche, je pense change le fichier js, merci

Re: Une erreur banale jQuery

par rimie » 08 août 2011, 11:05

j'ai change par: https://ajax.googleapis.com/ajax/libs/j ... ery.min.js et ca marche, j'ai pris le meme code et le mettant dans un fichier js, ca marche pas

Re: Une erreur banale jQuery

par rimie » 08 août 2011, 10:59

Je vois que dans l'url qui appelle la bibliothèque est marqué "JS" en majuscules. Qu'est-ce qui se passe si on les remplace par des minuscules ?
la meme chose, tout etait normal hier soir, sauf ce matin

Re: Une erreur banale jQuery

par Berzemus » 08 août 2011, 10:21

Je vois que dans l'url qui appelle la bibliothèque est marqué "JS" en majuscules. Qu'est-ce qui se passe si on les remplace par des minuscules ?

Une erreur banale jQuery

par rimie » 08 août 2011, 08:37

bonjour,

j'ai utilise un code jQuery ca marche bien, soudain je me retrouve avec l'erreur ci-dessous:

Code : Tout sélectionner

<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>Object not found!</title> <link rev="made" href="mailto:admin@localhost" /> <style type="text/css"><!--/*--><![CDATA[/*><!--*/ body { color: #000000; background-color: #FFFFFF; } a:link { color: #0000CC; } p, address {margin-left: 3em;} span {font-size: smaller;} /*]]>*/--></style> </head> <body> <h1>Object not found!</h1> <p> The requested URL was not found on this server. The link on the <a href="http://localhost/Listen-1.html">referring page</a> seems to be wrong or outdated. Please inform the author of <a href="http://localhost/Listen-1.html">that page</a> about the error. </p> <p> If you think this is a server error, please contact the <a href="mailto:admin@localhost">webmaster</a>. </p> <h2>Error 404</h2> <address> <a href="/">localhost</a><br /> <span>08/08/11 06:14:14<br /> Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.6</span> </address> </body> </html>
voila l'image de l'erreur:

http://imageshack.us/photo/my-images/40 ... query.png/

et le code:
$('.classComment').click(function(){
        
        // load image
        $('.loading').show();
        
        var commentaire = $('#commentaire').val();
        var username = $('#idUsername').val();
        var id_hm = $('#IDrub').val();
        var id_rec = $('#IDrec').val();
        var comLen =  commentaire.length;
              
        
        console.log(comLen);
        
        var dataString = 'commentaire='+ commentaire + '&username=' + username + '&id_hm=' + id_hm + '&id_rec=' + id_rec;

        $.ajax({
        type: "POST",
        url: "Forms/formCommentsCheck.php",
        data: dataString,
        dataType: "json",
        success: function(data) {
                       
        if(data.comCheck == "lessChars"){
            $('.loading').hide();
                $(".comErrors").html("<div>Sorrrrry Try again.</div>");
            } else {
                $('.loading').hide();
                    
                    $(".displayComments").hide().load("Forms/displayCommentsProcess.php").slideDown();
                    
                $(".comErrors").html("<div>LoooooooooOOOOOoooooL</div>");
                    }
               
        }
  });
  
  return false;
  });
sachant que le commentaire s'insere et que la page displayCommentsProcess.php s'affiche
merci