Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Dec 2011
    Posts
    11
    Thanks
    2
    Thanked 0 Times in 0 Posts

    how to determine the URL for Excel file?

    Referring to following link, I would like to determine the link for "In-Depth.xls", based on following coding, I find related information for Excel.png, does anyone have any suggestions on how to determine the URL for Excel file?

    Thanks in advance for any suggestions

    http://fx.aastocks.com/en/forex/mark...0&indicator=47

    <img src="../../images/common/Excel.png" id="cp_imgExcel" class="btn" onclick="window.location.href=&#39;dbindepth.aspx?country=66970&amp;startdate=2010/12/24&amp;enddate=2011/12/24&amp;indicator=47&amp;excel=1&#39;"/>

  • #2
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,839
    Thanks
    21
    Thanked 157 Times in 148 Posts
    http://fx.aastocks.com/en/forex/mark...tor=47&excel=1

    If you are looking to access the link programmatically, just access the onclick event handler, i.e.:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
            "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    	<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />
    	<title>TITLE</title>
    </head>
    <body>
    
    <img src="../../images/common/Excel.png" id="cp_imgExcel" class="btn" onclick="window.location.href='dbindepth.aspx?country=66970&amp;startdate=2010/12/24&amp;enddate=2011/12/24&amp;indicator=47&amp;excel=1'"/>
    
    <script type="text/javascript">
    	var onclickSource = document.getElementById('cp_imgExcel').getAttribute('onclick').replace(/^((window\.location\.href=')(.+?)('))$/, "$3");
    	alert(onclickSource);
    </script>
    
    </body>
    </html>
    Last edited by chump2877; 12-24-2011 at 04:14 AM.
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :-)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!
    ♪♪ …Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !!… ♪♪

  • Users who have thanked chump2877 for this post:

    oem7110 (12-24-2011)

  • #3
    New Coder
    Join Date
    Dec 2011
    Posts
    11
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Thanks you very much for suggestions


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •