Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 02-24-2009, 11:22 PM   #1
LQ Newbie
Registered: Dec 2007
Posts: 6

Rep: Reputation: 1
Using perl and possibly ajax, need help getting started


I've been writing perl scripts and perl CGIs for quite a while now. But all of my scripts/pages/cgi follow the design of:

1) get something from user
2) do something with that data
3) generate and display html

Nothing fancy, and I don't use I've just always generated and printed my own html, what can I say? I'm a control freak.

Some newer projects I'm working on could benefit from not doing constant GETs or constantly refreshing a page. For example, I'd like to have a page that could be broken up using frames or tables or whatever and stream text to each one of those frames/cells without doing constant GETs/refreshes. Something like multitail for a web page. That's just an example, not necessarily what I'm doing though. I'm just trying to get around the constant requests for data from the client, same thing with refreshes.

Ajax seems to be the tool to use for this sort of thing but I've never really dug into javascript, so I'd have to jump in to that if it's the way to go. I've checked out CGI::Ajax, but it seems to hide me from the 'code' the same way does....I'd rather stay away from that.

So my question is, what's the best way to approach this?

Old 02-25-2009, 02:44 AM   #2
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,589

Rep: Reputation: 145Reputation: 145
you could take a look at for and include these javascript libraries in your site. It's a professional framework for handling AJAX and fancy effects that are working on most browsers...

And as you call yourself a control freak: mod_perl will provide you with much more detailed control over the http request and its handling so this may be an interesting option. I'm working in web development for some years now and mod_perl is my favourite technology, unfortunately not very common.

Last edited by j-ray; 02-25-2009 at 04:22 AM.
Old 02-25-2009, 07:11 AM   #3
Senior Member
Registered: Mar 2004
Location: england
Distribution: NetBSD, Void, Debian, Mint, Ubuntu, Puppy, Raspbian
Posts: 3,487

Rep: Reputation: 224Reputation: 224Reputation: 224
control freak?

not very perl.

sounds like you like typing
A lot!

Old 02-25-2009, 07:52 AM   #4
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
If you want that much control, I think you will have to learn Javascript and write those parts that way. If you want a little help, jQuery is a great library. But if you won't even use (much less any of the hundreds of more modern, excellent Perl modules for web applications, then you probably want to do it by hand.
Old 02-27-2009, 01:12 AM   #5
LQ Newbie
Registered: Dec 2007
Posts: 6

Original Poster
Rep: Reputation: 1
Thanks to everyone for your replies.

I've been working with CGI and CGI::Ajax and have the beginnings of what I want. I think it will definitly be beneficial to me to use one of the templating modules as well.

CGI::Ajax seems like it will hide me from the gory stuff, but I should still role up my sleeves and just learn javascript and/or jquery...along with how to work ajax in to that.

Well I've got some learning to do ....


ajax, html, perl

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Started nautilus as root....problems started Chaosbringer SUSE / openSUSE 0 11-05-2008 03:00 AM
LXer: Solid Ajax applications, Part 2: Building Ajax back ends LXer Syndicated Linux News 0 01-22-2008 12:30 PM
LXer: Eclipse Ajax Toolkit Framework and Ajax tools LXer Syndicated Linux News 0 05-12-2006 12:21 PM
LXer: Mastering Ajax, Part 3: Advanced requests and responses in Ajax LXer Syndicated Linux News 0 02-16-2006 06:46 AM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:36 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration