[jQuery] jQuery.extend and prototype inheritance?

2008-04-17 Thread edwardbaafi
Hi All, Sorry if this is my second post but I have no idea if my first post went through.. Plus I have additional info/questions: So I'm trying to wrap jQuery/DOM elements with custom methods.. I've looked around and people claim you can use jQuery.extend (the one documented under utilities not

[jQuery] Wrapping jQuery Objects

2008-04-17 Thread edwardbaafi
Hi, I'd like to know an elegant and efficient way to wrap jQuery objects.. Before jQuery, I would wrap DOM elements with additional inherited methods (like http://www.codeproject.com/KB/scripting/MiniRacer.aspx).. I know about extend but I need to be able to assign methods to only certain classe

[jQuery] Re: Generating a Mousedown event programmatically - similar to click() generation..

2008-02-04 Thread edwardbaafi
true, fn,eventParams ); }); }, On Feb 4, 5:03 pm, B <[EMAIL PROTECTED]> wrote: > Hi, > I am trying to also trigger the draggable from within a javascript > function. If possible can you please share your source hack. > > Thanks > > On Jan 29, 2:49 pm, e

[jQuery] Re: Generating a Mousedown event programmatically - similar to click() generation..

2008-02-04 Thread edwardbaafi
rigger the draggable from within a javascript > function. If possible can you please share your source hack. > > Thanks > > On Jan 29, 2:49 pm, edwardbaafi <[EMAIL PROTECTED]> wrote: > > > >http://docs.jquery.com/Eventshasmousedown, mouseup, mousemove, etc > > &

[jQuery] Undocumented "fn" parameter in Trigger function

2008-02-01 Thread edwardbaafi
Does anyone know what the trigger function's "fn" parameter is for and where it is used? The API/1.2/Events documentation shows only two parameters for the trigger function (type, data) yet the 1.2.2 source has three (type, data, fn) and refers to this third parameter as the "extra function." I c

[jQuery] Re: Generating a Mousedown event programmatically - similar to click() generation..

2008-01-29 Thread edwardbaafi
> http://docs.jquery.com/Events has mousedown, mouseup, mousemove, etc > Yes, you are able to trigger these events using "trigger( type, data )", but what about setting the event properties? In my case, when an element is "draggable" and it's mousedown event fires, the click function in ui.mouse

[jQuery] Generating a Mousedown event programmatically - similar to click() generation..

2008-01-28 Thread edwardbaafi
Hi.. Does anyone know how one could generate a mousedown event programmatically in order to cause a draggable to start dragging? I have a number of overlapping, absolutely positioned divs where certain sections of the background images are transparent.. What I need to do is to allow the user to