This Forum has been archived there is no more new posts or threads ... use this link to report any abusive content
==> Report abusive content in this page <==
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How did they make the Facebook Chat program not reload on changing page?
06-20-2014, 03:05 PM
Post: #1
How did they make the Facebook Chat program not reload on changing page?
I am a website developer, and I am currently working on an on-site chat program with functionality similar to the current Facebook Chat program (the one that's fix-positioned on the bottom of the screen) on the Facebook website. One thing I've noticed is that their chat program does not get refreshed when you click on the various links or change pages on the site. This is very important, because you wouldn't want to lose your conversation with someone just because you clicked on something. But how is that done? How can you create a <div> or <iframe> that's not only shared on all pages, but also do not get reloaded when pages change? I don't think it's just ajax.

Ads

Find all posts by this user
Quote this message in a reply
06-20-2014, 03:11 PM
Post: #2
 
Look in to using Jquery. Dojo, or Prototype.

Those are Javascript libraries which include Ajax and such.

Jquery, in particular, has features that will use Ajax to replace the contents of a <div> without a refresh.

I can't say whether Facebook uses one of these tools or something else altogether, or mayhaps even wrote their own, but I think any one of those tools will do what you want.

Ads

Find all posts by this user
Quote this message in a reply
06-20-2014, 03:26 PM
Post: #3
 
It's just ajax -- the secret is that the page never really changes.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)