AJAX, jQuery, et. al.
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.
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.
Re: AJAX, jQuery, et. al.
I heartily approve, the number of page loads is one of my few reservations with phpBB. (Not that anyone else does it better.)
Re: AJAX, jQuery, et. al.
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.
- DavidIQ
- Customisations Team Leader
- Posts: 1905
- Joined: Thu Mar 02, 2006 4:29 pm
- Location: Earth
- Contact:
Re: AJAX, jQuery, et. al.
Writing some functions to handle simple AJAX that are cross-browser friendly isn't that hardToonArmy wrote:What and write our own cross browser JS library? I think not.
- EXreaction
- Registered User
- Posts: 1555
- Joined: Sat Sep 10, 2005 2:15 am
Re: AJAX, jQuery, et. al.
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.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.
Re: AJAX, jQuery, et. al.
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.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.
- EXreaction
- Registered User
- Posts: 1555
- Joined: Sat Sep 10, 2005 2:15 am
Re: AJAX, jQuery, et. al.
Yes, that is horrible abuse of javascript, everything needed for the page should be loaded on the page, not after using AJAX.
Re: AJAX, jQuery, et. al.
Have you examined how Google's search results are presented?EXreaction wrote:Yes, that is horrible abuse of javascript, everything needed for the page should be loaded on the page, not after using AJAX.
Re: AJAX, jQuery, et. al.
agreed, but including ajax/jquery is a must... the acp, mcp, ucp... and front end desperately needs it.naderman wrote:We should certainly aim for an API that can deal with both a plain HTML frontend and AJAX.
Re: AJAX, jQuery, et. al.
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 confirmation, login-logout
Quick reply
Delete, submit
Send PM read PM
Re: AJAX, jQuery, et. al.
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.
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.