[jQuery] Re: jQuery and the 'this' keyword

2009-07-30 Thread RobG
On Jul 31, 5:44 am, "#micah" wrote: > I've created a javascript object like so: > > var myObj={ >      //    internally used >      OtherFunction: function(){ alert('hi');}, > >      //    externally used >      EditInfo: function(){ >            this.OtherFunction(); >      } > > }; > > if i b

[jQuery] Re: jQuery and the 'this' keyword

2009-07-30 Thread Brett Ritter
On Thu, Jul 30, 2009 at 3:51 PM, #micah wrote: > > Would you recommend using the .bind(type, data, fn) function to > achieve what i'm trying to do? Or could you steer me in the right > direction? I'm surprised that the .click() works in that manner. How > would you dynamically assign that function

[jQuery] Re: jQuery and the 'this' keyword

2009-07-30 Thread James
;                                                 > >   To:         "jQuery (English)"                 >                                                   > >   Date:       07/30/2009 03:52 PM                                             &g

[jQuery] Re: jQuery and the 'this' keyword

2009-07-30 Thread Michael Lawson
To: "jQuery (English)" Date: 07/30/2009 03:52 PM Subj

[jQuery] Re: jQuery and the 'this' keyword

2009-07-30 Thread #micah
Would you recommend using the .bind(type, data, fn) function to achieve what i'm trying to do? Or could you steer me in the right direction? I'm surprised that the .click() works in that manner. How would you dynamically assign that function to that button? On Jul 30, 3:48 pm, Michael Lawson wro

[jQuery] Re: jQuery and the 'this' keyword

2009-07-30 Thread Michael Lawson
Because you are binding the click event to the button and not your object cheers Michael Lawson Development Lead, Global Solutions, ibm.com Phone: 1-276-206-8393 E-mail: mjlaw...@us.ibm.com 'Whether one believes in a religion or not, and whether one believes in rebirth or not, there isn't any