PDA

View Full Version : Firefox result html?



TheBuzzer
29 Jun 2009, 10:00 AM
<pre>{"error":"Session Expired"}</pre>


I get pre tags for some reason.

in ie It doesnt have those.



private Listener<FormEvent> submitlistener = new Listener<FormEvent>() {

@Override
public void handleEvent(FormEvent be) {
if (be.getComponent().equals(myuploadform)) {
Window.alert(be.getResultHtml());
JSONObject jsonObject = JSONParser.parse(be.getResultHtml()).isObject();
if (!jsonObject.containsKey("error")) {

} else {
NewWorkFlow.get().reLogin(jsonObject.get("error").isString());
}
}

}
};


Why is there a difference?

schildmeijer
1 Oct 2010, 5:00 AM
set content-type to "text/html", i.e response.setContentType("text/html");