How do I redirect to a new page after a successful ajax post

Just started using Construct 2? Post your questions here

Post » Mon Jul 25, 2016 2:56 pm

I have an ajax call to submit some data to use on a different page to the game. the ajax call is successful, but cant figure out a way to add a redirect.

i have tried adding a redirect using the browser action "Go To Url" but this happens before the ajax call has finished. is there a way to get a interval until i get a successful ajax call.?

Any help would be greatly appreciated.

Jordan
B
3
Posts: 1
Reputation: 177

Post » Tue Jul 26, 2016 10:08 pm

Try to use 'wait' action before go to url.
B
22
S
9
Posts: 5
Reputation: 1,925

Post » Tue Jul 26, 2016 10:25 pm

Ajax > On completed "tag" , does not work ?

(browser action goes under it)
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest