AJAX-Framework in Joomla?

For Joomla! 1.0 Coding related discussions.
User avatar
Hackwar
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3788
Joined: Fri Sep 16, 2005 8:41 pm
Location: NRW - Germany
Contact:

AJAX-Framework in Joomla?

Post by Hackwar » Sat Sep 24, 2005 1:18 pm

Hi folks,
in the current issue of the german computermagazine c't is an article which describes the AJAX technique and I was wondering if such a framework should not be implemented in Joomla.
For all out there, that have never heard of this term before (like me before I read the article): AJAX is nothing really new, it is a combination of several more or less standards. There is XHTML and CSS for presentation, the Document Object Model for userinteraction, XML and XSLT for the connection between client and server and at last Javascript to connect all these together. This allows you to create interactive Webpages, for example a searchbox wich suggests the string you want to find or Google Maps works partly with it. You can practically create webapplications wich you can work like a normal local software, you don't have to wait for the new page to load, changes are made only to a small portion of the page and the browser does not have to render a full page but merely only a few elements.
The bad part of it is that search engines can't index these pages right, disabled people will get problems and if you don't have Javascript turned on, you just see an error.
Nevertheless, I thought it would be at least interesting to talk about the possibilities and if a framework should be included...

Hackwar
god doesn't play dice with the universe. not after that drunken night with the devil where he lost classical mechanics in a game of craps.

Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.

unclepete
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 105
Joined: Sun Aug 28, 2005 8:50 am

Re: AJAX-Framework in Joomla?

Post by unclepete » Sat Sep 24, 2005 1:24 pm

I'm looking at AJAX. It's a good technology with lots of uses, especially in an environment like Joomla! where every page is generated.

User avatar
stingrey
Joomla! Hero
Joomla! Hero
Posts: 2756
Joined: Mon Aug 15, 2005 4:36 pm
Location: Marikina, Metro Manila, Philippines
Contact:

Re: AJAX-Framework in Joomla?

Post by stingrey » Sat Sep 24, 2005 1:42 pm

The short answer is yes.

Eventutally a AJAX framework will be included into the Joomla! Core.
Our Javascript Expert Johan [Jinx] Janssens is in charge of its implmentation
Rey Gigataras
http://www.wizmediateam.com <-- great team of talented Web Designers and Programmers!
http://about.me/reygigataras <-- About Me :)
Partner, Business Development & Project Manager, Event Manager, Sports Coach :D

unclepete
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 105
Joined: Sun Aug 28, 2005 8:50 am

Re: AJAX-Framework in Joomla?

Post by unclepete » Sat Sep 24, 2005 1:50 pm

Good one, Rey. Any chance of an ETA? 1.2? 2.0?

User avatar
bluesaze
Joomla! Guru
Joomla! Guru
Posts: 750
Joined: Mon Sep 05, 2005 6:18 am
Location: India
Contact:

Re: AJAX-Framework in Joomla?

Post by bluesaze » Sat Sep 24, 2005 2:26 pm

Hackwar wrote: The bad part of it is that search engines can't index these pages right, disabled people will get problems and if you don't have Javascript turned on, you just see an error.
Nevertheless, I thought it would be at least interesting to talk about the possibilities and if a framework should be included..
I think Ajax is pretty cool i looked at some examples for it. A lot of major players are taking it seriouly ( Yahoo is about to revamp its mail UI.  http://blogs.pcworld.com/staffblog/archives/000928.html all ), but I wonder what nic will say to that and about the Searchengine thing a lot of people will get upset already there is huge thread about SeF in the wishlist.
A. N. Jacob-New
The Tech & Design Blog http://www.Clazh.com

User avatar
PhilTaylor-Prazgod
Joomla! Ace
Joomla! Ace
Posts: 1402
Joined: Sat Aug 20, 2005 12:32 pm
Location: Jersey, Channel Islands
Contact:

Re: AJAX-Framework in Joomla?

Post by PhilTaylor-Prazgod » Sat Sep 24, 2005 3:28 pm

Ajaz is good for "ACTION" based functions (Voting, commenting etc) but should not be used for complete page loads or for anything critical.

I implemented AJAX into mosKnowledgebase (Andrew Eddie knows and has seen this) for many action based functions (Voting, commenting etc) but like others have said it should not be used too much, or for pages that need to be indexed.  mosKnowledgebase does a good job of this :) as google loves the links, see this: http://www.google.co.uk/search?q=allinu ... l&filter=0

