AJAX, jQuery, et. al.

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The current feature release of phpBB 3 is 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
KingAl
Registered User
Posts: 2
Joined: Wed Dec 16, 2009 6:51 am

Re: AJAX, jQuery, et. al.

Post by KingAl »

I heartily approve, the number of page loads is one of my few reservations with phpBB. (Not that anyone else does it better.)

Sam
Registered User
Posts: 31
Joined: Fri Jan 23, 2009 10:24 pm

Re: AJAX, jQuery, et. al.

Post by Sam »

The problem with heavily AJAX sites, however, when you do have do a page load, there is a certain feeling the page, as if it is very heavy. It just feels sluggish loading even on a good connection, and there is a lot of client side work to do for the set up. I, personally, would be sad to see phpBB use AJAX as a replacement for pages. Sure, it can probably help situations like the 'More Smilies' box, but where you tend to click around a lot, AJAX will feel too heavy. The use of AJAX (or even JavaScript) has its place, and that's pure front end enhancement, not a replacement for separate and unique pages.

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 1904
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth
Contact:

Re: AJAX, jQuery, et. al.

Post by DavidIQ »

ToonArmy wrote:What and write our own cross browser JS library? I think not.
Writing some functions to handle simple AJAX that are cross-browser friendly isn't that hard :P If you get into more complex events and features then adding jQuery would be the way to go of course.
Image

User avatar
EXreaction
Registered User
Posts: 1555
Joined: Sat Sep 10, 2005 2:15 am

Re: AJAX, jQuery, et. al.

Post by EXreaction »

SyntaxError90 wrote:The problem with heavily AJAX sites, however, when you do have do a page load, there is a certain feeling the page, as if it is very heavy. It just feels sluggish loading even on a good connection, and there is a lot of client side work to do for the set up. I, personally, would be sad to see phpBB use AJAX as a replacement for pages. Sure, it can probably help situations like the 'More Smilies' box, but where you tend to click around a lot, AJAX will feel too heavy. The use of AJAX (or even JavaScript) has its place, and that's pure front end enhancement, not a replacement for separate and unique pages.
There is a difference between proper use of javascript and improper use of it. Very few sites use javascript properly, but those that do use it properly never make the experience worse or make it "feel too heavy". Also, I don't know what you mean for using AJAX to replace pages. AJAX is just a layer above the standard interface that is supposed to make things faster and easier for the user, other than simple prompts it is really not used to replace pages ever.

Sam
Registered User
Posts: 31
Joined: Fri Jan 23, 2009 10:24 pm

Re: AJAX, jQuery, et. al.

Post by Sam »

EXreaction wrote:There is a difference between proper use of javascript and improper use of it. Very few sites use javascript properly, but those that do use it properly never make the experience worse or make it "feel too heavy". Also, I don't know what you mean for using AJAX to replace pages. AJAX is just a layer above the standard interface that is supposed to make things faster and easier for the user, other than simple prompts it is really not used to replace pages ever.
Some websites that use a lot of AJAX have a single page you sit on, while the AJAX dynamically loads content within this page. I, personally, am not a JavaScript person, but I do agree that sites do misuse it, as well as other pieces of web software.

User avatar
EXreaction
Registered User
Posts: 1555
Joined: Sat Sep 10, 2005 2:15 am

Re: AJAX, jQuery, et. al.

Post by EXreaction »

Yes, that is horrible abuse of javascript, everything needed for the page should be loaded on the page, not after using AJAX.

User avatar
Dog Cow
Registered User
Posts: 271
Joined: Wed May 25, 2005 2:14 pm

Re: AJAX, jQuery, et. al.

Post by Dog Cow »

EXreaction wrote:Yes, that is horrible abuse of javascript, everything needed for the page should be loaded on the page, not after using AJAX.
Have you examined how Google's search results are presented?

bobtheman
Registered User
Posts: 63
Joined: Sat Dec 19, 2009 4:00 pm

Re: AJAX, jQuery, et. al.

Post by bobtheman »

naderman wrote:We should certainly aim for an API that can deal with both a plain HTML frontend and AJAX.
agreed, but including ajax/jquery is a must... the acp, mcp, ucp... and front end desperately needs it.

jwxie
Registered User
Posts: 57
Joined: Mon Jan 23, 2006 3:38 am

Re: AJAX, jQuery, et. al.

Post by jwxie »

The only place where ajax and jquery or heavy javascript actions - is where users do not want to reload or to be redirect to another page or the same page (for update)

User confirmation, login-logout
Quick reply
Delete, submit
Send PM read PM

User avatar
Eelke
Registered User
Posts: 606
Joined: Thu Dec 20, 2001 8:00 am
Location: Bussum, NL
Contact:

Re: AJAX, jQuery, et. al.

Post by Eelke »

As for user confirmation, recently usability experts suggest its actually better to execute user commands immediately, but allow users to undo their actions. Confirmations have become something that people will almost automatically just confirm, and may still end up regretting their action. Of course completely unrelated to AJAX, but wanted to throw it out there anyway.

I agree phpBB needs to cut down on the number of complete pages served, but I don't necesarrily see that AJAX is the desperately needed answer. One source of excessive page requests are messages boxes, stating a topic has been posted, or other user feedback. This can easily be replaced by a messaging system, where a special screen area is reserved for feedback from previous actions, if any.

Post Reply