Skip to main content
Participant
December 22, 2010
Question

Problem with 'Download Link'

  • December 22, 2010
  • 2 replies
  • 414 views

Hello all.  I am here today with a mind-boggling problem.  I have built a pretty nice excel download page, which is working great for me.  AND well over 90% of my users.  But there are a select few, to which the link fails.  Basically, I have a 'button' link:


<input type="button" name="Download" value="#strPOName# BLD Draft"
                    onClick="window.open('reports/download_PO_BLDform_Draft.cfm?intPO=#intUserPO#', 'download'); return false;">


For some users, they get the following error message: "Internet Explorer cannot download ...download_PO_BLDform_Draft.cfm from myWebsite".  So, its like it is trying to download the cfm page instead of the excel file being created by the page.  I dont understand why this happens to some people, but I wonder if it has something to do with their particular IE installs, some other software blocking the download?  Has anyone seen this before?


It took me a long time to narrow it down to the code above.  For one user, I worked it down to this, and in another part of the application provided this alternative:


<a href="case/download.cfm?intLaborType=#form.intLaborType#" class="linkButton" target="_blank">Download</a>


For some reason, this link works for them, while the 'button' link does not.  Please help me understand why some people get this error message.  Thanks in advance!

    This topic has been closed for replies.

    2 replies

    Inspiring
    December 23, 2010

    See if the people having the problem are running a different version of excel than the ones who are not.

    Inspiring
    December 23, 2010

    Hi,

    Probably some of the users, they would have disabled the Script in their browsers. so it might not be working.

    If you give as a link, its going to take to the page, there is no script needed for this.

    Just a guess.