Of course, when javascript is disabled (or a disabled/blind person is using a screenreader or non-JS browser) then an alternative measure should be available (In the case of voting, commenting etc this could be a normal form post, and for a link a normal hyperlink instead of a javascript onclick command) - This I must get around to doing for mosKB.

AJAX could dramatically speed up the administrators useability in the backend of mambo where SEO is not a consideration.  AJAX could make the whole experience of managing mambo content a 1000% times less painful. :-)

So, in conclusion, Ajax is a nice tool in the developers toolbox, and should not be used when SEO of ajax loaded content is notimportant, AJAX should NOT be the only way to navigate a site or perform a function (Fallback should be present if JS is disabled) and Ajax COULD make administrating Mambo a much nicer and MUCH faster experience.
Last edited by PhilTaylor-Prazgod on Sat Sep 24, 2005 3:30 pm, edited 1 time in total.
Phil Taylor
- https://mySites.guru - Manage Multiple Joomla/WordPress Sites In One Dashboard for Security, Audits, Backups and more....
- https://www.phil-taylor.com/

User avatar
stingrey
Joomla! Hero
Joomla! Hero
Posts: 2756
Joined: Mon Aug 15, 2005 4:36 pm
Location: Marikina, Metro Manila, Philippines
Contact:

Re: AJAX-Framework in Joomla?

Post by stingrey » Sat Sep 24, 2005 3:34 pm

PhilTaylor-Prazgod wrote: So, in conclusion, Ajax is a nice tool in the developers toolbox, and should not be used when SEO of ajax loaded content is notimportant, AJAX should NOT be the only way to navigate a site or perform a function (Fallback should be present if JS is disabled) and Ajax COULD make administrating Mambo a much nicer and MUCH faster experience.
Yes we agree.

AJAX when implmented is only a tool useful really for the Admin Backend.
And of course we will ensure there is a fallback especially in terms of Accesibility.
Rey Gigataras
http://www.wizmediateam.com <-- great team of talented Web Designers and Programmers!
http://about.me/reygigataras <-- About Me :)
Partner, Business Development & Project Manager, Event Manager, Sports Coach :D

User avatar
PhilTaylor-Prazgod
Joomla! Ace
Joomla! Ace
Posts: 1402
Joined: Sat Aug 20, 2005 12:32 pm
Location: Jersey, Channel Islands
Contact:

Re: AJAX-Framework in Joomla?

Post by PhilTaylor-Prazgod » Sat Sep 24, 2005 3:35 pm

Grrr - My last post has a double not - it should read

"...should not be used when SEO of ajax loaded content is important..."
Phil Taylor
- https://mySites.guru - Manage Multiple Joomla/WordPress Sites In One Dashboard for Security, Audits, Backups and more....
- https://www.phil-taylor.com/

User avatar
Jinx
Joomla! Champion
Joomla! Champion
Posts: 6508
Joined: Fri Aug 12, 2005 12:47 am
Contact:

Re: AJAX-Framework in Joomla?

Post by Jinx » Sun Sep 25, 2005 12:36 am

AJAX will come to Joomla and this will probably already happen into 1.1. The goal for 1.1 is to create a small unobstrusive javascript framework to handle all javascript backend functionality. In time it should replace most of the external js libs. The actual impact of the AJAX implementation will be very minimal. We don't want to force the use of AJAX upon a 3P developer we just want to make it easily available.

As Phil has pointed out AJAX is a tool that can vastly improve the speed of the administrator but isn't suited for use on the frontend due to accessibility issues. We have no intention to use AJAX on the frontend, however the API's will be available for 3PD to use them if they feel they need it. We will also provide documentation and best practices for 3P developers.
Johan Janssens - Joomla Co-Founder, Lead Developer of Joomla 1.5

http://www.joomlatools.com - Joomla extensions that just work

ford
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 166
Joined: Thu Aug 18, 2005 11:45 am

Re: AJAX-Framework in Joomla?

Post by ford » Mon Sep 26, 2005 7:56 am


