Hi Gerard,

         Thank you very much for solving my problem.

Thanks,
Nirav Desai.

On Fri, Jan 29, 2010 at 12:29 AM, Gerard Flanagan <[email protected]>wrote:

> JR wrote:
>
>> I came here looking for a solution to this problem, but ended up
>> solving it myself. For anyone else having this issue, the problem is
>> the trailing comma on the last row in the addRows call. For example
>> (just to be completely clear):
>>
>> data.addRows([
>>    [{v:"1", f:"Boss"}, "", ""],
>>    [{v:"2", f:"Employee 1"}, "1", ""],
>>    [{v:"3", f:"Employee 2"}, "1", ""],
>> ]);
>>
>> ...will error out in IE because of the comma on the last row. But
>> this:
>>
>> data.addRows([
>>    [{v:"1", f:"Boss"}, "", ""],
>>    [{v:"2", f:"Employee 1"}, "1", ""],
>>    [{v:"3", f:"Employee 2"}, "1", ""]
>> ]);
>>
>> ...works fine, after taking out the last comma. IE thinks there's one
>> more empty item in the array, I guess.
>>
>>
>>
>
> Hi,
>
> if you're not aware of it, jslint will pick up on these trailing commas
> (among other things):
>
>  www.jslint.com
>
> regards
>
> G.F.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-visualization-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-visualization-api?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to