![]() Here's the current code snippets, you can see the old window.location html cmomented out. ![]() ![]() I've tried various encoding and decoding for the link and the variable the header uses but the best I've got has spaces not _ but the ' that was encoded as ' is shown as _' and I can't get round it. This works, but the problem is now that the filename it gives you to 'save as' isn't the same as the actual filename, ie it has _ instead of spaces and such. So I've tried now pointing the table links back at the php page with path and fname GET variables that are read back in and used in a header to force a download, aka open the open/save dialog box. However, the problem with that is streamable filetypes eg mp3/wmv open instead of save, which the end user would rather have, but with the cell link method they can't rightclick/save-as. I found I had to replace ' for ' in the path/fname strings to avoid ruining the 'quotes'. I've tried various encoding and decoding for the link and the variable the header uses but the best I've got has spaces not but the ' that was encoded as 27 is shown as ' and I can't get round it. I could set the filenames to be hyperlinks to the files, so they can be clicked or rightclick/save-as'd, but instead I make the whole table cell the filename is in a big mouseover with an onclick event of window.location=path\filename. I have a page that lists filenames and the directories they're in. Hi all - it's 6am and I'm bailing with a cry for help on this one.
0 Comments
Leave a Reply. |