User avatar
Jinx
Joomla! Champion
Joomla! Champion
Posts: 6508
Joined: Fri Aug 12, 2005 12:47 am
Contact:

Re: AJAX-Framework in Joomla?

Post by Jinx » Mon Sep 26, 2005 8:31 am

Most of them where on my list already, thanks anyway :)
Johan Janssens - Joomla Co-Founder, Lead Developer of Joomla 1.5

http://www.joomlatools.com - Joomla extensions that just work

User avatar
Hackwar
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3788
Joined: Fri Sep 16, 2005 8:41 pm
Location: NRW - Germany
Contact:

Re: AJAX-Framework in Joomla?

Post by Hackwar » Mon Sep 26, 2005 8:59 am

When AJAX is going to be in Joomla 1.1, where can I see the progress? I'm currently working on an ACL-implementation and I will strongly need AJAX in the admin interface...
god doesn't play dice with the universe. not after that drunken night with the devil where he lost classical mechanics in a game of craps.

Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.

User avatar
Jinx
Joomla! Champion
Joomla! Champion
Posts: 6508
Joined: Fri Aug 12, 2005 12:47 am
Contact:

Re: AJAX-Framework in Joomla?

Post by Jinx » Mon Sep 26, 2005 4:15 pm

U will be able to follow the progress on the svn, 1.1 is been held in the main trunk. I will also make regulary post on the improvements and implementations. At the moment i'm looking to find a suitable AJAX library to include or to build my own.
Johan Janssens - Joomla Co-Founder, Lead Developer of Joomla 1.5

http://www.joomlatools.com - Joomla extensions that just work

Asphyx
Joomla! Hero
Joomla! Hero
Posts: 2454
Joined: Sun Aug 28, 2005 5:03 pm

Re: AJAX-Framework in Joomla?

Post by Asphyx » Mon Sep 26, 2005 4:51 pm

There is already a module that uses Ajax I have seen...

It is a replacement for the Woh is Online Module that will update at an interval you set to keep the count of visitors online up to date and to automatically add new members logged on since it's first load to the listing...

User avatar
cozimek
Joomla! Guru
Joomla! Guru
Posts: 570
Joined: Thu Aug 18, 2005 1:27 pm
Location: Washington, DC & San Francisco, CA
Contact:

Re: AJAX-Framework in Joomla?

Post by cozimek » Thu Sep 29, 2005 2:43 pm

Johan,

Thanks for leading up this effort.  I know there are a few places where a little splash of AJAX would help.  Yeah, there's a lot of cool UI uses (disappearing divs, etc), but I think the best implementations of it are when you're dealing with an overload of data.

For instance, a great use-case is adding a static link menu item.  When we have sites with over 200 static pages, scrolling through a list (not even in alpha ASC order now....i've submitted a feature request) it would be nice to splash a little AJAX in there that does an auto-complete or narrowing down of the list of static content to choose from.

So, in my opinion, I think that it's great to use AJAX for backend design, but I think it's even more critical to think of ways it can help in data entry and editing, where we need greatly to use it to help organizations scale their Joomla sites.

Please keep me posted as you continue on your way.  I'd love to pass along any UI issues I see.

Best,
Ryan
Soapbox Engage - "Empowering the missions of non-profits through technology"
www.soapboxengage.com
Twittering at www.twitter.com/cozimek (@cozimek)

User avatar
Jinx
Joomla! Champion
Joomla! Champion
Posts: 6508
Joined: Fri Aug 12, 2005 12:47 am
Contact:

Re: AJAX-Framework in Joomla?

Post by Jinx » Thu Sep 29, 2005 5:18 pm

Thanks Ryan for the feedback. U are rigth on the money, don't expect the AJAX framework to juggle with divs, sliding effects etc. It will be used to improve the usability of the admin interface, an auto complete filter box is one of the things my wishlist. :)

I will try to keep the community informed about my progress and decesion making. Will ask for input and feedback on critical issues

Johan
Johan Janssens - Joomla Co-Founder, Lead Developer of Joomla 1.5

http://www.joomlatools.com - Joomla extensions that just work

User avatar
Hackwar
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3788
Joined: Fri Sep 16, 2005 8:41 pm
Location: NRW - Germany
Contact:

Re: AJAX-Framework in Joomla?

Post by Hackwar » Mon Nov 14, 2005 6:25 pm

Is there some update on this theme?
god doesn't play dice with the universe. not after that drunken night with the devil where he lost classical mechanics in a game of craps.

Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.

User avatar
Jinx
Joomla! Champion
Joomla! Champion
Posts: 6508
Joined: Fri Aug 12, 2005 12:47 am
Contact:

Re: AJAX-Framework in Joomla?

Post by Jinx » Mon Nov 14, 2005 6:54 pm

What u think yourself ?  8)
Johan Janssens - Joomla Co-Founder, Lead Developer of Joomla 1.5

