CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
Targeting a Perl script to a window in an unusual way?



Nov 27, 2000, 1:56 PM

Post #1 of 1 (454 views)
Targeting a Perl script to a window in an unusual way? Can't Post

This mixes a bit of Perl and Javascript. I have a script that generates a form and calls itself back to add articles in a database. The thing is, I'm trying to have some of the form options popup a window in Javascript and call the Perl script to that window.

So, I tried this in Javascript :
function affichearticles (categorie) {
f = document.gestion;
f.affichecategorie.value = categorie; ('','affichearticles','width=450,height=350,scrollbars=yes'); = 'affichearticles';
f.submit(); = '_self';

...where f is the form. I tried modifying the form target and then submit it so that it executes in the window and the replace the target back to the main window but all this does is popup a window and execute the script in the main window. I don't want it to do that since the popup is to display info that I want to browse while I enter data in the main window. I know I could do 2 separate scripts but I don't want to repeat half of the script in two places. Does anyone know what could be the problem here? I know this borders Javascript as a question but I'm not sure if this problem wouldn't be related more to Perl. Any help? Thanks!


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives