Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Is it possible to output to an open web page?by amon (Scribe) |
on Apr 28, 2014 at 18:23 UTC ( [id://1084161]=note: print w/replies, xml ) | Need Help?? |
No, websites don't work like that. SSI or CGI scripts assemble a whole page and then send it to the browser which then displays this page. However, you can use JavaScript on your web site. This JS can then make a request to your server when a link is clicked, and replace content in the displayed page by the content from the response. Such a JavaScript request to the server is called “AJAX”. JavaScript libraries like “jQuery” can help you make the request and insert the response into the page.
In Section
Seekers of Perl Wisdom
|
|