Help||Problem using a method "SendAndLoad"
Posted: 15 Jan 2017, 15:42
I looked in the forum to find a solution, and I saw that other people have the same problem that the received data is undefined anyone know how to fix it?
SmartFoxServer support forums
https://www.smartfoxserver.com/forums/
https://www.smartfoxserver.com/forums/viewtopic.php?f=1&t=19076
Lapo wrote:Hi,
can you give me the details of what you're doing? In other words the server side code that you're using and what output is generated by the remote service you're calling?
Thanks
Code: Select all
function handleRequest(cmd, params, user, fromRoom)
{
if (cmd == "get")
{
var _send = new LoadVars()
var _load = new LoadVars()
// Set parameters to send
var username = params["username"]
var pass = params["pass"]
trace(pass username)
_send.username = username
_send.pass = pass
// Handle the remote data
_load.onLoad = function(success, errorMsg)
{
if (success)
{
trace("success")
}
else
{
trace("Loadvar Failed. " + errorMsg)
}
}
_send.sendAndLoad("https://www.tipost.co.il/chat/Include/Pages/CheckUser.php", _load, "POST")
}
}
The owner of this website (http://www.tipost.co.il) has banned your access based on your browser's signature (3527738b54863d95-ua21).<