AJAX, jQuery, et. al.

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The next feature release of phpBB 3 will be 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.2.x. If you need support for phpBB 3.2.x please visit the 3.2.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 » Wed Dec 16, 2009 5:17 pm

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

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

Re: AJAX, jQuery, et. al.

Post by Sam » Wed Dec 16, 2009 6:59 pm

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: 1787
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth
Contact:

Re: AJAX, jQuery, et. al.

Post by DavidIQ » Wed Dec 16, 2009 8:13 pm

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 » Wed Dec 16, 2009 10:04 pm

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.

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

Re: AJAX, jQuery, et. al.

Post by Sam » Thu Dec 17, 2009 2:10 am

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 » Thu Dec 17, 2009 2:18 am

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 » Fri Dec 18, 2009 2:28 am

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 » Sat Dec 19, 2009 4:28 pm

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.

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

Re: AJAX, jQuery, et. al.

Post by jwxie » Sun Dec 20, 2009 6:52 pm

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 » Sun Dec 20, 2009 7:18 pm

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