On 7/31/06, achio_84 <[EMAIL PROTECTED]> wrote:
>
>   Hi all....
> I'm facing a problem which is 'less' concern about SVG.
> I have a HTML page for user to input data(actually to input x and y
> coordinates) and these data will be stored in 2 arrays for later use to
> draw a SVG polyline. My problem is how to pass these two arrays(using
> javascript) with data to server side(C#.net) so that I can manipulate
> them later. And how can I get these data at server side? Hope to see
> some code sample.
>
> I know maybe my question is not directly about SVG but I hope that
> anyone of you here can help me solve this problem.
> Thanks for that.
>
> Regards,
> achio.
>
>  
>
There is not one method to communicate to server.
But any way you should first.
var var1=Array1.join()
var var2=Array2.join()
Once you have 2 string you can do:
1- Put in one or two TextArea of an FORM of an IFRAME the post the
IFRAME(hidden).
2- Using AJAX. Depend on the length of the strings. if they are 2048 or less
the you can either POST or GET. (Your C# Make your C# output something such
as "OK") and use var1,var2 as URL variables. POST is a little tricky.
Browser AND/OR version do a little difference. I have seen one  scenarios
that you have to have the data in XML format. (otherwise it hang death) . I
would suggest you should do GET ="Less a little bit of surprise".

Cheers.

Phi


-- 
Phi - Tran
Hugely increase your speed, saving your band-width with ZipProtocol
plus crystal clear SVG Rendering image at
HTTP://oneplusplus.com


[Non-text portions of this message have been removed]



-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to