TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 08-03-2005, 06:32 PM   #1 (permalink)
The Contributor
 
Join Date: Mar 2005
Posts: 81
Thanks: 0
AlEast is on a distinguished road
Default favorite ajax library

Recently we have been looking at integrating some AJAX functionality into some applications we have and are wondering if anyone has experience with any of the popular libraries.

Some we have looked at are

http://prototype.conio.net/
http://openrico.org/rico/home.page which uses prototype

Any input would be great!
__________________
NEWEDGE Services, Inc. - Developers of ClientExec
AlEast is offline  
Reply With Quote
Old 08-04-2005, 01:22 PM   #2 (permalink)
The Wanderer
 
Join Date: Jul 2005
Posts: 17
Thanks: 0
4fingers is on a distinguished road
Default

I dont think I can help much since I have never heard of this function before but after a read into it. I got a good article here:
http://en.wikipedia.org/wiki/AJAX

One of the pros and cons it tels is that on somethings you cant press the back button because the data is made dynamically without reloading the page and search engines wont be able to pick up the dynamic data. Offcourese people need to have javascript running.
But still looks like it can be some time and bandwidth saver for the client.
I hope someone can give you more useful info than I did.
4fingers is offline  
Reply With Quote
Old 08-05-2005, 06:02 AM   #3 (permalink)
The Contributor
 
Join Date: Jun 2005
Posts: 40
Thanks: 0
clenard is on a distinguished road
Default

Hey Al! Good question... I too was looking for the same thing recently and ran into Rico, Sajax, JPSpan (Harry Feucks project) and a few others... but those three seem to be the most popular...

From what I've seen I believe Sajax seems to be the most mature project - with JPSpan following right behind. I still haven't had the chance to use any of the three - so I can't say for sure - but I spent hours going over all three of those... here's some links:

http://www.modernmethod.com/sajax/ ( Sajax )

http://jpspan.sourceforge.net/ ( JPSpan )

and it looks like you have Rico... Definately check out those two though - there's alot to think about but I think the three mentioned are the best!
clenard is offline  
Reply With Quote
Old 08-05-2005, 12:46 PM   #4 (permalink)
The Contributor
 
Join Date: Mar 2005
Posts: 81
Thanks: 0
AlEast is on a distinguished road
Default

Thanks, I will take a look at jpspan. I had missed that one in my searches.
__________________
NEWEDGE Services, Inc. - Developers of ClientExec
AlEast is offline  
Reply With Quote
Old 08-05-2005, 01:22 PM   #5 (permalink)
The Acquainted
 
Join Date: May 2005
Posts: 106
Thanks: 0
jaswinder_rana is on a distinguished road
Default

i might be going out of topic, but i have heard, search engines have problems crawling these pages, as they are refreshed with javascript and search engines dont execute javascript as yet.

is that true? willl it have any impact on a website ranking or so??
__________________
---------------------------
Errors = Improved Programming.
Portfolio
Send a message via MSN to jaswinder_rana
jaswinder_rana is offline  
Reply With Quote
Old 08-05-2005, 02:30 PM   #6 (permalink)
The Wanderer
 
Join Date: Jul 2005
Posts: 17
Thanks: 0
4fingers is on a distinguished road
Default

Like I said before this was one of the small problems faced.
This is from Googles website
http://www.google.com/webmasters/guidelines.html
"Use a text browser such as Lynx to examine your site, because most search engine spiders see your site much as Lynx would. If fancy features such as JavaScript, cookies, session IDs, frames, DHTML, or Flash keep you from seeing all of your site in a text browser, then search engine spiders may have trouble crawling your site."

So google might find it hard to crawl the site and depending on how much info it cant access then it might drop your ranking as maybe it cant see the links that you might have put there.

Also as you say the pages are refreshed with javascript which means when the user wants to go back a step he/she might automatically press the back button on their browser but that will back them into the last page that was loaded which may even cause them to exit the site completely. So unless you have a good navagation system enableing the user to go back without using the back buttons then that may be no worry.

And the chances of someone haveing javascript disabled/not installed are really small so I wouldnt worry about that.

