Précédent   Forum des professionnels en informatique > PHP > Bibliothèques et frameworks
Bibliothèques et frameworks Forum d'entraide sur les frameworks, templates, bibliothèques de code (PDFLib, eZPdf, JpGraph, Artichow, PEAR, etc). Avant de poster : FAQ bibliothèques, toutes les FAQ PHP et cours bibliothèques
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 24/11/2010, 21h24   #1
Invité de passage
 
Inscription : juillet 2009
Messages : 29
Détails du profil
Informations forums :
Inscription : juillet 2009
Messages : 29
Points : 1
Points : 1
Par défaut XAJAX appel de fonction

Bonjour
Voila je ne comprend pas pourquoi cela ne fonctionne pas, a croire qu'il ne me renvoi pas mon objresponse :/

quelqu'un aurait il une idée?
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
 
 
 
<?php
require_once('xajax_core/xajaxAIO.inc.php');
include('config.php');
function SelectVille($codePostal)
{
	$options="";
	$ObjResponse = new xajaxResponse();
 
	$db = new PDO(DSN,DBUSER,DBPASSWD);
	$req = $db->query('SELECT CP,VILLE FROM LOCALISATION WHERE CP LIKE \'' . $codePostal .'%\'');
 
	while ($souscat = $req->fetch())
	{
 
		$options .= '<option value="'.$souscat['CP'].'">'.$souscat['VILLE'].'</option>';
	}
 
	$ObjResponse->assign('liste_ville','innerHTML',$options);
	return $objResponse;
 
}
$xajax = new xajax();
$xajax->registerFunction("SelectVille");
$xajax->processRequest();
 
 
?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Document sans titre</title>
<?php $xajax->printJavascript('../'); ?>
</head>
 
<body>
	<div id="Container">
        <div id="Header">
        	<div id="HeaderLeft">
            	LOGO
            </div>
 
            <div id="HeaderRight"
                <form action="Accueil.php" method="post">
                	<label>Déjà membres? </label>
                    <label>Pseudo</label>
                    <input type="text"  id="pseudo" name="pseudo" />
                    <label>Mot de passe</label>
                    <input type="password" id="pass" name="pass" />
                    <input type="submit" name="Entrer" />
                </form>
            </div>
        </div>
 
        <div id="Center">
        	<form action="accueil.php" method="post">
                	<label>Inscription Rapide </label>
                    <br  />
 
                    <label>Je suis :</label>
                    <input type="text"  id="JeSuis" name="JeSuis" />
                    <br />
                    <label>Je cherche : </label>
                    <input type="text" id="JeCherche" name="JeCherche"/>
                    <br />
                    <label>De : </label>
                    <input type="text" id="De" name="De"/>
                    <label>à : </label>
                    <input type="text" id="A" name="A" />
                    <label>ans</label>
                    <br />
                    <label>Je suis né(e) le : </label>
                    <select name="Day">
                    	<?php
							for($i=0; $i <= 31;$i++)
							{
								echo "<option>". $i . "</option>";	
							}
 
						?>
                    </select>
 
                    <select name="Month">
                    	<?php
							for($i=0; $i <= 12;$i++)
							{
								echo "<option>". $i . "</option>";	
							}
 
						?>
                    </select>
 
                    <select name="Year">
                    	<?php
							for($i=1920; $i <=2010-17;$i++)
							{
								echo "<option>". $i . "</option>";	
							}
 
						?>
                    </select>
                                        <br />
                    <label> Mon code postal : </label>
                    <input type="text" id="Cp" onkeyup="xajax_SelectVille(this.value)" name="Cp "/>
                    <br />
                    <label> Ma ville : </label>
                    <select id="liste_ville" name="liste_ville">
                    </select>
                    <br />
                    <label>Nature de la recherche : </label>
                    <input type="text" id="NatRecherche" name="NatRecherche"/>
                    <br />
                    <label>Mon pseudo : </label>
                    <input type="text" id="MonPSeudo" name="MonPSeudo"/>
                    <br />
                    <label>Mon mot de passe : </label>
                    <input type="text" id="MonPass" name="MonPass"/>
                    <br />
                    <label>Mon adresse e-mail : </label>
                    <input type="text" id="MonMail" name="MonMail" />
                    <br />
                    <input type="checkbox" value="true" name="Certifie"/>
                    <Label>Je certifie être majeur(e) et Avoir lu et accepté les conditions d'acccès ainsi que la politique sur le respect de la vie privée et des services décrit.
</Label>
                    <br />
                    <input type="submit" value="Inscription rapide" name="Inscription"/>
                </form>
 
        </div>
        <div id="Footer">
        	<a href="" >Premier liens</a>
            <a href="" >Deuxième liens</a>
            <a href="" >Troisième liens</a>
            <a href="" >Quatrième liens</a>
        </div>
    </div>
</body>
</html>
Je vous remercie d'avance
waldpest est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/11/2010, 21h01   #2
Invité de passage
 
Inscription : juillet 2009
Messages : 29
Détails du profil
Informations forums :
Inscription : juillet 2009
Messages : 29
Points : 1
Points : 1
J'ai utilisé setFlag('debug', true); pour voir ce qu'il me répond et j'ai le droit a ce message :


XAJAX DEBUG MESSAGE: No response processor is available to process the response from the server. Content-Type: text/html. Check for error messages from the server.


Est ce que quelqu'un vois de quoi proviens le problème?
waldpest est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 17h19.


 
 
 
 
Partenaires

Hébergement Web