I have a web-page with complicated form. Also, there is a button “preview”, which is using jquery to collect form data, post it to server, the server generates .rtf or .txt document and returns a link to created file to client. Afterwards, I need user to automaticly download this file. To do this, I open this received link programmaticly in callback function.
Everything works fine, except for IE7-8, in which the security bar appears, preventing download (which is unacceptable, due to it will refresh the form). I assume this happens because of “non-active click”, but I cannot figure out how to get rid of this behaviour.
I have a web-page with complicated form. Also, there is a button preview, which
Share
This is security concern, and it should be there, to prevent scripted download of files, without confirmation of user.
Don’t generate .rtf/.txt files for preview, use HTML to preview. When user will want .rtf/.txt, he will download it, when you want just a preview, use WYSIWYG editor, to handle documents, like Google documents does.