Last edited by 4fingers : 08-05-2005 at 02:54 PM.
4fingers is offline  
Reply With Quote
Old 08-05-2005, 05:42 PM   #7 (permalink)
The Acquainted
 
Join Date: Mar 2005
Posts: 177
Thanks: 0
CreativeLogic is on a distinguished road
Default

Well mainly I've seen AJAX used on sites that require some type of login from a user. Search engines won't even be able to make use of it anyways if that's the case. I can only think of a few reasons I'd use it without a user system.
CreativeLogic is offline  
Reply With Quote
Old 08-05-2005, 08:11 PM   #8 (permalink)
The Contributor
 
Join Date: Jun 2005
Posts: 40
Thanks: 0
clenard is on a distinguished road
Default

Google always has problems with all kinds of different technologies... they use AJAX as well and pretty much made it what it is with their Maps...

I've had a site with a Flash header and Flash ads on the side that got crawled more than a popular blog a friend of mine had... it all depends on alot of things I suppose... I won't worry about AJAX and Google for some projects - or else those projects would never come to life... MSN, Yahoo, etc will still crawl the sites... just make sure you submit to DMOZ.org and you'll get plenty of extra hits :)
clenard is offline  
Reply With Quote
Old 09-11-2007, 07:14 PM   #9 (permalink)
The Visitor
 
Join Date: Sep 2007
Posts: 3
Thanks: 0
erect is on a distinguished road
Default

Quote:
Originally Posted by jaswinder_rana View Post
i might be going out of topic, but i have heard, search engines have problems crawling these pages, as they are refreshed with javascript and search engines dont execute javascript as yet.

is that true? willl it have any impact on a website ranking or so??
Yes it's true but the golden rule would be to build pages using php and add gadgets that use ajax on the pages. Indexing most gadgets would be useless for search engines.

I've got experience with 3 libraries. script.aculo.us (prototype based), sajax and jquery. I'm a little partial to jquery but the all suck equally. I'm not a great javascript guy so when I do ajax stuff I look for pre-built then I just massage it in place. This stuff is quite powerful though, and users really like the right ajax solution.

A couple of effects ... (If this type linking is not allowed just remove it, not trying to spam here).
1. drag & drop to save ordered lists to a database without submitting (menu in middle) (script.aculo.us)
2. sliding bars that update to db (trust factor, top right) (sajax)
3. (mac-ish) docked fisheye menu (top menu) (jquery)
erect is offline  
Reply With Quote
Old 09-17-2007, 03:56 AM   #10 (permalink)
The Visitor
 
Join Date: Sep 2007
Posts: 2
Thanks: 0
Omar is on a distinguished road
Default

i personaly use mootools.. but prototype is also realy good!
Omar is offline  
Reply With Quote
Old 09-21-2007, 08:36 PM   #11 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

Nothing beats Prototype in all honesty :) !
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Old 10-05-2007, 04:45 PM   #12 (permalink)
The Wanderer
 
cherries's Avatar
 
Join Date: Oct 2007
Posts: 20
Thanks: 0
cherries is an unknown quantity at this point
Default

I don't use a library I do it all by hand :D
cherries is offline  
Reply With Quote
Old 10-06-2007, 02:28 PM   #13 (permalink)
The Reckoner
Advanced Programmer Top Contributor 
 
Karl's Avatar
 
Join Date: Sep 2007
Posts: 437
Thanks: 22
Karl is on a distinguished road
Default

lol cherries, then I would suggest you seriously reconsider using them. Libraries (or frameworks) provide a consistent approach to common problems, usually through collaboration of many experts in that particular field. Admitidly you can't beat the satisfaction of wrtiting everything by hand, but the time to do so just isn't practicle for me.

However, with that said, for PHP I have found myself writing my own library (well, my team has) rather than using one of the already available PHP frameworks out there. There's no real excuse for this besides the fact that we want full understanding of the framework, and it can be a real pain understanding the fundtamentals of someone elses code, espcially when the code contains thousands upon thousands of lines. Even so, it would still be quicker to learn someone else's framework than to build our own.
Karl is offline  
Reply With Quote
Old 10-06-2007, 02:57 PM   #14 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

