asprajesh Posted December 8, 2006 Share Posted December 8, 2006 Hi Al I m very new for ajax ..i want to save a file onclick of <a href="somthing.asp">save file</a>..on user local disc ..using ajax ..So plzzz give Code or any suggetion that how i can do thisThanx in advance...\ Link to comment https://forums.phpfreaks.com/topic/29893-how-to-download-text-file-on-client-system-using-ajax/ Share on other sites More sharing options...
ober Posted December 8, 2006 Share Posted December 8, 2006 You cannot do this with AJAX. Saving something on the hard disk of a user's computer (other than cookies) requires something like an ActiveX control.Could you imagine the security nightmare if every other website wanted to put a file on your computer? Link to comment https://forums.phpfreaks.com/topic/29893-how-to-download-text-file-on-client-system-using-ajax/#findComment-137533 Share on other sites More sharing options...
artacus Posted December 9, 2006 Share Posted December 9, 2006 Yeah I was trying to save a CSV file in this way but it can't be done w/ AJAX Javascript it seems. Link to comment https://forums.phpfreaks.com/topic/29893-how-to-download-text-file-on-client-system-using-ajax/#findComment-137843 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.