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

  • SEARCH
  • Home
  • 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 1033683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:16:07+00:00 2026-05-16T14:16:07+00:00

I have a page that when loaded I would like it to run a

  • 0

I have a page that when loaded I would like it to run a perl script. Is this possible to do with javascript? I have never ran a perl script on the web before and the only way I have seen to do it is link to it.

  • 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-05-16T14:16:08+00:00Added an answer on May 16, 2026 at 2:16 pm

    There are 3 ways:

    • If it’s a dynamic page (CGI or other), as long as your script backing the page is an executable Perl script returning valid HTTP response, you’re good. If you need to execute a separate Perl script, you can do it using the usual system() call (ideally, the functionality should be a Perl library call so your script can then execute it without spawning a system call). This approach of course works with ANY language that the back-end script is written in, e.g. if it’s a Java Servlet, or any other code, it can also execute a system call to your Perl script.

    • If it’s a static HTML page, you can have an “onload” JavaScript event (or just a JS function call inside a <script> tag) which executes an AJAX call to a different dynamic page (say http://yourserver/scripts/run_script_X ) running the script as per previous bullet point.

      Just to be clear, the script will be running on the web server and not in a browser/client system; so you need some sort of mechanism for allowing the results of the script to affect your web page if you wish to have such an effect.

      $.ajax({url: 'http://yourserver/scripts/run_script_X'}); // jQuery example
      
    • As an oldie variation on the last approach, you can also have your page have a <IFRAME> whose URL points to http://yourserver/scripts/run_script_X (make the iframe small/invisible if you don’t care about the results of running the script as per your comment).

      <!-- The rest of your HTML code -->
      <IFRAME
          SRC="http://yourserver/scripts/run_script_X"
          style="display: none;"
      />
      

    Irelevant comment made prior to the comments on this answer:

    Without a lot more context on what you want the page to be (CGI script, static HTML, etc…) and what you want the script to do and how you want the results of running the script to affect your page, it’s hard to suggest anything more precise.

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

Sidebar

Related Questions

I have a web page that is intended to be loaded on a person's
I have an iframe that loads a page that I would like to disable
I have a php function that's run when a build.php page is loaded and
I have a aspx page that looks something like this: <tr id=Row1> <td>Some label</td>
I have a page that has fields dynamically loaded via JQuery. It allows a
I have a menu on my page that is loaded on every page. The
I have a page that has 4 tables. Initially when the page is loaded,
I have a aspx page (details page) that needs to be loaded in a
I have a datalist inside a usercontrol that gets loaded into a page where
I have a uiwebview that sends its loaded page url to a uitableview to

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.