473,760 Members | 10,633 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Ajax library

I was looking at libraries for my project, and was thinking about using
Prototype, but I was seeing that people have reservations about it.
All I really need is some basic Ajax stuff, the basic XMLHttpRequest
stuff. I will probably add on to that with my own stuff as I need it.
I've seen one called advAjax, but the documentation is about as bad as
Prototype IMHO. I was having trouble figuring it out.
Are there other basic libraries that I could use? I could write my own
I guess, but as I am not that good at JavaScript yet, I would rather
use one and build on with my own stuff. Any ideas?

Oct 18 '06 #1
14 2274
pa***********@g mail.com wrote:
All I really need is some basic Ajax stuff, the basic
XMLHttpRequest stuff. I will probably add on to that with my own
stuff as I need it.
Are there other basic libraries that I could use?
I'm biased, but I like mine ;)

http://www.AjaxToolbox.com/

It doesn't try to be a monster library or a complete black-box solution.
It's just a robust and extensible communication layer, making it easy to
make and handle requests. Making divs appear, highlighting changed content,
populating forms, etc - that's all left as an exercise to the reader ;)

I think the examples are concise and the documentation is clear and
complete. Let me know what you think!

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
Oct 18 '06 #2

Matt Kruse wrote:
pa***********@g mail.com wrote:
All I really need is some basic Ajax stuff, the basic
XMLHttpRequest stuff. I will probably add on to that with my own
stuff as I need it.
Are there other basic libraries that I could use?

I'm biased, but I like mine ;)

http://www.AjaxToolbox.com/

I think the examples are concise and the documentation is clear and
complete. Let me know what you think!
I'm not biased and I like Matt's library too - you can actually read it
and see what it does.

In fact, I added AjaxEveryReques tBegin and AjaxEveryReques tEnd to the
callbacks possible so I could have a page report the total number of
active requests in the form of a progress bar (the current
AjaxRequestBegi n and End are only called when the first request starts
and all requests end which initially confused me, but looking at the
library code immediately made it clear what was going on).

I'd been using prototype before that and debugging was a nightmare -
loads of errors simply get sucked up by the library and tracing back
what the original problem was took ages.

So. Use Matt's.

Oct 18 '06 #3
pa***********@g mail.com a écrit :
I was looking at libraries for my project, and was thinking about using
Prototype, but I was seeing that people have reservations about it.
All I really need is some basic Ajax stuff, the basic XMLHttpRequest
stuff. I will probably add on to that with my own stuff as I need it.
I've seen one called advAjax, but the documentation is about as bad as
Prototype IMHO. I was having trouble figuring it out.
Are there other basic libraries that I could use? I could write my own
I guess, but as I am not that good at JavaScript yet, I would rather
use one and build on with my own stuff. Any ideas?
Hi,

New in the use of ajax I first used prototype, great stable library. You
can find widgets libraries build on it. The documentation is correct.

I tried rialto, turbiwidgets etc...

I know switch to the dojo toolkit because of the large amount of widgets
included, a very active developpement team, a support mailing list.
Dojo is known for his lack of documentation.

Roger
Oct 18 '06 #4
pa***********@g mail.com wrote:
I was looking at libraries for my project, and was thinking about using
Prototype, but I was seeing that people have reservations about it.
All I really need is some basic Ajax stuff, the basic XMLHttpRequest
stuff. I will probably add on to that with my own stuff as I need it.
I've seen one called advAjax, but the documentation is about as bad as
Prototype IMHO. I was having trouble figuring it out.
Are there other basic libraries that I could use? I could write my own
I guess, but as I am not that good at JavaScript yet, I would rather
use one and build on with my own stuff. Any ideas?
Like everyone else with an opinion on this, I'm biased, but I like YUI. It is
the best documented of the libraries. It is light, modular, and open.

