0

I have a HTML table with first column as a check box. When I select the check box the row(values from each cell of the row) gets selected and there is a button called 'Save Selected'. What I want is, when I click this button, all the rows whose check box is checked should be written in the file and a window should appear to ask where to store that file.

The button 'Save Selected' should call a function which is written in JavaScript using onClick or call a servlet.

How do I write it in file.

I hope i have elaborated as much as possible.

Thanks in advance.

Manjunath
  • 1
  • 1
  • 2
  • Load or restore the data for the checked rows, open a file, write out the data. The response will be like any file download response and reference the file you just wrote. You could also stream it from memory if you don't actually need a file on the server side. – Dave Newton Mar 15 '12 at 13:02
  • From what I understand, you want to store the file on the client side, right? – MD Sayem Ahmed Mar 15 '12 at 13:35
  • yes i want to store file on client side.. I will be grateful if u provide the code – Manjunath Mar 15 '12 at 14:25
  • Dave will u please elaborate.. – Manjunath Mar 15 '12 at 14:35
  • @Manjunath Please read this http://stackoverflow.com/questions/8080929/saving-a-file-at-client-side-using-javascript – T. Junghans Mar 15 '12 at 20:05

0 Answers0