Executing Perl code from Javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • poojapo
    New Member
    • Feb 2007
    • 6

    Executing Perl code from Javascript

    Is it possible to execute Perl code from java script?

    can you explain with a snippet?

    I have installed apache-tomcat for the same.

    In which folder should I paste the html file and the Perl file (uses cgi module) ?
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    This is the third thread you have started in the perl forum, your other two threads have gone unanswered by you for a long time, since you can't take the time to reply to your own threads, I see no reason to waste my time replying to them. Well, except for the time it took to post this message anyway. Maybe someone on daniweb will help you.... but not me.

    Regards,
    Kevin

    Comment

    • KevinADC
      Recognized Expert Specialist
      • Jan 2007
      • 4092

      #3
      Just wanted to clarify, what I said is my own personal policy, has nothing to do with rules or guidelines of TSDN, not that I know of anyway. Any similarities is purely coincidental. ;)

      Comment

      • tifoso
        New Member
        • Apr 2007
        • 41

        #4
        Put your perl script on the cgi section of the httpd

        run it like this: (old fashion way pseudo-code)
        <form name="inform" action="/cgi-bin/generate_mail_b omb.pl">
        ....
        document.submit ();

        or u could just run server-side include

        <!--#exec cgi="/cgi-bin/generate_mail_b omb.pl" -->

        There are more ways depending on your conditions e.g. AJAX , etc, etc

        Ciao

        Becker

        Comment

        Working...