Phlip wrote:
BG Mahesh wrote:
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.
You might be confused by the documentation. Ajax competes with IFrames,
because folks used to use IFrames for dynamic update of the middle of a
page. Ajax is better at that, so its documentation often discredits IFrames.
You might not actually need IFrames (you can make a DIV scrollable with
style='overflow:auto;', for example). But if you do, any Ajax library will
support them.
Try Ruby on Rails and its wrappers for prototype.js and script.aculo.us, and
you will never look back. The more development you do in Ruby the better,
including Ruby code that wraps JS code and delivers it automatically thru
Ajax channels.
--
Phlip
http://www.greencheese.us/ZeekLand <-- NOT a blog!!!
I am currently using Prototype on a project with Rico as extension.
Though I will try in the future to use JQuery (
http://jquery.com/) and
implement a Rico-like script on top of that. JQuery is faster than
Prototype.
This example shows why I'd go with JQuery for my next project :
http://michael.futreal.com/blog/0000052 ... but this is another
debate. (Also, I do not base my opinion on my particular site, as I did
my own testings, but this is only one supporting site.)
Like it was said, iframes are used mostly only when you have to submit
POST forms without having to reload the entire document (<iframe
name="myFrame" style="width: 0px; height: 0px;"></frame>) Also, when
working with Asynchronous Javascript with XML (like the same says), XML
is the format that should be returned to handle request. Along with
that XML, you might want to have some HTML tags for faster insertion
into the document, but going with XMLHttpRequest objects allows with
more flexibility over iframes since you don't have to deal with
separate javascript engines (did you know that, for every iframes that
you have on your page, you have separate CSS parsers and javascript
interpreters ?)
Anyhow, if you insist on using iframes, then do not refer that as doing
"AJAX" programming. AJAX and IFrames, both have good use and misuse. A
good start on learning AJAX techniques is to read FAQ, forums, and
perhaps learning tutorials. Like this one
http://developer.mozilla.org/en/docs...etting_Started .
If there are better Libraries, the most important is : does it suit
your needs ? Informed decisions are always wise decisions.
-Yanick
P.s. You might want to take a look at Google Web Toolkit (GWT) and
Echo2. They are Java-based framework compiling to Javascript and XML,
but they are developped to be cross-browser and easily maintainable.