[jQuery] Re: [Newbie] Why this. doesn't work?

2007-04-02 Thread Andy Matthews
Try wrapping the "this" inside parentheses: $(this).someMethod -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of CF Sent: Monday, April 02, 2007 3:48 AM To: jQuery (English) Subject: [jQuery] [Newbie] Why this. doesn't work? Hi, I have this Jav

[jQuery] Re: [Newbie] Why this. doesn't work?

2007-04-02 Thread Christof Donat
Hi, > I have this Javascript in JSON notation and using the jQuery Ajax. > > var objectJSON = { > myvalue: "hello", > myFunction: function(param) { > this.myvalue = param; > $.ajax({ > type: "POST", > url: '/ajax/address.php', >