locked
How to integrate JQuery with html RRS feed

  • Question

  • User-1542926673 posted

    I am automating a process wherein I am suppose to launch a page and download only .csv files from there. I have written JQuery code for performing this action and this code works fine on chrome console but I don't know how to integrate it with HTML so that it works.

    $(document).ready(function () {
           $('.ibody tr').each(function (a, b) {
      var count=0;
          var name = $('.cl', b).text();
          if(name.indexOf(".CSV")!==-1 && name.indexOf("TAS")!==-1){
          var d= a-9;
          var hiddenIFrameID = 'hiddenDownloader' + count++;
          var element=document.createElement('a');
         element.href = "https://www.shipper-ml.com/viewReports.do?ctrl=reportListForDownload&action=DownloadReport&param="+d;
    	 element.target='_blank';
    	 element.classList.add("download");
    	 document.body.append(element);
    
              }
                });
    			setTimeout(function(){
    			var linkslength=$(".download").length;
    			for(var i=0;i<linkslength;i++)
    			{
    			$(".download")[i].click()}
    			},500);
            });

    Thursday, October 11, 2018 6:16 AM

All replies

  • User839733648 posted

    Hi shubhi12,

    According to your description and code, I could not fully understand your requirement.

    I've clicked the href link and find the .ibody class on the page.

    Do you mean that want to download the form's data as the following screenshot shows when the page ends loading?

    If it is, I suggest that you may use ajax to connect to the page and get the data you want to download from it.

    Best Regards,

    Jenifer

    Friday, October 12, 2018 10:03 AM
  • User-1542926673 posted

    Hi Jenifer,

    Thanks for replying. 

    I want to download the excel files from a website. I am not able to attach the screenshot in this post. Can you please suggest some alternate option to provide you with the exact screenshot ?

    Thanks & Regards,

    Shivangi Anand

    Saturday, October 13, 2018 6:32 AM
  • User839733648 posted

    Hi shubhi12,

    I suggest that you could upload your screenshot to OneDrive or other cloud disk and then share the link. 

    Best Regards,

    Jenifer

    Monday, October 15, 2018 2:10 AM
  • User-1542926673 posted

    Hi Jenifer,

    Apologies, I am not able to upload the screenshot.

    Probably, I can tell you the steps I am following to get the data.

    1. Launch the url - "https://www.shipper-ml.com"
    2. Login. username - zzzzzzz            Password- ***************
    3. Navigate to "https://www.shipper-ml.com/viewReports.do/" page.
       I am trying to data from this page.

    Can you please have a look now and let me know.

    Thanks & Regards,

    Shivangi Anand

    Monday, October 15, 2018 5:26 AM
  • User-1542926673 posted

    Hi Jenifer,

    Could you please help me ?

    Thanks & Regards,

    Shivangi Anand

    Tuesday, October 16, 2018 10:42 AM
  • User839733648 posted

    Hi shubhi12,

    Sorry for late replying. 

    I've logged in the site and know that each file corresponds to a download button.

    Clicking the button to download the file is equivalent to sending a request.

    So my assumption is that sending a request on the page where you want to implement this process and download the specified file.

    I've tried to get the request when downing the file and use the tool Postman to simulate sending request. Then it failed to get response.

    In my opinion, it is inappropriate to achieve your requirement becasuse you could not capture request successfully from outside.

    Best Regards,

    Jenifer

    Wednesday, October 17, 2018 6:24 AM
  • User-1542926673 posted

    Hi Jenifer,

    Thanks for replying.

    Could you please suggest me some alternative to achieve the requirements as it's very urgent ?

    Waiting for your reply.

    Thanks & Regards,

    Shivangi Anand

    Wednesday, October 17, 2018 8:44 AM
  • User-1542926673 posted

    The below code is generated in the network tab when I execute the Jquery in chrome. Please let me know if it is of any help. Waiting for you reply.

    <!-- define referenced tag libs -->

    <!-- prevent pages from being cached -->


    <html>
    <head>


    <link href="style/cats_styles.css" rel="stylesheet" type="text/css">
    <link href="style/jquery-ui-1.9.2.custom.min.css" rel="stylesheet" type="text/css">


    <script src="javascript/jquery-1.8.3.js"></script>
    <script src="javascript/jquery-ui-1.9.2.custom.min.js"></script>
    <script src="javascript/jquery.ui.position.js"></script>


    <script src="javascript/validationLibrary.js" type="text/javascript"></script>
    <script src="javascript/commonLibrary.js" type="text/javascript"></script>
    <script src="javascript/periodStepper.js" type="text/javascript"></script>
    <script src="javascript/updateEffectiveHour.js" type="text/javascript"></script>
    <script src="javascript/dateTimeValidationLibrary.js" type="text/javascript"></script>
    <script src="javascript/ProdisJQueryLib.js" type="text/javascript"></script>
    <!-- <script src="javascript/allJS.js" type="text/javascript"></script> -->

    <!-- Common Controls presentation Framework version 1.7.050 -->


    <!-- painter 'global' -->
    <script type='text/javascript' language='JavaScript' src='fw/global/jscript/common.js'></script>
    <script type='text/javascript' language='JavaScript' src='fw/global/jscript/environment.js'></script>
    <script type='text/javascript' language='JavaScript' src='fw/global/jscript/utility.js'></script>
    <script type='text/javascript' language='JavaScript' src='fw/global/jscript/formatter.js'></script>
    <!-- end -->

    <!-- painter 'html' -->
    <script type='text/javascript' language='JavaScript' src='fw/html/jscript/select.js'></script>
    <!-- end -->

    <!-- painter 'ajax' -->
    <script type='text/javascript' language='JavaScript' src='fw/ajax/jscript/ajaxrequest.js'></script>
    <script type='text/javascript' language='JavaScript' src='fw/ajax/jscript/ajax.js'></script>
    <!-- end -->

    <!-- painter 'prodis' -->
    <link rel='stylesheet' href='fw/def/style/default.css' charset='ISO-8859-1' type='text/css'></link>
    <script type='text/javascript' language='JavaScript' src='fw/def/jscript/functions.js'></script>
    <script type='text/javascript' language='JavaScript' src='fw/def/jscript/resourcemap.js'></script>
    <script type='text/javascript' language='JavaScript' src='fw/def/jscript/controls.js'></script>
    <script type='text/javascript' language='JavaScript' src='fw/def/jscript/tabset.js'></script>
    <script type='text/javascript' language='JavaScript' src='fw/def/jscript/tree.js'></script>
    <script type='text/javascript' language='JavaScript' src='fw/def/jscript/list.js'></script>
    <script type='text/javascript' language='JavaScript' src='fw/def/jscript/menu.js'></script>
    <!-- end -->

    <!-- painter 'html' -->
    <script type='text/javascript' language='JavaScript' src='fw/html/jscript/select.js'></script>
    <!-- end -->


    <title>Welcome to TAS/PAS</title>


    <!-- Common Controls presentation Framework version 1.7.050 -->


    <!-- painter 'global' -->
    <script type='text/javascript' language='JavaScript' src='fw/global/jscript/common.js'></script>
    <script type='text/javascript' language='JavaScript' src='fw/global/jscript/environment.js'></script>
    <script type='text/javascript' language='JavaScript' src='fw/global/jscript/utility.js'></script>
    <script type='text/javascript' language='JavaScript' src='fw/global/jscript/formatter.js'></script>
    <!-- end -->

    <!-- painter 'html' -->
    <script type='text/javascript' language='JavaScript' src='fw/html/jscript/select.js'></script>
    <!-- end -->

    <!-- painter 'ajax' -->
    <script type='text/javascript' language='JavaScript' src='fw/ajax/jscript/ajaxrequest.js'></script>
    <script type='text/javascript' language='JavaScript' src='fw/ajax/jscript/ajax.js'></script>
    <!-- end -->

    <!-- painter 'prodis' -->
    <link rel='stylesheet' href='fw/def/style/default.css' charset='ISO-8859-1' type='text/css'></link>
    <script type='text/javascript' language='JavaScript' src='fw/def/jscript/functions.js'></script>
    <script type='text/javascript' language='JavaScript' src='fw/def/jscript/resourcemap.js'></script>
    <script type='text/javascript' language='JavaScript' src='fw/def/jscript/controls.js'></script>
    <script type='text/javascript' language='JavaScript' src='fw/def/jscript/tabset.js'></script>
    <script type='text/javascript' language='JavaScript' src='fw/def/jscript/tree.js'></script>
    <script type='text/javascript' language='JavaScript' src='fw/def/jscript/list.js'></script>
    <script type='text/javascript' language='JavaScript' src='fw/def/jscript/menu.js'></script>
    <!-- end -->

    <!-- painter 'html' -->
    <script type='text/javascript' language='JavaScript' src='fw/html/jscript/select.js'></script>
    <!-- end -->

    <script src="javascript/validationLibrary.js" language="Javascript"
    type="text/javascript"></script>
    <script src="javascript/commonLibrary.js" language="Javascript"
    type="text/javascript"></script>

    <script type="text/javascript">
    function autoSizeDiv() {

    var actualHeight = document.getElementById("objectsDiv").scrollHeight + 50;
    var maxVisibleHeight = pageHeight() - 300
    - document.getElementById("errorsDiv").scrollHeight;

    if (actualHeight > maxVisibleHeight) {
    document.getElementById("objectsDiv").style.height = maxVisibleHeight;
    } else {
    document.getElementById("objectsDiv").style.height = actualHeight;
    }
    }
    </script>
    </head>
    <body leftmargin="0" topmargin="0" onload='init();autoSizeDiv();'>

    <link href="style/page_header.css" rel="stylesheet" type="text/css">

    <div id="title_panel">
    <div id="title_left"></div>
    <div id="title_mid">
    <div id="title_menu"></div>
    </div>
    <div id="title_right">
    <table class="clsUserDets" cellspacing="2" cellpadding="">
    <tr><td style="font-weight: normal" align="right"><B>User Id:</B> KALYAG18 &#160;&#160;&#160;<font color="#002855">|</font>&#160;&#160;&#160; <B>User Name:</B>
    Govind Kalyani &#160;&#160;&#160;
    <font color="#002855">|</font>&#160;&#160;&#160; <a style="color: #002855" href="shipperDashboard.do" target ="_top"><B>Home</B></a>&#160;&#160;&#160;
    <font color="#002855">|</font>&#160;&#160;&#160; <a style="color: #002855" href="logOff.do">Logoff</a> </td></tr>
    <tr><td style="font-weight: normal"></td></tr>
    </table>
    </div>
    <div id="title_far_right"></div>
    </div>

    <div id="functionTitle" style="width: 100%">
    <div></div>
    </div>

    <div id="rule"></div>
    <div id="side_bar"></div>
    <br/>


    <script type="text/javascript">
    <!--//--><![CDATA[//><!--
    sfHover = function() {
    var ieNavs = document.getElementsByTagName('ul');
    for (var j=0; j<ieNavs.length; j++) {
    if(ieNavs[j].className == "nav") {
    setHover(ieNavs[j]);
    }
    }
    }

    function setHover(nav) {
    var ieULs = nav.getElementsByTagName('ul');
    /** IE script to cover <select> elements with <iframe>s **/
    for (j=0; j<ieULs.length; j++) {
    ieULs[j].innerHTML = ('<iframe src="about:blank" scrolling="no" frameborder="0"></iframe>' + ieULs[j].innerHTML);
    var ieMat = ieULs[j].firstChild;
    ieMat.style.width=ieULs[j].offsetWidth+"px";
    ieMat.style.height=ieULs[j].offsetHeight+"px";
    ieULs[j].style.zIndex="101";
    }
    /** IE script to change class on mouseover **/
    var ieLIs = nav.getElementsByTagName('li');
    for (var i=0; i<ieLIs.length; i++) {
    ieLIs[i].onmouseover=function() {
    this.className+=" sfhover";
    }
    ieLIs[i].onmouseout=function() {
    this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
    }
    }
    }

    if (window.attachEvent) window.attachEvent('onload', sfHover);
    //--><!]]>
    </script>

    <link rel="stylesheet" href="style/menu.css" />


    <!-- Menu entries, expressed as standard list elements -->
    <ul id="nav" class="nav" style="; left: 76px; top: 64px">

    <li><a href="JavaScript:">Daily</a>
    <ul>

    <li><a href="viewPASNoms.do">PAS Nominations</a></li>


    <li><a href="PASProfile.do">View PAS Nomination Profile</a></li>


    <li><a href="viewTASNoms.do">TAS Nominations</a></li>


    <li><a href="TASProfile.do">View TAS Nomination Profile</a></li>



    </ul>
    </li>

    <li><a href="JavaScript:">Data Management</a>
    <ul>




    </ul>
    </li>

    <li><a href="JavaScript:">Reporting</a>
    <ul>

    <li><a href="viewReports.do">View Reports</a></li>








    </ul>
    </li>

    <li><a href="JavaScript:">Processes</a>
    <ul>



    </ul>
    </li>

    <li><a href="JavaScript:">Config</a>
    <ul>










    </ul>
    </li>

    <li><a href="JavaScript:">CHARM</a>
    <ul>








    </ul>
    </li>

    <li><a href="JavaScript:">Administration</a>
    <ul>




    <li><a href="changePassword.do">Change Password</a></li>

    <li><a onclick="javascript:window.open('jsp/About.jsp', 'About', 'menubar=no, scrollbars=no, status=no, titlebar=no, toolbar=no, height=200px, width=500px');">About</a></li>
    <li><a href="logOff.do">Logoff</a></li>
    </ul>
    </li>

    </ul>

    <div id="errorsDiv" >
    <table class="messages_panel" cellpadding="0" cellspacing="0" border="0">
    <tr style="padding-top: 10px; padding-bottom: 10px;">
    <td>

    <!-- BEGIN: com.cc.framework.ui.painter.def.DefMessageErrorPainter [null] -->
    <!-- END: com.cc.framework.ui.painter.def.DefMessageErrorPainter -->

    </td>
    </tr>
    <tr style="padding-top: 10px; padding-bottom: 10px;">
    <td>

    <!-- BEGIN: com.cc.framework.ui.painter.def.DefMessageInfoPainter [null] -->
    <!-- END: com.cc.framework.ui.painter.def.DefMessageInfoPainter -->

    </td>
    </tr>
    </table>
    </div>


    <div class="content_panel">
    <form name="viewReportsForm" method="post" action="/viewReports.do" onsubmit="return fnValForm(viewReportsForm, window);">
    <strong class="sectionHeader">View Published Reports</strong>
    <br />


    <!-- BEGIN: com.cc.framework.ui.painter.def.DefFormEditPainter [null] -->


    <div><input name='formid' type='hidden' value='frmSearch'></input><table cellspacing='0' class='fc' border='0' cellpadding='0'><thead><tr><td><table cellspacing='0' class='fch' border='0' cellpadding='0'><tr><td valign='top'><img width='10' height='17' border='0' src='fw/def/image/corners/l.gif'></img></td><td width='100%'><table cellpadding='0' width='100%' cellspacing='3'><tr><td nowrap class='c'>&nbsp;</td><td width='100%'>&#160;</td></tr></table></td><td valign='top'><img width='10' height='17' border='0' src='fw/def/image/corners/r.gif'></img></td></tr></table></td></tr></thead><tbody><tr><td><table cellspacing='0' width='100%' class='fcb' border='0' cellpadding='0'><tr><td><table cellspacing='0' width='100%' class='ibody' border='0' cellpadding='0'><colgroup><col width='4px'><col width='18px'><col width='90px'><col><col width='18px'><col width='90px'><col><col width='18px'><col width='90px'><col><col width='4px'></colgroup><tr rowtype='container'><td class='fls'><img width='1' height='1' border='0' src='fw/def/image/spacer.gif'></img></td><td class='fe'>&#160;</td><td valign='top' class='fl'><label>Report Type:</label></td><td valign='top' nowrap class='fd'><select name='reportType' size='1'><option value='ALL' selected>All</option>
    <option value='RMALLC'>PAS Monthly EX1 Allocation Statement</option>
    <option value='RDALLC'>PAS ITD/EOD EX1 Allocation Statement</option>
    <option value='RDTALLC'>TAS ITD/EOD Pipeline Allocation Statement</option>
    <option value='RMTALLC'>TAS Monthly Allocation Statement</option>
    <option value='RMINV'>Generate Invoice Report</option>
    <option value='RMFLDINV'>Generate Field Invoice Report</option>
    </select></td><td class='fe'>&#160;</td><td class='fl'><label>From Date:</label></td><td nowrap class='fd'><table cellpadding='0' cellspacing='0' border='0'><tr valign='middle'><td align='middle'><input size='15' id='startDate' value='17/10/2018 06:00' class='clsDateTime' name='fromDate' type='text'></input></td><td style='padding-left:5px;' align='middle'><a><img onClick="javascript:popupCalendar('startDate','null','dd/MM/yyyy HH:mm',380,240,'/fw/html/calendar/layout1/calendar.jsp');" width='16' height='15' style='cursor:pointer;cursor:hand;' border='0' src='fw/html/image/imgCalendar1.gif'></img></a></td><td style='padding-left:5px;font-size:8pt;' align='middle'>(dd/MM/yyyy HH:mm)</td></tr></table></td><td class='fe'>&#160;</td><td class='fl'><label>To Date:</label></td><td nowrap class='fd'><table cellpadding='0' cellspacing='0' border='0'><tr valign='middle'><td align='middle'><input size='15' id='endDate' value='18/10/2018 06:00' class='clsDateTime' name='toDate' type='text'></input></td><td style='padding-left:5px;' align='middle'><a><img onClick="javascript:popupCalendar('endDate','null','dd/MM/yyyy HH:mm',380,240,'/fw/html/calendar/layout1/calendar.jsp');" width='16' height='15' style='cursor:pointer;cursor:hand;' border='0' src='fw/html/image/imgCalendar1.gif'></img></a></td><td style='padding-left:5px;font-size:8pt;' align='middle'>(dd/MM/yyyy HH:mm)</td></tr></table></td><td class='frs'><img width='1' height='1' border='0' src='fw/def/image/spacer.gif'></img></td></tr><tr rowtype='separator'><td class='fls'><img width='1' height='1' border='0' src='fw/def/image/spacer.gif'></img></td><td colspan='9' background='fw/def/image/separator.gif'><img width='1' height='1' border='0' src='fw/def/image/spacer.gif'></img></td><td class='frs'><img width='1' height='1' border='0' src='fw/def/image/spacer.gif'></img></td></tr><tr rowtype='container'><td class='fls'><img width='1' height='1' border='0' src='fw/def/image/spacer.gif'></img></td><td colspan='9'><table cellspacing='0' width='100%' border='0' cellpadding='0'><colgroup><col width='18px'><col width='90px'><col></colgroup><tr rowtype='buttons'><td class='fe'>&#160;</td><td class='fl'>&#160;</td><td colspan='7' class='fd'><table cellspacing='0' width='100%' class='fb' border='0' cellpadding='5'><tr><td width='100%'>&#160;</td><td align='right'><div id='btnRefresh' onClick="new Button(this.id, ButtonType.BUTTON, '').submit();"><table cellspacing='0' class='tbtn' border='0' cellpadding='0'><tr valign='middle'><td><img id='btnBgL' width='16' height='17' border='0' src='fw/def/image/buttons/btnTxtBgL1.gif'></img></td><td id='btnMiddle' align='middle' background='fw/def/image/buttons/btnTxtBgM1.gif' style='background-;' nowrap><span id='btnRefreshLabel' style='color:#002855' class='tbtn'>Refresh</span></td><td><img id='btnBgR' width='8' height='17' border='0' src='fw/def/image/buttons/btnTxtBgR1.gif'></img></td></tr></table></div></td></tr></table></td></tr></table></td><td class='frs'><img width='1' height='1' border='0' src='fw/def/image/spacer.gif'></img></td></tr></table></td></tr></table></td></tr></tbody></table></div><!-- END: com.cc.framework.ui.painter.def.DefFormEditPainter -->


    <br />
    <div id="objectsDiv" style="width: 870px; overflow: auto">

    <!-- BEGIN: com.cc.framework.ui.painter.def.DefListPainter [reportListForDownload] -->










    <div id='lc_ctrl85125117'><table id='ctrl85125117' cellspacing='0' width='845px' class='lc_nf' border='0' cellpadding='0'><tbody><tr><td><table cellspacing='0' width='100%' class='lcb' border='0' cellpadding='0'><tr><td><table cellspacing='1' width='100%' class='ibody' border='0' cellpadding='0'><colgroup><col></col><col></col><col></col><col></col><col></col><col></col><col></col><col></col></colgroup><tr class='header'><td>Report ID</td><td>Version No.</td><td>Report Type</td><td>Contract</td><td>Date Created</td><td>Status</td><td align='center'>Excel</td><td align='center'>XML</td></tr><tr onMouseOver='high(this);' class='even' onMouseOut='low(this);'><td class='cl'>18101708</td><td class='cl'>V1</td><td class='cl'>PAS ITD/EOD EX1 Allocation Statement</td><td class='cl'>ETAP</td><td class='cl'>17/10/2018 10:02</td><td class='cl'>Published</td><td align='center' class='cl'><a href='/viewReports.do?ctrl=reportListForDownload&amp;action=DownloadReport&amp;param=0' target='_blank'><img vspace='0' align='absmiddle' border='0' src='images/buttons/excel.gif'></img></a></td><td align='center' class='cl'><a href='/viewReports.do?ctrl=reportListForDownload&amp;action=DownloadXml&amp;param=0' target='_blank'><img vspace='0' align='absmiddle' border='0' src='images/buttons/document.gif'></img></a></td></tr><tr onMouseOver='high(this);' class='odd' onMouseOut='low(this);'><td class='cl'>18101708</td><td class='cl'>V1</td><td class='cl'>TAS ITD/EOD Pipeline Allocation Statement</td><td class='cl'>ETAP</td><td class='cl'>17/10/2018 09:55</td><td class='cl'>Published</td><td align='center' class='cl'><a href='/viewReports.do?ctrl=reportListForDownload&amp;action=DownloadReport&amp;param=1' target='_blank'><img vspace='0' align='absmiddle' border='0' src='images/buttons/excel.gif'></img></a></td><td align='center' class='cl'><a href='/viewReports.do?ctrl=reportListForDownload&amp;action=DownloadXml&amp;param=1' target='_blank'><img vspace='0' align='absmiddle' border='0' src='images/buttons/document.gif'></img></a></td></tr><tr onMouseOver='high(this);' class='even' onMouseOut='low(this);'><td class='cl'>28101606.CSV</td><td class='cl'>V1</td><td class='cl'>PAS ITD/EOD EX1 Allocation Statement</td><td class='cl'>ETAP</td><td class='cl'>17/10/2018 07:27</td><td class='cl'>Published</td><td align='center' class='cl'><a href='/viewReports.do?ctrl=reportListForDownload&amp;action=DownloadReport&amp;param=2' target='_blank'><img vspace='0' align='absmiddle' border='0' src='images/buttons/excel.gif'></img></a></td><td align='center' class='cl'></td></tr><tr onMouseOver='high(this);' class='odd' onMouseOut='low(this);'><td class='cl'>28101606.XML</td><td class='cl'>V1</td><td class='cl'>PAS ITD/EOD EX1 Allocation Statement</td><td class='cl'>ETAP</td><td class='cl'>17/10/2018 07:27</td><td class='cl'>Published</td><td align='center' class='cl'><a href='/viewReports.do?ctrl=reportListForDownload&amp;action=DownloadReport&amp;param=3' target='_blank'><img vspace='0' align='absmiddle' border='0' src='images/buttons/excel.gif'></img></a></td><td align='center' class='cl'></td></tr><tr onMouseOver='high(this);' class='even' onMouseOut='low(this);'><td class='cl'>28101606.XLS</td><td class='cl'>V1</td><td class='cl'>PAS ITD/EOD EX1 Allocation Statement</td><td class='cl'>ETAP</td><td class='cl'>17/10/2018 07:27</td><td class='cl'>Published</td><td align='center' class='cl'><a href='/viewReports.do?ctrl=reportListForDownload&amp;action=DownloadReport&amp;param=4' target='_blank'><img vspace='0' align='absmiddle' border='0' src='images/buttons/excel.gif'></img></a></td><td align='center' class='cl'></td></tr><tr onMouseOver='high(this);' class='odd' onMouseOut='low(this);'><td class='cl'>28101606.XLSX</td><td class='cl'>V1</td><td class='cl'>PAS ITD/EOD EX1 Allocation Statement</td><td class='cl'>ETAP</td><td class='cl'>17/10/2018 07:27</td><td class='cl'>Published</td><td align='center' class='cl'><a href='/viewReports.do?ctrl=reportListForDownload&amp;action=DownloadReport&amp;param=5' target='_blank'><img vspace='0' align='absmiddle' border='0' src='images/buttons/excel.gif'></img></a></td><td align='center' class='cl'></td></tr><tr onMouseOver='high(this);' class='even' onMouseOut='low(this);'><td class='cl'>28101606.CSV</td><td class='cl'>V1</td><td class='cl'>TAS ITD/EOD Pipeline Allocation Statement</td><td class='cl'>ETAP</td><td class='cl'>17/10/2018 07:26</td><td class='cl'>Published</td><td align='center' class='cl'><a href='/viewReports.do?ctrl=reportListForDownload&amp;action=DownloadReport&amp;param=6' target='_blank'><img vspace='0' align='absmiddle' border='0' src='images/buttons/excel.gif'></img></a></td><td align='center' class='cl'></td></tr><tr onMouseOver='high(this);' class='odd' onMouseOut='low(this);'><td class='cl'>28101606.XLSX</td><td class='cl'>V1</td><td class='cl'>TAS ITD/EOD Pipeline Allocation Statement</td><td class='cl'>ETAP</td><td class='cl'>17/10/2018 07:26</td><td class='cl'>Published</td><td align='center' class='cl'><a href='/viewReports.do?ctrl=reportListForDownload&amp;action=DownloadReport&amp;param=7' target='_blank'><img vspace='0' align='absmiddle' border='0' src='images/buttons/excel.gif'></img></a></td><td align='center' class='cl'></td></tr><tr onMouseOver='high(this);' class='even' onMouseOut='low(this);'><td class='cl'>28101606.XML</td><td class='cl'>V1</td><td class='cl'>TAS ITD/EOD Pipeline Allocation Statement</td><td class='cl'>ETAP</td><td class='cl'>17/10/2018 07:26</td><td class='cl'>Published</td><td align='center' class='cl'><a href='/viewReports.do?ctrl=reportListForDownload&amp;action=DownloadReport&amp;param=8' target='_blank'><img vspace='0' align='absmiddle' border='0' src='images/buttons/excel.gif'></img></a></td><td align='center' class='cl'></td></tr><tr onMouseOver='high(this);' class='odd' onMouseOut='low(this);'><td class='cl'>28101606.XLS</td><td class='cl'>V1</td><td class='cl'>TAS ITD/EOD Pipeline Allocation Statement</td><td class='cl'>ETAP</td><td class='cl'>17/10/2018 07:26</td><td class='cl'>Published</td><td align='center' class='cl'><a href='/viewReports.do?ctrl=reportListForDownload&amp;action=DownloadReport&amp;param=9' target='_blank'><img vspace='0' align='absmiddle' border='0' src='images/buttons/excel.gif'></img></a></td><td align='center' class='cl'></td></tr><tr onMouseOver='high(this);' class='even' onMouseOut='low(this);'><td class='cl'>18101606</td><td class='cl'>V1</td><td class='cl'>PAS ITD/EOD EX1 Allocation Statement</td><td class='cl'>ETAP</td><td class='cl'>17/10/2018 07:19</td><td class='cl'>Published</td><td align='center' class='cl'><a href='/viewReports.do?ctrl=reportListForDownload&amp;action=DownloadReport&amp;param=10' target='_blank'><img vspace='0' align='absmiddle' border='0' src='images/buttons/excel.gif'></img></a></td><td align='center' class='cl'><a href='/viewReports.do?ctrl=reportListForDownload&amp;action=DownloadXml&amp;param=10' target='_blank'><img vspace='0' align='absmiddle' border='0' src='images/buttons/document.gif'></img></a></td></tr><tr onMouseOver='high(this);' class='odd' onMouseOut='low(this);'><td class='cl'>18101606</td><td class='cl'>V1</td><td class='cl'>TAS ITD/EOD Pipeline Allocation Statement</td><td class='cl'>ETAP</td><td class='cl'>17/10/2018 06:53</td><td class='cl'>Published</td><td align='center' class='cl'><a href='/viewReports.do?ctrl=reportListForDownload&amp;action=DownloadReport&amp;param=11' target='_blank'><img vspace='0' align='absmiddle' border='0' src='images/buttons/excel.gif'></img></a></td><td align='center' class='cl'><a href='/viewReports.do?ctrl=reportListForDownload&amp;action=DownloadXml&amp;param=11' target='_blank'><img vspace='0' align='absmiddle' border='0' src='images/buttons/document.gif'></img></a></td></tr></table></td></tr></table></td></tr></tbody></table><script type='text/javascript' language='JavaScript'>
    <!--
    var lc_ctrl85125117 = new ListControl('ctrl85125117');
    // -->
    </script></div><!-- END: com.cc.framework.ui.painter.def.DefListPainter -->

    </div>

    </form>
    </div>

    </body>
    </html>

    Wednesday, October 17, 2018 10:06 AM
  • User-1542926673 posted

    Hi Jenifer,

    Could you please suggest me an alternative ?

    Thanks & Regards

    Shivangi Anand

    Thursday, October 18, 2018 9:15 AM
  • User839733648 posted

    Hi shubhi12,

    I'm sorry that the codes you've provided have no substantial help.

    The key point is how to get the URL of the download files you want. We could not send request to get data from outside.

    I suggest that maybe you could try WebAPI to get the related URL.

    The documents about WebAPI you could refer to: https://docs.microsoft.com/en-us/aspnet/web-api/ 

    Best Regards,

    Jenifer

    Friday, October 19, 2018 9:19 AM
  • User-1542926673 posted

    Hi Jenifer,

    I am not thorough with aspnet. 

    Can you please help me in going ahead as I don't know much about aspnet.

    Thanks & Regards,

    Shivangi Anand

    Monday, October 22, 2018 5:04 AM