If you view source on their page you will see how they accomplish this.
They are writing an iframe into the document with a src of the file to
download.
This code needs to be somewhere on your page.
for the window.onLoad event the beginDownload method will be called. It
writes out an iframe with the src attribute to download.
The <noscript> tag is processed on browsers that do not support scripts.
hth,
bill
<script language="JavaScript" type="text/javascript">
<!--
function beginDownload() {
idl = -1;
idl = location.search.indexOf("idl=n");
if (idl < 0) document.write('<iframe height="0" width="0"
src="http://myserver.com/downloads/file.exe"></iframe>');
}
window.onLoad=beginDownload();
//-->
</script>
<noscript>
<iframe height="0" width="0"
src="http://myserver.com/downloads/file.exe"> </iframe>
</noscript>
"Mustafa Rabie" <mr*******@hotmail.com> wrote in message
news:%2******************@TK2MSFTNGP15.phx.gbl...
Hi All,
I want to add autodownload like all the one in Downloads.com. When u
click download now link it redirects you to a page that the file downloads the
application after the page is loaded.
how can i do that?
thanks
mustafa