How to send SFSObject with Array values like IntArray ...

Post here your questions about the HTML5 / JavaScript for SFS2X

Moderators: Lapo, Bax

vietnv2707
Posts: 1
Joined: 20 Jun 2013, 09:26

How to send SFSObject with Array values like IntArray ...

Postby vietnv2707 » 20 Jun 2013, 09:42

I'm using HTML5 Client API. I want to send Array Data and server'll parse to SFSObject with Array values (like IntArray, LongArray in java). However, server parse data to SFSArray. Please help me!
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: How to send SFSObject with Array values like IntArray ..

Postby Bax » 20 Jun 2013, 13:14

Using HTML5 / Javascript there is not such thing as an int, because the language doesn't support static typing.
Therefore typed arrays will always convert to a generic Array which is the SFSArray.

Just to clarify, the SFSArray is the equivalent of a Javascript Array where you can put any object of any type, so it is a perfect match.
Paolo Bax
The SmartFoxServer Team

Return to “SFS2X HTML5 / JavaScript API”

Who is online

Users browsing this forum: Bax and 18 guests