Help with AJAX

Get help using Construct 2

Post » Thu Nov 12, 2015 1:47 pm

I need help capture a parameter or variable from an external website to my construck username and password and reflect on a text object is as a mechanic of sessions that the session is not lost when you get Construck2 I would like to see an example .
B
3
Posts: 8
Reputation: 187

Post » Thu Nov 12, 2015 1:59 pm

Could you explain this in a better way?

You are making an Ajax request to a certain website?

What is the Ajax.lastdata you recieve and what do you want to do with that data?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Nov 12, 2015 3:08 pm

What I want to achieve is to capture data from a user of a web to construck as the login is on an external site and capture that session construck should not miss.
B
3
Posts: 8
Reputation: 187

Post » Thu Nov 12, 2015 3:14 pm

Sorry I don't understand..

"capture that session construck should not miss"

What is it you want to do inside construct?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Nov 12, 2015 3:30 pm

Sorry for my English to see if I explain first the user registers from my website extract the username that will appear in the URL of the page

What I do is that I capture Ajax construck the user " john " in my game . I've heard of Browser.Params but nose as used me like a solution to any either with Ajax or Browser.Params

In serious finding log in from an external website and use that section User construck.
Last edited by cristian724 on Thu Nov 12, 2015 3:46 pm, edited 2 times in total.
B
3
Posts: 8
Reputation: 187

Post » Thu Nov 12, 2015 3:30 pm

Message: cristian724 is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
Sorry for my English to see if I explain first the user registers from http // = john

What I do is that I capture Ajax construck the user " john " in my game . I've heard of Browser.Params but nose as used me like a solution to any either with Ajax or Browser.Params
B
3
Posts: 8
Reputation: 187

Post » Thu Nov 12, 2015 3:48 pm

I'm not sure what answer you want..

With Ajax you request an url..
On request completed, the return of that url is Ajax.lastdata..
You can set a text or a variable to that and do anything you want with it..

there are just two things

on start of layout
> Ajax request url

Ajax on completed
> set (text or variable or Array) to ajax.lastdata
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Nov 12, 2015 4:04 pm

perfect! Example I register on the website eBay asking me a username and password I go see my account log in with my account and I'm sailing with my account.

What I want is for the user and that pass Log on to my game I construck authentic on that page and when you start the layout in my game can know the user who logs on ebay as I serve in my game session .
B
3
Posts: 8
Reputation: 187

Post » Thu Nov 12, 2015 4:13 pm

Why would a user want to share their name and password with an app that has nothing to do with the site for which the name and password are?
Sounds like a security hazard to me..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Nov 12, 2015 5:10 pm

I think my example mistook this is just an example what I really want is just to capture the user donot miss the session example

Home section on the website and I want to capture that user my game capture the user data is recorded on the web
B
3
Posts: 8
Reputation: 187

Next

Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 30 guests