http://www.joomlatools.com - Joomla extensions that just work

User avatar
happy_noodle_boy
Joomla! Guru
Joomla! Guru
Posts: 692
Joined: Thu Aug 18, 2005 10:32 am
Location: United Kingdom
Contact:

Re: AJAX-Framework in Joomla?

Post by happy_noodle_boy » Tue Nov 15, 2005 6:42 am

You might look at these two libraries for a start :

http://openrico.org/rico/home.page

http://script.aculo.us/

I'm hoping to include drag&drop functionality in the JCE Admin for organizing the editor button layout.

Sortable lists for ordering would be a nice inclusion in the backend.
just because you're not paranoid, doesn't mean everybody isn't out to get you.
http://www.maketradefair.org

User avatar
PhilTaylor-Prazgod
Joomla! Ace
Joomla! Ace
Posts: 1402
Joined: Sat Aug 20, 2005 12:32 pm
Location: Jersey, Channel Islands
Contact:

Re: AJAX-Framework in Joomla?

Post by PhilTaylor-Prazgod » Tue Nov 15, 2005 10:36 am

I use xAjax lib as its quite easy to learn :)
Phil Taylor
- https://mySites.guru - Manage Multiple Joomla/WordPress Sites In One Dashboard for Security, Audits, Backups and more....
- https://www.phil-taylor.com/

User avatar
bigodines
Joomla! Hero
Joomla! Hero
Posts: 2227
Joined: Thu Aug 18, 2005 11:10 am
Location: Floripa, Brazil
Contact:

Re: AJAX-Framework in Joomla?

Post by bigodines » Tue Nov 15, 2005 12:57 pm

Man, this Rico library looks very interesting, I'm gonna try thsi one.

Oh and it uses the awesome Prototype JS framework..

User avatar
MystaMax
Joomla! Explorer
Joomla! Explorer
Posts: 333
Joined: Thu Aug 18, 2005 4:55 am
Location: Atlanta, GA USA
Contact:

Re: AJAX-Framework in Joomla?

Post by MystaMax » Tue Nov 15, 2005 3:53 pm

Will this JS framework be built off some pre-existing library such as prototype or rico?  I think the backend is the perfect place for this to implemented. Should be interesting.

User avatar
Jinx
Joomla! Champion
Joomla! Champion
Posts: 6508
Joined: Fri Aug 12, 2005 12:47 am
Contact:

Re: AJAX-Framework in Joomla?

Post by Jinx » Tue Nov 15, 2005 6:35 pm

MystaMax wrote: Will this JS framework be built off some pre-existing library such as prototype or rico?  I think the backend is the perfect place for this to implemented. Should be interesting.
Currently I am still in research phase. AJAX or better said technologies built around the xmlhttprequest object and dhtml are having a revival. Suddenly everyone thinks they are cool and hip, making it very hard to  decide on what library to go for. If we would go for one we need to be sure it will be in continious development and does what we expect it todo. If not it might be perfectly possible that we create one ourselves as we did in Mambo 4.5.3.

The work is planned for 1.2, more news will come your way onces we have finished 1.1 development and I can focus on research and prototyping for 1.2.
Johan Janssens - Joomla Co-Founder, Lead Developer of Joomla 1.5

http://www.joomlatools.com - Joomla extensions that just work

ybouan
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Wed Aug 24, 2005 4:43 pm

Re: AJAX-Framework in Joomla?

Post by ybouan » Tue Nov 15, 2005 7:45 pm

Openrico is definitely cool.

