473,398 Members | 2,335 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

On modperl

129 100+
Hello friends,
Actually my doubt is we r using perl code in html but how to use same perl code in javascript? For example,
I am using one select box onchange i am calling a function and the corresponding values are in perl hash of arrays, so my problem is how to assign those hash of arrays values into another select box through javascript.
Apr 28 '08 #1
2 950
Ganon11
3,652 Expert 2GB
In my experience (which is very limited), Javascript is its own scripting language apart from Perl CGI. So you may want to stick with either Perl OR Javascript, but not both. It is fairly easy to create checkboxes and the like in Perl, and to change the contents of Perl values in this way.

Again, I have very little experience in this area, so I could be completely wrong.
Apr 28 '08 #2
KevinADC
4,059 Expert 2GB
You can't use perl code in html (you can but perlscript is so rarely used I doubt that is what you are doing). You can use perl to print html code, and use perl to print javascript just like you print html. But once the html/javascript is printed to a browser perl has no more communication with the html/javascript code. You have to send some data back to the perl script using a form to make changes to the page. You can use AJAX to do that or traditional CGI forms. Search for AJAX to read about what it is and how you can use it.
Apr 28 '08 #3

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

Similar topics

0
by: ian douglas | last post by:
RedHat 7.3, latest patches on everything, cannot be upgraded to newer releases of RedHat Apache 1.3.27 modperl 1.26 Apache configuration: <IfModule mod_perl.c> PerlModule Apache::DBI
6
by: Jeremy | last post by:
My requirements are very simple: When a user browses to an XML document, the server should parse the document, apply its stylesheet, and spit the HTML at the client. Apache Cocoon is a slow,...
15
by: tadpole | last post by:
Well, it's been a year since I jumped from C/C++ and ModPerl to Visual Studio 2003 and C#. Frankly, I'm disappointed with it. There are a lot of little annoying bugs with the IDE that just...
6
by: Michael L. Artz | last post by:
I'm having some odd issues, but I'm not sure exactly the cause of them, but postgres is the component in the system that is throwing the errors, so I thought I'd start here. I have built a web...
2
by: rallykarro | last post by:
Hi, a simple question regarding ways of loading php as a dll or an exe file in httpd? What is the difference of loading php as LoadModule php5_module "C:\php\php5apache2_2.dll" or Action...
1
by: sasimca007 | last post by:
Hi friends, I have a doubt about modperl, that how to pass the perl variable according with form values through anchor tag and the output must be come on a frame in another programme. That means,...
4
by: sasimca007 | last post by:
Hello friends, I am using a form within a form that is as below: <form name="frm"> my $i = 1; while(some loop) { <form name="Form$i"...
3
by: sasimca007 | last post by:
Hello friends, How to delete session id from browser memory in Modperl?
0
by: sasimca007 | last post by:
Hello friends, I have httpd2.some.tar.gz file and i installed it and i installed modperl through synaptic. When i want to run modperl programs i have to write the path of that...
3
by: sasimca007 | last post by:
Hi friends, I have one small doubt that is, i have to copy one file from tmp folder to the desktop. This is a modperl program, when i write linux command in that modperl program it...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.