By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,841 Members | 1,380 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,841 IT Pros & Developers. It's quick & easy.

Perl with JavaScript

P: 76
Hi,
If I have a javascript function, like for example the one below, how can I incorporate/use it with my perl script. Thanks so much in advance.

Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript">
  2. var ELpntr=false;
  3.         function hideall(){ 
  4.                 locl = document.getElementsByTagName('tbody');
  5.                 for (i=0;i<locl.length;i++){
  6.                         locl[i].style.display='none';
  7.                 }
  8.         }
  9. </script>
  10.  
Jan 15 '08 #1
Share this Question
Share on Google+
1 Reply


KevinADC
Expert 2.5K+
P: 4,059
Hi,
If I have a javascript function, like for example the one below, how can I incorporate/use it with my perl script. Thanks so much in advance.

Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript">
  2. var ELpntr=false;
  3.         function hideall(){ 
  4.                 locl = document.getElementsByTagName('tbody');
  5.                 for (i=0;i<locl.length;i++){
  6.                         locl[i].style.display='none';
  7.                 }
  8.         }
  9. </script>
  10.  

Javascript runs in the browser window, perl runs on the server. You can print javascript code in html output generated by your perl script and it will run just like any javascript code would
Jan 15 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.