Wednesday, June 18, 2014

Re: use ajaxcomplete in GWT

Hi Joseph,

Thanks for your reply.
My need is a bit different. Please have look on below needs and assist me if you can.

I have used server call by using RPC.
It is happening in various pages in my app. 
It will give response on AsyncCallBack for both Success and Failure (It is already working fine).

My Need is: Also i should get notified in client side when the response completed (As ajaxComplete behavior).

For Ex
What i tried with HTML and servlet with ajaxComplete

$(document).ready(function () {
$( ".trigger" ).click(function() {
$.ajax({
   url: "LoginAction",
   type: "POST",
   data: null,
   success: function( data ) {
alert('Success: ' + data);
                    },
    error: function( data ) {
alert('Error: ' + data);
    }
});
});
$(document).bind('ready ajaxComplete', function(){
alert('hello');
});
});

I received alerts as Success: and hello
Thanks


On Wednesday, June 18, 2014 12:26:49 AM UTC+5:30, Joseph Lust wrote:
There are many ways to contact a server in GWT. See the communications page and async callback information:


Sincerely,
Joseph

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment