2

Is there any method to use to save data from webpage to excel file or text file using jquery ?

1

1 Answer 1

2

There's no purely client-side solution using only a browser and jQuery, no. You either have to involve a web server (and even then, the user has to handle the "save file" dialog box), or a "thick" technology like Flash or a signed Java applet. (In either case, the user would have to grant the permissions to do it; most users being somewhat — and appropriately — paranoid, you'd have to already have a relationship with them.) Even the new File API, which offers limited access to the local file system (with the user's permission), doesn't support writing files.

You can open a window with the file data in it, but then the user has to take the action of saving it to disk.

Sign up to request clarification or add additional context in comments.

2 Comments

I have got this page : jquery.tiddlywiki.org/twFile.html , is it ok to use it , i dont want to have heavy code , im not so good at coding ?
@rolandfeghaly: I'm not familiar with it, but note that it says it only works from local files (file:// URIs). And it uses "thick" technologies (ActiveX, Java, etc.).

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.