Hello, I would like to use a link for saving the active document (.html file generated with a dtml-document) for Netscape. Anybody knows to how to do it (without press CTRL-S, or not go File / Save As) with Zope or using JavaScript ? I know it for Microsoft Internet Explorer: var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>'; document.body.insertAdjacentHTML('beforeEnd', WebBrowser); WebBrowser1.ExecWB(4, 0); WebBrowser1.outerHTML = ""; However, it does not run in Nestscape. Anybody can help me ? Thanks. JUAN JAVIER CARRERA OBRERO e-mail: jcarrera@uco.es
On Fri, 5 May 2000, Juan Javier Carrera Obrero wrote:
I would like to use a link for saving the active document (.html file generated with a dtml-document) for Netscape.
Your script shoud generate "Content-Disposition: filename" header (replace "filename" with the filename that will appear in Save As dialog). Oleg. (All opinions are mine and not of my employer) ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN.
participants (2)
-
Juan Javier Carrera Obrero -
Oleg Broytmann