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.
User avatar
th23
Registered User
Posts: 112
Joined: Sat Jul 03, 2004 4:26 pm
Location: Bonn, Germany
Contact:

Re: AJAX, jQuery, et. al.

Post by th23 »

Just to bring one more situation suitable for some AJAX / jQuery uasge into the discussion:

Uploading attachments would be a nice one...definitely no need to reload the whole editor page for just adding another file, and maybe something for considering as well, it might allow multiple (parallel) uploads at a time...

LiquidSpark
Registered User
Posts: 9
Joined: Sun Jan 31, 2010 6:55 pm

Re: AJAX, jQuery, et. al.

Post by LiquidSpark »

The attachment upload interface should be more like the one in MediaFire and Filefront.

I third the idea of reordering forums using a drag-and-drop method.

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

Re: AJAX, jQuery, et. al.

Post by bobtheman »

LiquidSpark wrote:The attachment upload interface should be more like the one in MediaFire and Filefront.

I third the idea of reordering forums using a drag-and-drop method.
i agree, i fourth

User avatar
ZIN
Registered User
Posts: 25
Joined: Tue Feb 28, 2006 7:03 pm

Re: AJAX, jQuery, et. al.

Post by ZIN »

Ajax should be used in the community for sure! There are lot´s of javascript frameworks to work with.
phpBBrasil.com.br ( Brazil Support )
http://www.phpbbrasil.com.br/

LiquidSpark
Registered User
Posts: 9
Joined: Sun Jan 31, 2010 6:55 pm

Re: AJAX, jQuery, et. al.

Post by LiquidSpark »

What is AJAX?

From w3schools.com:
AJAX = Asynchronous JavaScript and XML.

AJAX is not a new programming language, but a new way to use existing standards.

AJAX is the art of exchanging data with a server, and update parts of a web page - without reloading the whole page.
AJAX is a new way of using the standards, XHTML/HTML5, CSS, XML, PHP, jQuery, etc. It's the combined use of them that features a minimum of network traffic and a maximum of immersion.

I think the entire forum setup should be based upon AJAX. This means that instead of using javascript, we would use CSS3 where we can... to make the site appear to fly instead of tread water. Making an overall smoother experience will get people to the site content that they want and back away from the site as quickly as possible. When the experience is nicer, they tend to return to the site or consider its future use, they recommend it to others, and the site's reputation improves.

AJAX will avoid people getting the feeling of being lost whenever a page loads; having a common set of content surrounding the environment provides a visual place marker. The same approach applies to overall web site design: keeping the navigation bar in the same location on each page, for example. phpBB's overall_header.html file is another example. There's no need to reload the overall_header.html file when browsing the forum.

User avatar
onehundredandtwo
Registered User
Posts: 33
Joined: Mon Feb 02, 2009 6:55 am

Re: AJAX, jQuery, et. al.

Post by onehundredandtwo »

You are assuming that it is just forum members that use the forum.
I have seen vBulletin sites based on AJAX, and as a guest just passing by and reading a single page, it is extremely annoying and slow to load the AJAX interface.

You also have to remember that phpBB must also work with users that don't have Javascript.
Need help preventing spam? Read Preventing spam in phpBB 3.0.6 and above

ToonArmy
Registered User
Posts: 335
Joined: Fri Mar 26, 2004 7:31 pm
Location: Bristol, UK
Contact:

Re: AJAX, jQuery, et. al.

Post by ToonArmy »

LiquidSpark wrote:AJAX is a new way of using the standards, XHTML/HTML5, CSS, XML, PHP, jQuery, etc.
Quite wrong. AJAX is just the utilisation of Javascripts XmlHttpRequest object to perform asynchronous (or synchronous) HTTP requests for XML (or any other resource) the term AJAX itself doesn't really fit as it is quite a special case of this method of working.
Chris SmithBlogXMOOhlohArea51WikiNo support via PM/IM
Image

User avatar
Meis2M
Registered User
Posts: 448
Joined: Fri Apr 23, 2010 10:18 am
Contact:

Re: AJAX, jQuery, et. al.

Post by Meis2M »

up this topic to suggest add in the core.

Suggest for using AJAX in:

Quick reply ...
MCP actions ...
UCP actions ...
Login Section ...
Register Section ...
Posting Preview ...
Pagination ...

User avatar
hanakin
Front-End Dev Team Lead
Front-End Dev Team Lead
Posts: 968
Joined: Sat Dec 25, 2010 9:02 pm
Contact:

Re: AJAX, jQuery, et. al.

Post by hanakin »

This is all requires a lot of groundwork, we need to focus on building a working API first and the new theme. This will make way for proper inclusion of ajax. But first thing is first converting UCP/MCP to be globally accessed and use controllers...small steps...
Donations welcome via Paypal Image

Post Reply