View Full Version : 2D array

06-01-2006, 05:10 PM
I am working on a web application where is use AJAX and SVG. I need to use 2 dimensions array to keep the content in term of x and y coordinate, I can create 2D in C# ajax method side but it cannot remember the value.
So I tried to create the array in C# and pass the result to javascript to keep then I tried to use ajax method that have the 2d array return from previous method as input. It is not possible though. Any sugggestion ?? It seems like javascipt can't handle the 2d array passes to it.

06-20-2006, 04:01 PM


06-20-2006, 04:50 PM
JavaScript has very few bindings beyond straight up text processing. It can kind of handle image data (height and width at least) and it has bindings for talking to JAVA applets in the browser, but not much else.

You can't just send stuff from C# on the server up. You gotta send text data that JavaScript can parse.