I was thinking that the shoutbox should use some improvements. One of those improvements would be using AJAX to post a shout. If many people are interested I would give this a shot and make a mod for it.
Hi there. I am new as you can see, but I think that would be a great idea. Ajax rocks as do you guys. Great work by all people involved. I will contribute at some point in time when I learn a little more about coding and css.
Ajax would be a great addition to the shoutbox Jay. That would be greatly appreciated if you could do this.
Yes, that would be great to have.
I also mentioned something similar here:
http://www.tinyportal.net/smf/index.php?topic=3266.0
Quote from: IchBinâââ,¬Å¾Ã,¢ on April 22, 2006, 03:46:51 AM
Ajax would be a great addition to the shoutbox Jay. That would be greatly appreciated if you could do this.
I'm reading up on it and will try to cook something up for testing over the weekend.
Quote from: anunlike on April 22, 2006, 04:03:17 AM
Yes, that would be great to have.
I also mentioned something similar here:
http://www.tinyportal.net/smf/index.php?topic=3266.0
That might have an impact on the server if it refreshes ever x amount of time. I think this can be done with AJAX too that way you don't have to refresh the whole page. I'm a n00b to JS so this will me my learning process too :P.
Quote from: JayBachatero on April 22, 2006, 05:33:09 AMQuote from: anunlike on April 22, 2006, 04:03:17 AMYes, that would be great to have.
I also mentioned something similar here:
http://www.tinyportal.net/smf/index.php?topic=3266.0
That might have an impact on the server if it refreshes ever x amount of time. I think this can be done with AJAX too that way you don't have to refresh the whole page. I'm a n00b to JS so this will me my learning process too :P.
Yeah, I was leaning towards being able to refresh at the click of a button, not so much an auto-refresh, even with AJAX.
Can't wait to see what you come up with.
I implemented this into my site. There is a small issue loading the template since the call back function is loading the whole SMF template into the shoutbox window. I will try to use the SMF layer system and work something out.
wow great idea :D looking forward to it!
Three cheers for Jay
Hip hip hooray :D
Hip hip hooray O0
Hip hip hooray ;D
Well I haven't worked on this for a while. been busy with other stuff. Once I get a chance I'll finish it up.
I'd love to have this too.. it's the one (small) thing I find missing from TP nowdays. If you can get this working that would be great!
Also would be good for the recent topics block and Side Stats block .. or any blocks that can have new content while the user is looking at a page.. ;) eg: New files .. New Pictures etc..
So why not create a SSI for it so that one can add it into any block
I think it all sounds good! :)
The sql calls to fetch recent topic and stats are very server intensive and really optimised for fullpage rendering, meaning its implicit that they do not get to be started that often. I would NOT recommend just "tacking" AJAX routines on them.
Shoutbox is a simple call in itself so that can work...and things like fetching a username, any pre-defined values etc, yes. Even latest picture from a gallery can work fine.
I'm with Bloc on this. There are certain places that using AJAX is good but other places it's just useless.
I haven't been able to work on this at all. Been too busy with RL. Hopefully I will have more time to get back on this in June and July. School is finally over for me in June. :).
I'm talking about the blocks on the left had site of your web pages.. eg: the Recent Topics and Some Stats and user info blocks....
I'd like to see them being able to be set to auto update say every 5 min or so (definable by the admin) .. not the whole page .. and not everytine something new is changes (although that woud be nice)
well if too much ajax was used
wouldnt it cause more server load?
with things auto loading left right and center
everyone going "huh whats happening"
zoom zoomm loading unloading and before we know it....
Below: PictureOur server where our website was housed
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fwww.geocities.com%2FSiliconValley%2FNetwork%2F1123%2Fexplode_fire.gif&hash=e3d98d97950ce063f0887d50051b84dc846343b3)
am I right?
Blue steel like akulion said too much AJAX is not good. Like for the showbox it's good cause you don't have to be reloading to make a shout. But I don't think someone is going to be sittng down waiting for a new line of recent topics to be updated. I believe that you read a page of posts in a topic in about 5 mins and then you click next to continue. When you go to the next page those stats will be updated already. So you don't really get to see the AJAX or need it.
the thing that i'm talking about is along these lines ... where you can change / update blocks not the whole page .. without frames by being triggered by an event etc... wether that be CLICK.. or time out ... or a flag being tripped eg: someone uploads a new file / pic or posts a new message check this out... here the end user can move the blocks .. open / close them.. and their content changes in some depending on events etc http://projects.backbase.com/RUI/portal.html