Subversion Repositories eFlore/Applications.coel

Rev

Rev 153 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 153 Rev 155
Line 69... Line 69...
69
						onErrorHTTP(request, response);
69
						onErrorHTTP(request, response);
70
					} else {
70
					} else {
71
						if (response.getText().length() != 0 && response.getText() != null) {
71
						if (response.getText().length() != 0 && response.getText() != null) {
72
							final JSONValue responseValue = JSONParser.parse(response.getText());
72
							final JSONValue responseValue = JSONParser.parse(response.getText());
Line 73... Line 73...
73
							
73
							
74
							// Si la requête est un succès, reception d'un tableau
74
							// Si la requête est un succès, reception d'une chaine
75
							if (responseValue.isArray() != null) {
75
							if (responseValue.isString() != null) {
76
								Information info = new Information("ajout_structure", responseValue.isArray());
76
								Information info = new Information("ajout_structure", responseValue.isString().stringValue());
77
								r.rafraichir(info);
77
								r.rafraichir(info);
78
							} else {
78
							} else {
79
								GWT.log(url+"\n\tLa réponse n'est pas un tableau JSON.", null);
79
								GWT.log(url+"\n\tLa réponse n'est pas une chaine JSON.", null);
80
							}
80
							}
81
						} else {
81
						} else {
82
							GWT.log(url, null);
82
							GWT.log(url, null);
83
							if (response.getText().length() == 0) {
83
							if (response.getText().length() == 0) {