Thanks Ariel,

Good alternative you suggest, but its really a alternative that is not
solve the problem, I would divide to make thing easy and will create
another trouble...

I´ll gonna try a different manner... very thanks for suggest...

On Mar 29, 11:38 am, Ariel Flesler <[EMAIL PROTECTED]> wrote:
> You can't.. or you'll lose the `this`.
> Unless you do: $("seletor").project().ajax().remote(); and each method
> returns the `this`.
>
> Cheers
>
> --
> Ariel Fleslerhttp://flesler.blogspot.com/
>
> On Mar 28, 11:23 am, alexanmtz <[EMAIL PROTECTED]> wrote:
>
> > 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...

Reply via email to