Re: displaying output of a text file in html

From: Itsme (Itsme_at_nospam.com)
Date: 10/19/04

  • Next message: Brendan: "XP SP2: Local HTML and Arguments problem"
    Date: Tue, 19 Oct 2004 11:16:51 -0400
    
    

    That part is okay, as the perl script's output is displayed in html when I run
    it from a browser.

    But how do I call that script from within a webpage, to display the output in
    the webpage.

    Thanks,
    me

    "Somchai U." wrote:

    > You have to configure your web server to support .pl as cgi application.
    > (For example, put your .pl file in /cgi-bin/). And you should add the line
    > print "Content-type: text/plain" or text/html at the beginning of perl
    > script.
    >
    > Somchai U.
    > Brainbench MVP for HTML
    > http://www.brainbench.com/
    >
    > "Itsme" <Itsme@nospam.com> wrote in message
    > news:416ED5FB.EFB3301A@nospam.com...
    > >I have a perl file (.pl) which works fine from a command prompt. It even
    > >
    > > displays the desired output when I run it from a web browser.
    > >
    > > I want to call this script within my webpage. I am trying to find a
    > > document which explains what needs to be done.
    > >
    > > I am even trying to insert the output (.txt file) generated by that
    > > script into html so that the page gets dynamically updated as the output
    > >
    > > file changes. I am not having any success with that either. Can anyone
    > > please help with either / both of my questions ?
    > >


  • Next message: Brendan: "XP SP2: Local HTML and Arguments problem"

    Relevant Pages

    • Re: Simple question ??
      ... A web page is basically an HTML document. ... a technology that, at the most basic level, delivers HTML to a web browser. ... Internet Explorer, for example, can display Word documents, ... file format to a browser in its native state. ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: how to run scripts after a page has already loaded and been sent to a users browser?
      ... > It's because PHP is a server side scripting language, ... > do stuff before you send stuff to user's web browser. ... As we've discussed on this newsgroup before, if a script starts ... that is after the last HTML is sent to a web browser. ...
      (alt.php)
    • Re: Problems with PrintReady javascript and published Frontpage 2003: Thanks!!!!
      ... if I use the Tools->Optimize HTML... ... FrontPage 2003, could it damage the code or just cleans it up? ... > In your script delete the 5 lines you have added between ... > Then Test in Browser before you publsih ...
      (microsoft.public.frontpage.client)
    • Re: Recommendations for JavaScript drop-down menu code
      ... the browser interpret it as XHTML. ... interpreting it as HTML. ... browser and another type in the next. ... 'split-up' the SCRIPT opening and closing tags. ...
      (comp.lang.javascript)
    • Re: Enable script in HTTPWebRequest
      ... It would help if you posted the actual HTML you receive. ... The reason is that there is probably a script in the page that writes out ... > have when i use a browser, to parse some data from the page. ... Answer from the page is (without HTML tags): ...
      (microsoft.public.dotnet.framework.aspnet)