Login problem

Get help using Construct 2

Post » Sun Jun 09, 2013 10:24 pm

I know that this subject has been discussed a lot. The deal is that, after reading many posts and comments, I still cant make my login system work. Its a very simple system, just two text boxes for username and password, then an AJAX request to my web. No matter what I do or how, the AJAX.LastData its always 0. I know its not a code error because if i change the info directly in the code and i run it through my browser it returns what i need.

Ive tried changing the " and addin ' on the request url and so on but still nothing.
Also tried in different browsers... nothing...
Ive tried just about everything that people here have suggested but wont make it.
EDIT: Also tried with "header('Access-Control-Allow-Origin: *');" and more... Im starting to believe its a bug... Im running the release 132(64-bit) for Win8... Everything works beautifully but this....

Here is the code:


Here is the event in C2:


Ill really appreciate any help, ive been hours trying to figure out the problem.
Cheers,
Enric.enricgrau2013-06-10 04:26:38
B
5
Posts: 6
Reputation: 312

Post » Mon Jun 10, 2013 8:35 pm

*bump*
Sry for bumping but this is driving me crazy haha
Ive been thinking that it can be an issue with the "localhost". Im using phpMyAdmin from my web server. Tried with "MySQL" but it returns error...
Cheers
B
5
Posts: 6
Reputation: 312

Post » Mon Jun 10, 2013 9:09 pm

It seems server side problem, you might find help in stackoverflow
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Mon Jun 10, 2013 9:21 pm

Output the result in a textbox. If an error occurs on the server, Ajax.LastData() might contain the error report.
B
71
S
30
G
25
Posts: 984
Reputation: 19,503

Post » Mon Jul 29, 2013 7:12 pm

Are you using WAMP or XAAMP?

I'm asking, because half of my stuff doesn't work on WAMP.
B
22
S
9
G
3
Posts: 203
Reputation: 3,653


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 46 guests