Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

dinamic cgi with perl
Hi everybody

i got a program that works in a bash environment, and now, i would like to
make a cgi with it, the objective for this program is check the integrity of
the info provided by some text files and if it finds some error ask you for
some info and i would like to be able to introduce it.

To solve it i was thinking on introduce a javascript code into my cgi, but i
don't know how to pass the variable info between perl and javascript.


could any of you tell me how to do it or give me any idea or give me a
solution of how do it?

thanks

pau
-- 
Pau Marc Muñoz Torres

Laboratori de Biologia Computacional
Institut de  Biotecnologia   i Biomedicina Vicent
Villar
Universitat Autonoma de Barcelona
E-08193 Bellaterra (Barcelona)

telèfon: 93 5812807
Email : paumarc.munoz@bioinf.uab.cat


Report this thread to moderator Post Follow-up to this message
Old Post
Pau Marc Munoz Torres
03-15-08 12:13 AM


Re: dinamic cgi with perl
On Fri, 2008-03-14 at 15:14 +0100, Pau Marc Munoz Torres wrote:


> To solve it i was thinking on introduce a javascript code into my cgi, but
 i
> don't know how to pass the variable info between perl and javascript.


AJAX - I ended up hand coding my AJAX from scratch but there is a module
that I have not tried yet  CGI::AJAX,   http://search.cpan.org


Report this thread to moderator Post Follow-up to this message
Old Post
Ken Foskey
03-15-08 12:13 AM


Re: dinamic cgi with perl
Hi

is  There  some easy-understanding "how to use ajax with perl" tutorial
somewhere?

i just need to know how to do a cgi script to launch a prompt (javascript)
and use the answer in my script

please help!!

pau
-- 
Pau Marc Muñoz Torres

Laboratori de Biologia Computacional
Institut de  Biotecnologia   i Biomedicina Vicent
Villar
Universitat Autonoma de Barcelona
E-08193 Bellaterra (Barcelona)

telèfon: 93 5812807
Email : paumarc.munoz@bioinf.uab.cat


Report this thread to moderator Post Follow-up to this message
Old Post
Pau Marc Munoz Torres
04-03-08 12:18 AM


Re: dinamic cgi with perl
I haven't learned AJAX yet (hopefully this summer), but I don't think
you can do it exactly as you have envisioned.
The CGI/Perl script runs on the server and produces some static HTML
code which contains the AJAX. The script finishes. The HTML is sent to
the browser. The browser then renders the HTML and runs any JavaScript
it finds. At this point, you can prompt the user for input. (Or use
plain HTML without JS and just have an HTML form.) If you are using
AJAX, you can now have the JS sent the input to the server and call
the script with the data. The script can generate some output that the
JS would add to the webpage.
The script itself can not directly ask for input.

Report this thread to moderator Post Follow-up to this message
Old Post
Yitzle
04-03-08 12:18 AM


Re: dinamic cgi with perl
On Wed, 2008-04-02 at 17:19 +0200, Pau Marc Munoz Torres wrote:

> Hi
>
> is  There  some easy-understanding "how to use ajax with perl" tutorial
> somewhere?
>
> i just need to know how to do a cgi script to launch a prompt (javascript)
> and use the answer in my script


I learnt AJAX from Mastering Ajax tutorial in developerworks

http://www.ibm.com/developerworks/l...ajaxintro1.html

There is also a module cgi::ajax in CPAN that you might want to look at.


--
Ken Foskey
FOSS developer


Report this thread to moderator Post Follow-up to this message
Old Post
ken Foskey
04-03-08 01:11 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Beginners archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:41 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.