Re: [Wonder-disc] ERJQuery

2013-05-10 Thread Johnny Miller
Cool. Thanks Ken. I tried out some stuff last night. Basically I formatted the HTML for the AjaxUpdateContainer to be something like this: div data-wonder-id=AUC data-wonder-options = {'someKey': 'someValue'}.../div Then I create an on load statement: $(window).load(function() {

Re: [Wonder-disc] ERJQuery

2013-05-10 Thread David LeBer
Some suggestions: Use something like: $j = JQuery.noConflict(); So there is absolutely no problem with mixing JQ and other libs. You can also replace $(window).load(function(){... etc with $j(function(){... I'd suggest namespacing your stuff: var WOjax = WOjax || {}; WOjax.AUC = {... Don't

Re: [Wonder-disc] ERJQuery

2013-05-10 Thread Johnny Miller
Hi David, Thanks a lot that is really good input. I really like the idea of using delegation and definitely creating the no conflict variable and the self invoked function for the on load event is a must. It would be cool to create a set of prefabricated delegates (like your example) - that

Re: [Wonder-disc] ERJQuery

2013-05-10 Thread Johnny Miller
Hi David, Question about $caller - do you mean the xhr? And the same for target do you mean the element that is being updated? Thanks On May 10, 2013, at 12:18 PM, David LeBer dleber_wo...@codeferous.com wrote: Some suggestions: Use something like: $j = JQuery.noConflict(); So

Re: [Wonder-disc] ERJQuery

2013-05-09 Thread Johnny Miller
Hi Pascal, I started working on a JQuery framework and I'm up to one component! You can see it here: http://www.kahalawai.com/JQuery I'm pretty busy but I think I could make one component a day. I was wondering what people thought about a couple of questions I have: 1. Should I use data

Re: [Wonder-disc] ERJQuery

2013-05-09 Thread David LeBer
Yes definitely use the data attributes. Basically what I've been experimenting with is to have an init() method that is called on page load. It scans the dom looking for elements of AjaxJQ class, reads the component type from one data attribute and inits it with params from another data

Re: [Wonder-disc] ERJQuery

2013-05-09 Thread Johnny Miller
Hi David, On May 9, 2013, at 1:45 PM, David LeBer dleber_wo...@codeferous.com wrote: Yes definitely use the data attributes. OK. Basically what I've been experimenting with is to have an init() method that is called on page load. It scans the dom looking for elements of AjaxJQ class,

Re: [Wonder-disc] ERJQuery

2013-05-09 Thread Ken Anderson
I think this is awesome! I'm definitely planning on using JQuery within the next few months, and will happily contribute once I get to that point. Ken On May 9, 2013, at 6:19 PM, Johnny Miller jlmil...@kahalawai.com wrote: Hi Pascal, I started working on a JQuery framework and I'm up to