Integration of PHP and AJAX in construct2

Get help using Construct 2

Post » Tue Jul 30, 2013 1:22 pm

Hi friends,

    I integrated php and Ajax in construct2 using your sample ajax tutorial in FAQ, but for me it is not working. I want username and score how much he got in that game after clicking a button. Could anyone please help me?
B
3
Posts: 29
Reputation: 233

Post » Tue Jul 30, 2013 2:20 pm


What's your error ...?
Post your code, etc.
B
39
S
15
G
5
Posts: 295
Reputation: 6,089

Post » Tue Jul 30, 2013 2:48 pm

https://www.dropbox.com/s/3str9uru04lmni4/inte.jpg
B
3
Posts: 29
Reputation: 233

Post » Tue Jul 30, 2013 3:08 pm

Are you sure you can make AJAX requests to the localhost?
B
55
S
12
G
9
Posts: 339
Reputation: 9,564

Post » Tue Jul 30, 2013 3:28 pm

He can if he's using wamp or uwamp (or some apache server) ...
You should name your ajax request tag and provide us your html page code.

For debugging ajax request when your are previewing your project on your browser open the development tools and look at the network tab, you will see the files called by your Ajax request and if there is some errors.Joskin2013-07-30 15:31:19
B
39
S
15
G
5
Posts: 295
Reputation: 6,089

Post » Tue Jul 30, 2013 5:25 pm

Instead of localhost use some other free web host. For example I am using 000webhost.com.
B
14
S
6
G
4
Posts: 107
Reputation: 4,838

Post » Wed Jul 31, 2013 5:58 am

sure I gave AJAX in localhost itself
B
3
Posts: 29
Reputation: 233

Post » Wed Jul 31, 2013 8:53 am

So ? Your page code ?

Did you look at the debugger as I explained ?
B
39
S
15
G
5
Posts: 295
Reputation: 6,089

Post » Wed Jul 31, 2013 9:14 am

I'm going to take a wild stab in the dark and say that @trollface isn't using a server and that's the problem.
B
55
S
12
G
9
Posts: 339
Reputation: 9,564

Post » Wed Jul 31, 2013 11:01 am

Im not using a server? I am using a free web host, where I can upload my php files. You can even use dropbox for php uploads and make AJAX request on the dropbox URL.
B
14
S
6
G
4
Posts: 107
Reputation: 4,838

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 31 guests