Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8396813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:38:00+00:00 2026-06-09T20:38:00+00:00

I am developing a Perl program, and I have to produce a .csv file

  • 0

I am developing a Perl program, and I have to produce a .csv file containing the data obtained from an executed query. My program works well, and it produces the .csv file correctly and into the path I want, which is D:\\Tabelle\name_of_the_csv_file.csv .
My inetpub folder is inside the C:\\ drive, so the program.

The problem is, I generate an HTML page containing a button with the "onclick" property set to window.open(D:\\Tabelle\name_of_the_csv_file.csv), in order to allow the user to download the file if he wants, but when I click on it, it just opens a blank page, without anything inside it.
Here’s the HTML part of my page where I have the button:

     <form action='' method=get>
         <table align="center">
           <tr>
                <td align="center" colspan=3>
                       <input align="middle" type=button name="csvObtain" value="Esporta tabella in .csv" onclick="window.open('d:\tabelle\Tabella-2012-8-8-12.11.30.csv')">
                </td>

           </tr>
         </table>
    </form>

Could someone help me resolving this? Do I have to create a different JavaScript?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T20:38:01+00:00Added an answer on June 9, 2026 at 8:38 pm

    using window.open like this ,

       window.open(D:\Tabelle\name_of_the_csv_file.csv)
    

    it shall refer to the path on client machine, since the path is in javascript. if you want the file to be available as downloadable item, just map the D\tabelle folder as child directory(virtual dir) in your application and use relative path for the file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an Android application. I am calling a Perl file on a
I have been developing an internal framework which is designed with bunch of Perl
I have to use a header file after the program is compiled. This header
Developing a Sencha Touch MVC app that pulls data from json store (thats set
I am developing a Firefox addon and I have a Perl script which I
I'm developing a perl script. This is my input string in a file new.txt
Developing for Android 2.3, I have a question regarding layouts. I use a vertival
Developing a project of mine I realize I have a need for some level
iam developing one application.In that i need to get the music files from the
I am developing a plugin in eclipse which can generate a text file (based

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.