MyBB Community Forums

Full Version: Ajax refresh your page without load
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
hi
vb has a plugin Ajax refresh your page without load

Who can make it back to my BB

regardHeart
There is really no point in refreshing an entire page with ajax - you might as well reload the page. Or do you just mean a div or section on the page?
in busy threat u must reload page for new post

i means new post add without loading like quick replay in postsHeart
ups....
(2012-07-16, 09:52 PM)Leefish Wrote: [ -> ]There is really no point in refreshing an entire page with ajax - you might as well reload the page. Or do you just mean a div or section on the page?

how do we do this?
Yea refreshing a div ONLY would be nice.
This would require a pretty simple plugin hooking into xmlhttp and a little javascript. Would be fairly easy for somebody to do.
(2012-08-12, 01:10 PM)euantor Wrote: [ -> ]This would require a pretty simple plugin hooking into xmlhttp and a little javascript. Would be fairly easy for somebody to do.


Any examples available ?
The bigger issue with this is that loading posts while the user is viewing a thread could disrupt their position on the page.
(2012-08-12, 04:09 PM)Frank.Barry Wrote: [ -> ]
(2012-08-12, 01:10 PM)euantor Wrote: [ -> ]This would require a pretty simple plugin hooking into xmlhttp and a little javascript. Would be fairly easy for somebody to do.


Any examples available ?

What do you mean exactly? An axemple of how to run an AJAX request? if so, google is your friend.

(2012-08-12, 04:10 PM)brad-t Wrote: [ -> ]The bigger issue with this is that loading posts while the user is viewing a thread could disrupt their position on the page.

That and the fact if you have 20 people online idling at a time viewing threads with posts being upodated every minute or so, that's 20 extra requests per minute. Those extra requests will add up on any decent sized board generating any amount of traffic unless you limit the feature to members only and not guests. An alernative would be to implement an infinite scroll type system where if the user's at the bottom of the thread only then does it check for new posts and append them.
Pages: 1 2