Hi everyone, Im working in a big project of ajax and I would like to use a plugin pattern thats not working in pratice...
All javascript in the project I would like to transform in a jQuery plugin. But to achieve this I need to separate in categories in libraries for this site Im working So, I wanna to make this: $("seletor").project.ajax.remote(); $("seletor").helpers.options(); But when Im creating a plugin like this: $.fn.project.ajax.remote = function() { //code } Its not working... Using extend I reach it, but extending methods of jQuery objects I cant do that. I need this because I create a ajax library just for the site and a lot of thing, so we need this pattern... How I can accomplish this???? thanks everyone...