text object

Get help using Construct 2

Post » Tue Dec 31, 2013 10:05 pm

Hello i would like to know how to make an app for the web, who can load an external text file and show that text inside the text object.

thanks to all
and hapy new year 2014 :D
B
34
S
13
G
6
Posts: 1,643
Reputation: 8,761

Post » Tue Dec 31, 2013 10:12 pm

Did you screw around with the AJAX object?
HARMLESS SIGNATURE THAT IS VIEWED BY OTHERS AS OFFENSIVE AND CONTROVERSIAL
B
14
S
3
G
3
Posts: 356
Reputation: 4,377

Post » Tue Dec 31, 2013 11:00 pm

yeah i was testing the ajax object but i cant find an option how to copy from a file to the thext object present in my app.
i want to copy a txt file present on the ftp and just show that on my html5 app, inside the text object :D
B
34
S
13
G
6
Posts: 1,643
Reputation: 8,761

Post » Wed Jan 01, 2014 12:46 am

AJAX will do it, but there are permission issues. You can't test it from your local host. If you export & upload to your site, and the file is (I'm not sure of the rules) on the site somewhere, you should be able to access it.

I just tried this myself and it worked.
The site itself was uploaded to a subdirectory of Construct2Stuff, so the data does not have to be within the project itself.blackhornet2014-01-01 00:50:54
ImageImageImage
B
71
S
21
G
220
Posts: 3,648
Reputation: 123,725

Post » Wed Jan 01, 2014 1:15 am

thanks :D going to test that now
B
34
S
13
G
6
Posts: 1,643
Reputation: 8,761

Post » Wed Jan 01, 2014 3:06 am

i have done the exact stuff you show me but its not working are you sure dont have made some mistakes in the "set text to..."??
B
34
S
13
G
6
Posts: 1,643
Reputation: 8,761

Post » Wed Jan 01, 2014 3:16 am

oki sorry it was my fault i put "www" il the url lol :D thanks for your time.
B
34
S
13
G
6
Posts: 1,643
Reputation: 8,761


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests