[jQuery] Re: What's wrong with my syntax?

2007-08-29 Thread Theodore Ni
I believe you need a comma after all but the last function, because they are name : value pairs in an object. On 8/28/07, juliandormon [EMAIL PROTECTED] wrote: I'm trying to use both afterFileAppend and afterFileRemove. I get an syntax error in javascript: Missing } after property list

[jQuery] Re: What's wrong with my syntax?

2007-08-28 Thread Erik Beeson
The syntax for defining an object is: { key1: 'value1', key2: 'value2' } When one of the values in a function, it looks like: { key1: function() {...}, key2: '...' } Your problem is you need a comma before afterFileAppend: --Erik On 8/28/07, juliandormon [EMAIL PROTECTED] wrote:

[jQuery] Re: What's wrong with my syntax?

2007-08-28 Thread juliandormon
Thanks Eric, I see my mistake now. Doh! Erik Beeson wrote: The syntax for defining an object is: { key1: 'value1', key2: 'value2' } When one of the values in a function, it looks like: { key1: function() {...}, key2: '...' } Your problem is you need a comma