How do I load a csv file with AJAX request?

Get help using Construct 2

Post » Fri Apr 10, 2015 10:46 pm

created a csv file,
imported my file in project bar,
inserted ajax,
also inserted csv as an object,

but when i choose AJAX - request project file, only files that are selectable are "icon-114.png" etc. no sign of my csv file...

what to do? what am I doing wrong?
B
3
Posts: 3
Reputation: 181

Post » Mon Jun 13, 2016 8:27 pm

I have exactly the same problem. I've put a .csv file into the "Files" folder where those .pngs are and also a copy of the .csv with a different name into the root folder, but neither works. And with a .json instead of a .csv it doesn't work either - although I know that this should work, because I've done it successfully in another project few years back.

I use (and have successfully installed) rex's csv plugin of course.

Any advice?
B
13
S
2
Posts: 21
Reputation: 721

Post » Mon Jun 13, 2016 9:14 pm

Did you place it in the project map, using Windows?

Or did you rightclick 'files' (on the right) in Construct and choosed to 'import' ?
B
32
S
18
G
26
Posts: 2,336
Reputation: 19,611

Post » Mon Jun 13, 2016 9:41 pm

Thank you. You are right. You have do it in Construct, too, it's not enough to place the files in windows explorer.

You have to go into Construct, Projects Window, scroll down to the Files folder, right click and import the file. So simple, but easily overlooked.

It works with the JSON already. I struggle to successfully read and print the contents of the .csv, but that might be a .csv-specific problem that I'll surely be able to find a solution to in the csv-plugin thread.
B
13
S
2
Posts: 21
Reputation: 721

Post » Mon Jun 13, 2016 9:46 pm

If not, just ask, there are csv specialists in here (not me yet).
B
32
S
18
G
26
Posts: 2,336
Reputation: 19,611

Post » Tue Jun 14, 2016 12:49 am

B
43
S
12
G
14
Posts: 488
Reputation: 10,570


Return to How do I....?

Who is online

Users browsing this forum: istero and 12 guests