AjaxTK - Communcation Example?

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
1340JeffP
Posts: 5
Joined: Fri Sep 12, 2014 9:57 pm

AjaxTK - Communcation Example?

Postby 1340JeffP » Fri Oct 14, 2005 1:14 am

Looking for an example in the TK regarding how the Ajax communcation works.

Somewhat surprised we have an Ajax TK and no example of how to use Ajax communications from the client side? ;-)
I've looked at the popup debugger window and I can see the soap request going out and the JSON returned, but I'm no closer to understanding:
1) How did the client send that soap request out? What method was called? How was the request formed and what arguments were passed to the method? What event triggered that method?
2) What does the TK need to do in order to read the JSON returned into a list widget?
I've even brought up the Zimbra client in a JS debugger and watched it doing various things, but so much of the data transfer is happening in the initial rendering of the main page that I don't see any way of requesting the address book information as a separate request.
Hoping Ross might point us to a good example in the Client source code, or whip out a simple example; for instance, how would I download the AddressBook list in a simple example JSP on the client, from your hosted demo? (Or something similar)
thanks!

Jeff-


14319KevinH
Ambassador
Ambassador
Posts: 4558
Joined: Fri Sep 12, 2014 9:52 pm

AjaxTK - Communcation Example?

Postby 14319KevinH » Fri Oct 14, 2005 1:19 am

Well the best example of all the items you mentioned it the Zimbra UI itself. You can see all of this in that code. It's under ZimbraWebClient/WebRoot/js.
Check out the code in:
ZimbraWebClient/WebRoot/js/zimbra/csfe/ZmCsfeAsynchCommand.js

Return to “Developers”

Who is online

Users browsing this forum: No registered users and 4 guests