none
Clicking "Export" on a webpage does not bring up File Download box RRS feed

  • Question

  • I am trying to click "Export" on a webpage where I have selected "EXCEL" as the file format, but the file download box does not pop up.  I have tried .click and .fireEvent and all that seems to happen is the page refreshes.  If I were to click it manually it works, but that is not what I need.

    Please Help!

    Thanks!

    <div class=" " style="display:inline;font-family:Verdana;font-size:8pt;height:30px;">
    				<table cellpadding="0" cellspacing="0" style="display:inline;">
    					<tr>
    						<td height="28px"><select name="ctl00$Content$rptViewer$ctl01$ctl05$ctl00" id="ctl00_Content_rptViewer_ctl01_ctl05_ctl00" title="Export Formats" onChange="document.getElementById(&#39;ctl00_Content_rptViewer_ctl01_ctl05_ctl01&#39;).Controller.SetViewerLinkActive(document.getElementById(&#39;ctl00_Content_rptViewer_ctl01_ctl05_ctl00&#39;).selectedIndex != 0);" style="font-family:Verdana;font-size:8pt;">
    							<option selected="selected" value="Select a format">Select a format</option>
    							<option value="XML">XML file with report data</option>
    							<option value="CSV">CSV (comma delimited)</option>
    							<option value="PDF">Acrobat (PDF) file</option>
    							<option value="MHTML">MHTML (web archive)</option>
    							<option value="EXCEL">Excel</option>
    							<option value="IMAGE">TIFF file</option>
    							<option value="WORD">Word</option>
     
    						</select></td><td width="4px"></td><td height="28px"><a id="ctl00_Content_rptViewer_ctl01_ctl05_ctl01" onclick="
    var formatDropDown = document.getElementById(&#39;ctl00_Content_rptViewer_ctl01_ctl05_ctl00&#39;);
    if (formatDropDown.selectedIndex == 0)
        return false;
    window.open(document.getElementById(&#39;ctl00_Content_rptViewer&#39;).ClientController.m_exportUrlBase + encodeURIComponent(formatDropDown.value), &#39;_blank&#39;)
    formatDropDown.selectedIndex = 0;
    document.getElementById(&#39;ctl00_Content_rptViewer_ctl01_ctl05_ctl01&#39;).Controller.SetViewerLinkActive(document.getElementById(&#39;ctl00_Content_rptViewer_ctl01_ctl05_ctl00&#39;).selectedIndex != 0);return false;" onmouseover="this.Controller.OnLinkHover();" onmouseout="this.Controller.OnLinkNormal();" title="Export" href="#" style="font-family:Verdana;font-size:8pt;color:Gray;text-decoration:none;"><script type="text/javascript">
    							document.getElementById('ctl00_Content_rptViewer_ctl01_ctl05_ctl01').Controller = new ReportViewerLink("ctl00_Content_rptViewer_ctl01_ctl05_ctl01", false, "", "", "#3366CC", "Gray", "#FF3300");
    						</script>Export</a></td>
    					</tr>
    				</table>
    			</div><

    Friday, November 30, 2012 2:16 PM