Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Is it possible to output to an open web page?

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.

  • Comment on Re: Is it possible to output to an open web page?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2024-04-24 09:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found