Friday 15 February 2008

AJAX YAHOO Domino - a Beginner's Guide Conclusion

OK in the Previous posts in this thread I worked my way thru a worked example of using the YAHOO UI framework to get data from a domino server. In summary what you do is

a. Place the required Yahoo JS files in your application (or access them from the YUI site)
b. Create a global Var to hold your returned data in
c. Create the SUCCESS var containing the code to run when you get data
d. Create the FAILURE var containing the code to run when the connection fails
e. Create the CALLBACK var containing the vars from (c) and (d) above along with any arguments
f. Create an agent to do the work on the server
g. Create a JS function to process the data when you get it back.

And that is really all there is to it.
This was a very simple example but you can, like in the case of the Ext.ND project on OpenNTF get really clever with the YAHOO UI's myriad of other capabilities. But if all you want is data the method I described below should be ample to get you started.

So all you V5 and V6 people out there that would like to try your hand at AJAX don't be shy, it isn't that hard and if you get stuck ... well please drop me a line and I will do what I can to help. :)

No comments:

Disqus for Domi-No-Yes-Maybe