Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: HTML::Template Alternative to output()

by Anonymous Monk
on Oct 09, 2017 at 18:44 UTC ( [id://1201034]=note: print w/replies, xml ) Need Help??


in reply to HTML::Template Alternative to output()

If the screen is being updated, without being redrawn, in response to user activity, then what is happening behind the scenes is AJAX, where JavaScript code running on the browser is making asynchronous requests to the server, then updating the display ("DOM") accordingly. It is certainly possible to use a server-side template (output copied to a string, not printed ...) to prepare a block of HTML for delivery to the JavaScript client, which replaces a portion of the DOM with it, thus updating the display to include it.

But the admonition to "make it easy on yourself" is a good one. All of this sort of thing has been done before – a lot. Don't start from scratch.

  • Comment on Re: HTML::Template Alternative to output()

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-19 19:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found