TinyPortal

Development => Feedback => Topic started by: JayBachatero on April 22, 2006, 01:12:11 AM

Title: AJAX for TP ShoutBox
Post by: JayBachatero on April 22, 2006, 01:12:11 AM
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.
Title: Re: AJAX for TP ShoutBox
Post by: Dallas on April 22, 2006, 01:18:06 AM
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.
Title: Re: AJAX for TP ShoutBox
Post by: 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.
Title: Re: AJAX for TP ShoutBox
Post by: 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
Title: Re: AJAX for TP ShoutBox
Post by: JayBachatero on April 22, 2006, 05:33:09 AM
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.
Title: Re: AJAX for TP ShoutBox
Post by: anunlike on April 22, 2006, 05:58:07 AM
Quote from: JayBachatero on April 22, 2006, 05:33:09 AM
Quote 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.
Title: Re: AJAX for TP ShoutBox
Post by: JayBachatero on April 23, 2006, 03:34:58 AM
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.
Title: Re: AJAX for TP ShoutBox
Post by: akulion on May 01, 2006, 02:59:45 PM
wow great idea :D looking forward to it!

Three cheers for Jay

Hip hip hooray :D
Hip hip hooray  O0
Hip hip hooray  ;D
Title: Re: AJAX for TP ShoutBox
Post by: JayBachatero on May 03, 2006, 07:35:21 PM
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.
Title: Re: AJAX for TP ShoutBox
Post by: Boworr on May 23, 2006, 10:55:25 AM
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!
Title: Re: AJAX for TP ShoutBox
Post by: Blue Steel on May 23, 2006, 11:32:38 AM
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
Title: Re: AJAX for TP ShoutBox
Post by: Crip on May 23, 2006, 12:54:42 PM
I think it all sounds good! :)

Title: Re: AJAX for TP ShoutBox
Post by: bloc on May 24, 2006, 01:48:42 AM
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.
Title: Re: AJAX for TP ShoutBox
Post by: JayBachatero on May 27, 2006, 06:08:25 PM
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. :).
Title: Re: AJAX for TP ShoutBox
Post by: Blue Steel on May 27, 2006, 11:36:02 PM
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)
Title: Re: AJAX for TP ShoutBox
Post by: akulion on May 28, 2006, 12:51:07 AM
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?
Title: Re: AJAX for TP ShoutBox
Post by: JayBachatero on May 30, 2006, 03:18:58 AM
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.
Title: Re: AJAX for TP ShoutBox
Post by: Blue Steel on May 31, 2006, 01:03:44 AM
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