dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: string from request object as link

  1. #1
    Join Date
    Feb 2013
    Posts
    1

    string from request object as link

    Hi, why does this not work?

    <script>
    var link = "${outFile}";
    </script>

    <div id="footer">
    <a id="csvLink" href="">Download .csv file</a>
    </div>

    <script type="text/javascript">
    document.links["csvLink"].href = link;
    </script>

  2. #2
    Join Date
    Feb 2013
    Posts
    15
    What does

    alert (link);

    shows you? Is there a variable assigned? Does links["csvLink"] work? Test it by replacing the variable link with a fixed string like 'Google.com'.

    Please report back with any results.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles