Hi All,
After basic authentication images,.js,.html files are not cached
tested with firefox. URI is RESTful service. Here is my request in the
HTML
new Ajax.Request('/RESTURI', { username:uname,password:pwd,method:
'get', onSuccess: onSuccess, onFailure: onFailure, onException:
onException});
I use the prototype request() function to sumbit my form to a JSP
page. It work fine and I am able to save the data to the database. But
I need to return a message to the form page if the JSP page
successfully save the data. Here is an example
I have a page called person.jsp and all the form
Hi,
But I want to return a message to person.jsp if there is success
or failer on save.jsp page.
Use an onSuccess callback[1] and look at the response. For this sort
of thing, I usually generate a JSON response (Content-Type =
application/json), and so in my case I look at the `responseJSON`
You can write the response to the JSP page and in the form page use
the onComplete event to return the response text
$('myFormID').request({ method: 'post',
onComplete: function(request) {
alert(request.responseText);
}
});
so anything written in the JSP page (including html) will come
Thank you very much for the response. Both ways help to solve the
problem. You really saved my day.
On Mar 8, 2:05 pm, Scott counterstre...@gmail.com wrote:
You can write the response to the JSP page and in the form page use
the onComplete event to return the response text