AjaxML: Simpler (Or Different) Way To Use Ajax
JavaScript frameworks simplify sending Ajax requests so much by wrapping all the stuff into a cross-browser function.
AjaxML, a jQuery plugin, simplifies it even more for basic Ajax requests and can also handle any complex ones.
It works by defining the "details of the requests" inside HTML attributes like <a href="say_hello.html" into="divName"> ends up in hello.html being loaded inside the #divName HTML element.
Attributes exists for sending parameters, request method (GET, POST), validation, history and more.
AjaxML has both pros and cons. Defining requests in HTML and not being able to view/organize them in a single JS file is a minus (this can be so hard to maintain in large projects) while the ability to send requests "not-like JavaScript but HTML" can be huge "plus" for many (specially web designers who are not good at JavaScript)
Compatibility: All Major Browsers
Website: http://www.ajaxml.com/
Demo: http://www.ajaxml.com/examples.html
Download: https://github.com/Accorpa/AjaxML
- Tags:
Ajax
- Filed under: Extras, Other License, Other Scripts/Apps.
- 6 Comments












6 Responses for "AjaxML: Simpler (Or Different) Way To Use Ajax"
Seems very interesting. I’m gonna give it a try. Thx for sharing!
Will try it..
Sounded rather too simple at first. The examples however, went into rather complex scenarios.
I wonder why it would be difficult to manage big projects. Most of your custom actions will still be handled in your JS files.
Guess one has to try it out.
@Sam,
It can definitely go complex.
Imho, rather than using JS in HTML pages, it is much easier to maintain each JS action completely in a separate file.
That is also good for creating re-usable functions. Coding JS inside HTML for big projects sound like “things can get confusing within time”.
But, each develoepr has their own way of thinking, so, it may play well for others.
I don’t understand how this works.
In head:
In body:
Say Hello
What’s need in “say_hello.html” ?? I write: Hello world!
And after i click the link, browser redirect to: say_hello.html. I see: “Hello world!” but “Say Hello” is gone..
Somebody please help me.
@Bence
Seems a bug occurred in javascript before clicking the link. Check your javascript console in firebug and check if you have errors.
No special needs in server script.