http://developer.yahoo.com/yui/
Oct 18 '06 #5
pa***********@g mail.com wrote:
I was looking at libraries for my project, and was thinking about using
Prototype, but I was seeing that people have reservations about it.
All I really need is some basic Ajax stuff, the basic XMLHttpRequest
stuff. I will probably add on to that with my own stuff as I need it.
I've seen one called advAjax, but the documentation is about as bad as
Prototype IMHO. I was having trouble figuring it out.
Are there other basic libraries that I could use? I could write my own
I guess, but as I am not that good at JavaScript yet, I would rather
use one and build on with my own stuff. Any ideas?
I haven't really done anything with Ajax, but I am completely sold on
JQuery, and I know it has a lot of Ajax capabilities built into it. Also
has an active community (via both mail list and Nabble discussion
board), as well as fantastic documentation.

http://jquery.com/

--

*** Remove the DELETE from my address to reply ***

=============== =============== =============== =========
Kevin Scholl http://www.ksscholl.com/
ks*****@comcast .DELETE.net
------------------------------------------------------
Information Architecture, Web Design and Development
------------------------------------------------------
We are the music makers, and we are the dreamers of
the dreams...
=============== =============== =============== =========
Oct 19 '06 #6
pa***********@g mail.com wrote:
I was looking at libraries for my project, and was thinking about using
Prototype, but I was seeing that people have reservations about it.
All I really need is some basic Ajax stuff, the basic XMLHttpRequest
stuff. I will probably add on to that with my own stuff as I need it.
I've seen one called advAjax, but the documentation is about as bad as
Prototype IMHO. I was having trouble figuring it out.
Are there other basic libraries that I could use? I could write my own
I guess, but as I am not that good at JavaScript yet, I would rather
use one and build on with my own stuff. Any ideas?
Ajax, or UI widgets? Which are you inquiring about?

Someone needs to seperate these two!

For "Ajax" functionality - which I take to mean background calls to the server using XMLHttpRequests and incremental updates of the document, I'd recommend DWR if you have a Java backend. This enables you to export certain interfaces to the browser, and call methods on the server and process the return value (which may be a fully-fledged Object) in a callback. http://getahead.ltd.uk/dwr/

