SFS2X.LoginRequest is not a constructor.

Post here your questions about the HTML5 / JavaScript for SFS2X

Moderators: Lapo, Bax

Ninjaoninja2
Posts: 188
Joined: 22 Sep 2013, 23:33

SFS2X.LoginRequest is not a constructor.

Postby Ninjaoninja2 » 20 May 2018, 11:48

Hello,
This time I've used the search function for about an hour and haven't been able to come up with anything. :shock:

I think this actually might be a bug. When I'm trying to login, no matter how I send the request, it just says that SFS2X.LoginRequest is not a constructor, it was just working fine before the API update.

Here's my code:

Code: Select all

sfs.send(new SFS2X.LoginRequest(document.getElementById("Username").value, document.getElementById("Password").value, null, "SP"));

And yes, the dom elements I'm calling are in the index.html.
User avatar
Bax
Site Admin
Posts: 4397
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: SFS2X.LoginRequest is not a constructor.

Postby Bax » 21 May 2018, 07:35

Can you please send a test case?
Because we tested the new API in all our examples, and they work as expected. No "not a constructor" error ever.
Maybe something else is going on?
Paolo Bax
The SmartFoxServer Team
Ninjaoninja2
Posts: 188
Joined: 22 Sep 2013, 23:33

Re: SFS2X.LoginRequest is not a constructor.

Postby Ninjaoninja2 » 21 May 2018, 13:30

Bax wrote:Can you please send a test case?
Because we tested the new API in all our examples, and they work as expected. No "not a constructor" error ever.
Maybe something else is going on?

I’ve been wondering that myself, I sent my code and the information to the support email.

Return to “SFS2X HTML5 / JavaScript API”

Who is online

Users browsing this forum: No registered users and 4 guests