#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Phoenix, AZ
    Posts
    3
    Rep Power
    0
    Is it possible to call perl functions from Javascript functions?

    I'd prefer to do this is in a way other than having to do posts and gets.

  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Utah
    Posts
    8
    Rep Power
    0
    No. There is no possible way since they are seperate languages and perl does not support Javascript. The only feasable way (and very very messy) would be to have your javascript function submit the layer or form your sending to perl, send it to a cgi script, do your perl functions, and somehow redirect back to your original javascript page while keeping all your values entered and current layers active. =) Have Fun!
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 1999
    Posts
    119
    Rep Power
    15
    look on any perl site out there for embedding perl into your html...

    I can't remember the name, though...

    The server you're running the site off has to have a certain module installed...
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Salem, OR, USA
    Posts
    41
    Rep Power
    14
    Hi Crios,

    Make a perl script that prints out Javascript codes and call it example.pl

    then use:
    <SCRIPT LANGUAGE="JavaScript" src="/cgi-bin/example.pl">

    Good luck

    --DVN

Similar Threads

  1. calling a variable in the html with javascript
    By grungefade in forum JavaScript Development
    Replies: 4
    Last Post: February 10th, 2004, 04:34 PM
  2. Calling a JavaScript function from VBScript
    By starbar in forum JavaScript Development
    Replies: 3
    Last Post: February 7th, 2004, 04:31 PM
  3. Should I launch Excel with Javascript or Perl?
    By lnong in forum JavaScript Development
    Replies: 3
    Last Post: September 9th, 2003, 02:13 PM
  4. Can you call a javascript function from code within a perl script?
    By El Presidente in forum JavaScript Development
    Replies: 3
    Last Post: June 6th, 2002, 06:09 PM
  5. Calling Perl script from PHP
    By dsang in forum PHP Development
    Replies: 0
    Last Post: January 17th, 2000, 12:29 PM

IMN logo majestic logo spyfu logo threadwatch logo seochat tools logo