Hi All,
I have an requirement in my project, where i have to show a pop up with an moving icon when a button is clicked. But the problem is that the pop up should close automatically once we get the response from webservice. So i wanted to go with ajax as i far as my knowledge goes we also wanted asynchronous calls to the server side code to know whether the response has come or not.
I am using JSF and opening the pop from java code.Then I have a java script which calls the ajax function[to create objects -xmlHttpObject]. From the ajax function i am trying to call a servlet where i am actually writing the business logic.If the logic completes successfully without any exceptions that means the response is returned and i should get readyState as 4.Then i can do a self.close() in the ajax function to close the pop up. But unfortunately I dont know what is going wrong in this approach.
Some one please guide me. I need some suggestions so that i can implement it.
I have an requirement in my project, where i have to show a pop up with an moving icon when a button is clicked. But the problem is that the pop up should close automatically once we get the response from webservice. So i wanted to go with ajax as i far as my knowledge goes we also wanted asynchronous calls to the server side code to know whether the response has come or not.
I am using JSF and opening the pop from java code.Then I have a java script which calls the ajax function[to create objects -xmlHttpObject]. From the ajax function i am trying to call a servlet where i am actually writing the business logic.If the logic completes successfully without any exceptions that means the response is returned and i should get readyState as 4.Then i can do a self.close() in the ajax function to close the pop up. But unfortunately I dont know what is going wrong in this approach.
Some one please guide me. I need some suggestions so that i can implement it.
Comment