cluettr
28 Jun 2007, 11:22 AM
I have for the last 2 years or so used prototype.js as my framework. I've run into some issues here with the prototype adapter and I'm willing to try the YUI framework for my calls. The only problem is I am not sure how I would generate a YUI function to be the equivalent of the Ajax.Updater function of prototype.js where the div or span is automatically populated with the response.
My thinking is to pass the response to a success callback function and set the inner div. Does this sound accurate? Will this process any <script></script> tags that are part of the response similar to setting evalScripts to true in prototype.js?
I guess realistically I could create a wrapper function that accepts the same variables in the same structure as a typical Ajax.Updater and not have to change all that much...
Your input would be appreciated. Thank you.
My thinking is to pass the response to a success callback function and set the inner div. Does this sound accurate? Will this process any <script></script> tags that are part of the response similar to setting evalScripts to true in prototype.js?
I guess realistically I could create a wrapper function that accepts the same variables in the same structure as a typical Ajax.Updater and not have to change all that much...
Your input would be appreciated. Thank you.