For well-documented, stable, capable UI widgets, I'd go for http://developer.yahoo.com/yui/ complemented by http://www.jackslocum.com/yui/index.php Other widget libraries I've seen are all flaky, slow, undocumented, and generally NOT usable in the real world!
Oct 21 '06 #7
Look at what others are using (865 respondents)...
http://ajaxian.com/archives/ajaxianc...survey-results
(spoiler: "Prototype, the most popular Ajax framework, by a
considerable margin: 43% of you use it.")
or raw results:
http://www.surveymonkey.com/DisplayS...U=240246533425

Oct 21 '06 #8
halans wrote:
Look at what others are using (865 respondents)...
http://ajaxian.com/archives/ajaxianc...survey-results
Popularity is often not a good indicator of quality. Especially in the world
of javascript.

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
Oct 21 '06 #9
Matt Kruse wrote:
halans wrote:
Look at what others are using (865 respondents)...
http://ajaxian.com/archives/ajaxianc...survey-results

Popularity is often not a good indicator of quality. Especially in the world
of javascript.
Perhaps Prototype lacks in clarity, but if you follow closely the
project, the library had some changes since v.1.4.0... (with backward
compatibilities ). Don't be so quick to discard something ; if so many
people use it, it's because it is stable in many browsers (even some
that I've never heard of) Of course, I had some exception thrown by
Prototype, and admit that it was my fault every time (*sig*) ... like
many libraries out there, some checks aren't made directly in the
library for speed purpose.

A good documentation of Prototype can be found here :
http://www.sergiopereira.com/articles/prototype.js.html (it only
convers v.1.4.0 though... the most recent version of Prototype can be
compiled from the repository --
http://dev.rubyonrails.org/browser/spinoffs/prototype/ -- on Ruby on
rails' web site, or look at Script.aculo.us ...)

There's a lot of thing built on top of the library, I've wrote some
components also, and I added Rico on top of that (http://openrico.org/)
to be able to send multiple updateables (DOM elements and JS objects)
through server side XML, and it's all fairly easy to use (easier than
to learn DirectX anyways!)

One could add Script.aculo.us (http://script.aculo.us/) for dynamic
effects (the most recent compiled* version of Prototype, v.1.5 rc1 is
included)

(* compiled because Prototype is a collection of .js files that are put
together to form a single file, called prototype.js. But you can use
all module without too much of dependancies... )

But if you project is not that heavy, or if you refresh the entire page
a lot, Prototype might not be for you ; it is meat to refresh only part
of the screen, and rarely the entire document.

You could also look for Echo2 that is very impressive, but costly :
http://www.nextapp.com/platform/echo2/echo/

I'm not discarding any suggestion made in this thread, I just felt
writing about the pros of Prototype because so many people are quick to
crap over it ; it's all a question of "what type of Webapp you're
building" and "what are your coding techniques". Personally, I've
looked at Dojo, and I think that Prototype's way suits more my coding
habbits, and my Webapp's needs. (I haven't had the time to look at your
lib Matt, but I've read about it, and it looks alright.)

So, the general idea is : do not only read what others say, try it
yourself, even if people don't agree with it. Besides, if Prototype is
so bad, why is it hosted (and included) in the Ruby on rails package ?

-yan

Oct 22 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
2077
by: DartmanX | last post by:
Hi, Looking for recommendations for a decent API for AJAX work. I need it to be somewhat documented so I can figure out how to actually use it. My most critical need right now is clean code for a "triple" chained selector (state->county->city). Jason
0
1845
by: melledge | last post by:
Ajax Developers' Day added to XTech 2006 agenda XTech 2006 - 17-19 May - Hotel Grand Krasnopolsky - Amsterdam, The Netherlands
31
3161
by: Tony | last post by:
I just noticed that prototype.js is one of the files in the Ajax.NET distribution - I'm pretty concerned about this. Does anyone know if this is the same "prototype.js" that is not well-liked around here? If so, do you know if Ajax.NET can be used without prototype.js? -- "The most convoluted explanation that fits all of the made-up facts is the most likely to be believed by conspiracy theorists. Fitting the
3
2775
by: BG Mahesh | last post by:
hi We are looking for a good Ajax library which has very good support for iframe. The ones we have considered so far are, Backbase.com - not happy with the speed Zapatech.com - it is good but doesn't have support for iframe openreco.org - it is good but doesn't support iframe Any pointers is appreciated. We are doing the development on Linux.
2
4280
by: Nathan Sokalski | last post by:
I am moving my website from my machine to my webhost, and need some help with what extra files I need to include due to the fact that I used AJAX in my site. Everything on the site is obviously functioning as desired when I test it on my machine using Visual Studio 2005. From what I have determined, the files I am forgetting are the JavaScript files from the Microsoft AJAX Library (See "To install Microsoft AJAX Library" at the bottom of...
1
1271
by: Valentin L | last post by:
I'm new to AJAX .. In my IIS5 web apps I'm using the old VBScript in .asp pages. I've tested an AJAX banner rotator and is OK. Now I'm looking "the" library that will spare me to "re-invent the AJAX wheel" I know how to use of the Browser's XMLHttpRequest and the
6
5482
by: Bart Van der Donck | last post by:
Hello, I'm presenting my new library 'AJAX Cross Domain' - a javascript extension that allows to perform cross-domain AJAX requests. http://www.ajax-cross-domain.com/ Any comments or suggestions are welcome. --
3
2404
by: NetWave | last post by:
Hi, For my next project I'm going to need Ajax, so I'm in about to read some books on ASP.NET Ajax. While reading Rick Strahl's blog I stumbled upon jQuery. I've been to the website and seen some examples, and it sure looks promising. However, I'm not sure how it relates to ASP.NET Ajax. Do they complement each other? Or are they concurrent products?
2
1744
by: Gufo Rosso | last post by:
example dragable obj start at 0,0 user move obj to 100,100 library send ajay request 100,100 other ex form user send a form to ajax
0
9521
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
9900
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9765
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8768
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6599
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5361
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3863
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3442
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.