I'm with Karl, frameworks are there to be utilised. Why bother writing something entirely from scratch (even if it only takes 10 minutes) when a simple $('myform').send('result') (for example) would do the trick?

If you don't like the current libraries and/or frameworks out there, then that's your choice but don't put down the fantastic work being done in this field just because something doesn't float your boat or to pretend to yourself that not using these things makes you a better programmer (I'm not accusing anyone).

They're great tools, use them. :)
Salathe is offline  
Reply With Quote
Old 10-18-2007, 04:57 PM   #15 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

Quote:
If you don't like the current libraries and/or frameworks out there, then that's your choice but don't put down the fantastic work being done in this field just because something doesn't float your boat or to pretend to yourself that not using these things makes you a better programmer (I'm not accusing anyone).
i agree totally, especially the "pretend to yourself that not using these things makes you a better programmer" part, i have had friends of mine question why i use libraries and everytime i have to explain that i really cant be bothered reproducing the code, then debugging it only to find out that it doesnt work on IE, so then u have to work out some fix, if you use a lib then the hardworks been done for you, all of them are cross browser compatible and you can get on with more important things. Time = Money

Personal preference atm is jQuery, i just prefer it to prototype its seems less oafish, but they are both equally good.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
Old 11-15-2007, 02:50 AM   #16 (permalink)
The Contributor
 
dschreck's Avatar
 
Join Date: Nov 2007
Location: California
Posts: 82
Thanks: 0
dschreck is on a distinguished road
Default

To beat a dying horse, I agree, frameworks are there for the betterment of all, and if you don't like one you should just move on to another. Or, if you like one but wish it did a couple things differently, or if it had a feature, add to it. Contribute.

I've said it before, everyone gets all huffy puffy over frameworks.

My personal favorite of all time is the xLib from www.cross-browser.com (though the site doesnt seem to be working)

I've also done work with scriptacolous and prototype, jQuery, Dojo, and Yahoo's UI toolkit, all of them are fun to learn and use.
I think the easiest thing to do, when trying to learn a new JS library, is to run through the demos and examples, and go "Yes! that's what i want!" and then go from there, since there's an example of what you want, and how to do it, you can use that as a base, and learn at the same time.

But yes, a lot of the frameworks are alike, they may do some things a little different, but in the end, they save you a crap load of time..

So, my rankings:
  1. XLib
  2. YUI
  3. Prototype
  4. Scriptacolous (uses prototype)
  5. JQuery
  6. Dojo
  7. Moo.FX (it uses prototype as well)
XLib

Last edited by dschreck : 11-15-2007 at 02:51 AM. Reason: typo
dschreck is offline  
Reply With Quote
Old 11-15-2007, 03:00 AM   #17 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

I've never been at all keen on Moo.FX and MooTools - always seemed like badly put together JS frameworks, to me. Although I may be entirely wrong here - merely my observations from having to work with them on clients' projects.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Old 11-15-2007, 03:08 AM   #18 (permalink)
The Contributor
 
dschreck's Avatar
 
Join Date: Nov 2007
Location: California
Posts: 82
Thanks: 0
dschreck is on a distinguished road
Default

I've never been fond of it. But hey, some people swear by it. First thing i think of is that they find it easier to use it because it's what they know, but yeah, as far as the most popular JS Libraries, I think Moo.FX had a small burst of excitement, and kind of died down, as other reliable JS Libraries continued to gain followings.
dschreck is offline  
Reply With Quote
Old 11-15-2007, 02:00 PM   #19 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

Agreed! Scriptalicious sticks to nice standards in its coding, whereas Moo.FX has the attitude that if it works this way then why bloody change it.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Old 11-23-2007, 12:03 PM   #20 (permalink)
The Visitor
Newcomer 
 
Join Date: Nov 2007
Posts: 2
Thanks: 0
xadet3 is on a distinguished road
Default

Always used mootools, maybe I should start using a wider range?

Any suggestions would be great.
xadet3 is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP/GD Library mahfooz Libraries & Extensions 1 10-11-2006 12:39 PM
Most Common Library? CreativeLogic General 0 04-04-2005 05:43 AM


All times are GMT. The time now is 04:32 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design