Thanks Ray,
I got it working finally with JSON.stringify and now i get that :


[[175,"Project I"],[176,"Project II"],[183,"Project III"]].

Now should i still use deserializeFromJSON method ? i have to attack the next 
step which is updating project table  based on ID 

like 
update project_name1 where id =175
AND 
update project_name2 where id =176
.....



Molay



>Ah, no, you aren't sending JSON. The code you used here:
>
>  data: {"data": handsontable.getData()}, //returns all cells' data
>
>ended up creating N (where N is some number) of form fields that CF saw as
>
>data[0][]
>
>and so on. CF isn't going to like this. So what you need to do is convert
>the data to JSON on the client side first. You have 2 ways of doing this.
>
>In modern browsers, there is a JSON object. So you could do this:
>
>data: {"data": JSON.stringify(handsontable.getData())}
>
>But if you need to support older browsers, you will want to get a JSON
>library. Just Google - there are probably millions of em.
>
>
>
>
>
>> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:6014
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm

Reply via email to