Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Print my latest MySQL Entries without page reload

by Anonymous Monk
on Mar 03, 2020 at 14:32 UTC ( #11113708=note: print w/replies, xml ) Need Help??


in reply to Re: Print my latest MySQL Entries without page reload
in thread Print my latest MySQL Entries without page reload

To clarify: you will write JavaScript code in your page which makes an asynchronous request to the back-end (Perl) server as the user does various things. It is often the case that the back-end will format a chunk of HTML (using some kind of template system) and then send back that HTML as part of a (JSON-encoded) response. This HTML is then inserted into the "innerHTML" of something on the screen. There is actually a tremendous amount of material out there on so-called "AJAX," for every programming language under the sun. "w3schools" even has on-line "try it!" demonstrations. Once you get the hang of what it is you are needing to do, "doing it in Perl" is straightforward.
  • Comment on Re^2: Print my latest MySQL Entries without page reload

Replies are listed 'Best First'.
Re^3: Print my latest MySQL Entries without page reload
by Your Mother (Bishop) on Mar 03, 2020 at 16:28 UTC

    Your so-called clarification was to the wrong user. You donít care, itís been demonstrated dozens of times, but someone else might.

Re^3: Print my latest MySQL Entries without page reload
by stevieb (Canon) on Mar 03, 2020 at 17:26 UTC
    "Once you get the hang of what it is you are needing to do, "doing it in Perl" is straightforward."

    Why not give a straightforward example then?

      He actually has no idea how straightforward it would be in Perl, or any other programming language.

        Oh, I'm quite aware ;)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (1)
As of 2020-10-25 06:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (249 votes). Check out past polls.

    Notices?