/    Sign up×
Community /Pin to ProfileBookmark

Write variables on a csv file

Hallo,
I have a problem to solve but due to my little experience with javascript need help.
I need to write variables on a csv file, or text file as well. I did first search on the net and found something that would match my need ; the URL is :

[url]http://it.finance.yahoo.com/valuta/convert?amt=1&from=EUR&to=USD&submit=Converti[/url]

must click on “Scarica i Dati” to download a file “quotes.csv” with the data printed in the page.
I did try to do the same but can’t pass the values to the csv file, I don’t understand how it works.
Can somebody give me a help. Please.

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@gil_davisApr 12.2007 — It is apparently a server technology. Their server must know what quotes.csv does.
Copy linkTweet thisAlerts:
@hammer62authorApr 12.2007 — It is apparently a server technology. Their server must know what quotes.csv does.[/QUOTE]



Ok gil, Thks for your answer.

Does anybody have a suggestion to solve this problem, or anybody knows another way to write on a file.
Copy linkTweet thisAlerts:
@gil_davisApr 12.2007 — Javascript can't do much for files. There are too many restrictions. VBScript can do files, but that would limit you to IE. Your best chances are with some server side technology. If you have access to a server with asp, you can take advantage of vbscript on the server side to create the file and then serve it to the user.

There are undoubtably many other server technologies that will do the job, but you are not going to be able to use javascript to make a file on the client.

The best you could do client side is make a page that looks like csv and have the user cut-and-paste the results to a text file.
Copy linkTweet thisAlerts:
@hammer62authorApr 12.2007 — Understood gil, thks.

The point is that I don't work on pc or server but on a card which has a webserver enbedded and I don't know if it supports something like VBscript or else rathen than javascript only.

But thank u for ur answer.
×

Success!

Help @hammer62 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...