Faced with a strange problem under Linux, in Windows everyting is fine.
Code: Select all
var data = { };
data.R = 5;
data.m = 5000;
new SFS2X.Requests.System.ExtensionRequest("reloadM", data);
When I send data from html5 app to java server, server can't read the variables, because server waits vars in long format (params.getLong("m")), but accourding to params.getDump() html5 sends (int) variable (number is not huge 5000, but it could be very huge, depends on user).
I can't change it to int, because this server holds connections from flash, mobile apps (ios, android) and other appliations send variables in currect format. Is there a way to send number variable from html5 in long format?
Ofcourse I may use something like this, but in this way I will need to change a lot.
Code: Select all
SFSDataWrapper data = params.get("m");
long moneyTake;
if(data.getTypeId()==SFSDataType.INT) {
moneyTake = params.getInt("m");
}else{
moneyTake = params.getLong("m");
}
Thanks!