Hi Mark. I intend to but have to hold my hands up as I have let the js / ajax framework knowledge slip a bit in the last 12 months (as I've been working on other things mainly).
Thats the reason for trying to encapsulate the decision, so if I find a better alternative I can change the application as painlessly as possible. On Sep 9, 5:28 pm, Mark Ireland <[EMAIL PROTECTED]> wrote: > How come you guys have not checked out YUI, extJS etc? > > > > > From: [EMAIL PROTECTED] > > To: [email protected] > > Date: Sun, 7 Sep 2008 07:39:38 -0500 > > Subject: [CFCDEV] Encapsulating an AJAX library / framework > > > I have been given the task on a project of implementing some AJAX in the > > admin area in such a way that if the framework changes its as simple as > > possible to change to the new framework. > > > I have decided on jQuery and so far its working well :-) > > > To try and minimise change to the views I created a cfc called AjaxWrapper > > that has various methods to create html (the <script> tags with js > > libraries etc) for the <head> of pages as well as return js strings that > > can be used on href or onClick events in the View pages. The controller > > gives all the returned strings from the AjaxWrapper to the Views that need > > it. AjaxWrapper is given the current framework name in its init() method by > > the main factory. > > > I'm going to pick another framework and see how successful my 'Encapsulate > > what varies' work has been but wondered if anyone has done something like > > this before and how they designed it. > > > My other option I considered was to create wrapper functions in javascript > > that used the selected framework so if the framework changed I should only > > need minimal changes to have everything running. > > > It's early days and I may well have chosen a dodgy design but it has been > > an interesting exercise so far. > > > Thanks > > > Alan > > _________________________________________________________________ > Net yourself a bargain. Find great deals on > eBay.http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Frover%2Eebay%2Ecom%2F... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CFCDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfcdev?hl=en -~----------~----~----~----~------~----~------~--~---
