Closed Thread Icon

Topic awaiting preservation: Download by clicking a link (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8827" title="Pages that link to Topic awaiting preservation: Download by clicking a link (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Download by clicking a link <span class="small">(Page 1 of 1)</span>\

 
Yossi Admon
Bipolar (III) Inmate

From: Israel
Insane since: Nov 2001

posted posted 08-21-2003 08:48

Hi,
I would like to click a link within my page that should enable the user to download file from the server (the user should keep working on the page after the download completed).
I succeeded to do so by using the following code:

function Download(itemName)
window.open("http://...../FileDownloadServlet? itemName=" + encodeURIComponent(itemName), '_blank', "width=1,height=1,left=0,top=0");
}
?..
<a href=?javascript:void(0)? onClick=?Download(name[1]); return false;?>Click to download</a>

The problem I?m facing is that I?m using a new window for this action; can I do it without a window and with no using frames?

10x in advanced
Yossi Admon


Yossi Admon
Bipolar (III) Inmate

From: Israel
Insane since: Nov 2001

posted posted 08-21-2003 14:49

I solved it using the <a href=... target="hiddenFRM">
...
<IFRAME name="hiddenFrm" FRAMEBORDER="0" WIDTH="1" HEIGHT="1"></IFRAME>

« BackwardsOnwards »

Show Forum Drop Down Menu