I have also been watching these guys:
http://qooxdoo.oss.schlund.de/

User avatar
bigodines
Joomla! Hero
Joomla! Hero
Posts: 2227
Joined: Thu Aug 18, 2005 11:10 am
Location: Floripa, Brazil
Contact:

Re: AJAX-Framework in Joomla?

Post by bigodines » Wed Nov 16, 2005 9:14 am

The problem I've found with openrico is that it has no community forums or mailing lists.. only two files as the documentation (correct me if i'm wrong please).

User avatar
happy_noodle_boy
Joomla! Guru
Joomla! Guru
Posts: 692
Joined: Thu Aug 18, 2005 10:32 am
Location: United Kingdom
Contact:

Re: AJAX-Framework in Joomla?

Post by happy_noodle_boy » Wed Nov 16, 2005 9:17 am

scriptaculous looks better, and I'm sure you can do most of what is shown with openrico with it.
just because you're not paranoid, doesn't mean everybody isn't out to get you.
http://www.maketradefair.org

User avatar
pollen8
Joomla! Explorer
Joomla! Explorer
Posts: 350
Joined: Wed Aug 17, 2005 10:32 pm
Location: la Rochelle - France
Contact:

Re: AJAX-Framework in Joomla?

Post by pollen8 » Wed Nov 16, 2005 10:52 am

PhilTaylor-Prazgod wrote: I use xAjax lib as its quite easy to learn :)
Phil - do you have a working example of suing xajax in joomla? I use xajax on  non joomla stuff (definately a great xajax lib), but struggled to integrate it into a component.
I'm pretty sure it was to do with being unable to add the correct code into the administrations site's head...?

Cheers
Rob
aka

User avatar
PhilTaylor-Prazgod
Joomla! Ace
Joomla! Ace
Posts: 1402
Joined: Sat Aug 20, 2005 12:32 pm
Location: Jersey, Channel Islands
Contact:

Re: AJAX-Framework in Joomla?

Post by PhilTaylor-Prazgod » Wed Nov 16, 2005 12:56 pm

I do - but I cannot show you as its a live customer site and I am sure they will not appreciate it.

You have to think out of the box in order to do it the "Joomla Way" with the way that Joomla has its components called through index.php all the time but it can be done.

I will be replacing the home grown ajax in mosKnowledgebase in the near future with xAjax as I think its one of the better libs

remember when looking at libs its not all aout having google style drag ad drops or visible tricks - its about functionality.  While it is nice to be able to drang and drop things, slide things etc that is nor really AJAX but pure javascript and not really what I think of when i think aJax. 

AJAX should be about functionality - xAjax gives me a toolkit, which I can add to using the built in extender classes.  Although the class I believe is no longer in development (from what I read) even I feel confident modifing it.
Phil Taylor
- https://mySites.guru - Manage Multiple Joomla/WordPress Sites In One Dashboard for Security, Audits, Backups and more....
- https://www.phil-taylor.com/

User avatar
pollen8
Joomla! Explorer
Joomla! Explorer
Posts: 350
Joined: Wed Aug 17, 2005 10:32 pm
Location: la Rochelle - France
Contact:

Re: AJAX-Framework in Joomla?

Post by pollen8 » Wed Nov 16, 2005 1:12 pm

looks like it has a new team leader -

http://sourceforge.net/forum/forum.php?forum_id=507068
aka

User avatar
PhilTaylor-Prazgod
Joomla! Ace
Joomla! Ace
Posts: 1402
Joined: Sat Aug 20, 2005 12:32 pm
Location: Jersey, Channel Islands
Contact:

Re: AJAX-Framework in Joomla?

Post by PhilTaylor-Prazgod » Wed Nov 16, 2005 1:15 pm

pollen8 wrote: looks like it has a new team leader -

http://sourceforge.net/forum/forum.php?forum_id=507068

yeah it did - and nothing has been released since :)

Main Site
http://xajax.sourceforge.net/
Forum:
http://www.intuitivefuture.com/xajaxforums
Phil Taylor
- https://mySites.guru - Manage Multiple Joomla/WordPress Sites In One Dashboard for Security, Audits, Backups and more....
- https://www.phil-taylor.com/


Locked

Return to “Joomla! 1.0 Coding”