Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: cgi and update event

by amarquis (Curate)
on Mar 07, 2008 at 16:38 UTC ( [id://672812]=note: print w/replies, xml ) Need Help??


in reply to Re: cgi and update event
in thread cgi and update event

To expand upon olus' explaination, the data structures that you have there get processed by Perl server side to produce the HTML. Once that HTML is sent to the user, it is just plain text being rendered by their browser, and the only way to do anything dynamic is with something client-side like Javascript.

In addition to olus' solution, if you really want to do the processing grunt work in Perl and don't mind the slower user experience, you can write a relatively small amount of Javascript to re-query the server when a change is made.

Replies are listed 'Best First'.
Re^3: cgi and update event
by dsheroh (Monsignor) on Mar 07, 2008 at 17:50 UTC
    Or, if you don't want to write the JavaScript yourself, you can use CGI::Ajax to handle the interfacing between the HTML/JavaScript page and your server-side Perl.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://672812]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-23 15:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found