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

Re: What are the proper names

by perlfan (Vicar)
on Dec 18, 2020 at 17:15 UTC ( #11125415=note: print w/replies, xml ) Need Help??


in reply to What are the proper names

>However, if two people have that table open on different computers, the second user won't see my update unless they refresh the display.

I am a little confused. If you don't want the user A to see user B's changes until the refresh and you're just looking for user B making changes to update their with a "submit" then, yeah, an AJAX request is all you need on some event (like when the focus leaves the input box).

If you do whant user A to see what user B just updated, then you can look into:

  • pub-sub pattern (publish/subscriber)
  • YUI3 has/had this thing they called PJAX, which was like AJAX, but was geared towards progressively enhanceing the HTML on the page - so selectively updating DOM elements as the state of the experience evolved

Note: YUI3 is dead, but they came out with some interesting ideas and were thought leaders before this explosion of JavaScript libraries. This may or may not be what you're looking for, but it will help you narrow your search results by seeing the jargon that comes with it.

Also, if you're looking for a "google docs" experience, the you may want to look at etherpad's source. It's not Perl, but they provide some "collaborative edit" features that seem basic enough to show you one such approach.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2021-04-14 20:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?