|
Ajax for 1.1 - SyntaxError Expected ; -- CostinManda --
I have a very simple javascript that tries to send to the server an array of objects using Ajax.dll for net 1.0 arr=new Array(); arr ={x:e.x,y:e.y,t:date.valueOf()}; WebForm1.Save(arr,cb_Save); and I get this response.error text: SyntaxError Expected ; I even tried to send three objects instead of one like this: arr =e.x; arr =e.y; arr =date.valueOf(); but I get the same thing. Can you please help me? |
|
-- MichaelSchwarz --
Hi, what type is e? And, what to you get if you call this statement before the Ajax method: alert(AjaxPro.toJSON(arr)); Regards, Michael On 7/10/06, Costin Manda <costin.manda> wrote: I have a very simple javascript that tries to send to the server an array of objects using Ajax.dll for net 1.0 arr=new Array(); arr ={x:e.x,y:e.y,t:date.valueOf()}; WebForm1.Save(arr,cb_Save); and I get this response.error text: SyntaxError Expected ; I even tried to send three objects instead of one like this: arr =e.x; arr =e.y; arr =date.valueOf(); but I get the same thing. Can you please help me? |
|
-- MichaelSchwarz --
AjaxPro is running with 1.1 and 2.0, I've changed the title on ajaxpro.info... ;) The old Ajax.dll development has been moved to BorgWorX, you can get support and updated versions at http://www.borgworx.com /.Regards, Michael On 7/10/06, Costin Manda <costin.manda> wrote: Isn't AjaxPro for NET 2.0? I am using an old ajax.dll, for net 1.0. I hope I am not saying anything stupid here, but on the main page it says in big font: Microsoft.NET Framework 2.0 |
|
-- CostinManda --
Isn't AjaxPro for NET 2.0? I am using an old ajax.dll, for net 1.0. I hope I am not saying anything stupid here, but on the main page it says in big font: Microsoft.NET Framework 2.0 |
|
-- CostinManda --
Thanks :"> it works now. |
|
-- MichaelSchwarz --
Did you update to AjaxPro or did you find an error on your side? Regards, Michael On 7/10/06, Costin Manda <costin.manda> wrote: Thanks :"> it works now. |
|
-- CostinManda --
Update. Works like a charm. Thanks. |
|
-- MichaelSchwarz --
Great, love to see that it is working for you! Regards, Michael On 7/10/06, Costin Manda <costin.manda> wrote: Update. Works like a charm. Thanks. |