PDA

View Full Version : javascript & XML


rickyca
11-13-2002, 09:15 PM
I established a catalog page in XML, which uses Javascript-DOM to add, remove and sort the products by their prices.
But which Javascript function should I use in order to save the modified page into local hard disk? to sort products as well.

thanks from rickyca

Roy Sinclair
11-13-2002, 09:56 PM
None. Javascript doesn't have an ability to write to the user's hard disk unless you can fit the whole document into a cookie.

Don't give up hope though. You can simulate this ability by simply posting the newly created document back to the server to a server side script which can write the appropriate response headers onto the document and send it back to the user like a file being downloaded from the server.