Hello, first of all, I think all of us agree, AJAX âis not jQueryâ
Yes, the UX with AJAX is much cool. But as much as cool UX, I see soo much cool this:
On the HTML side, the view, AJAX is just some 5 lines of javascript and only plain vanilla javascript, NO libraries required.
The part I like is that with javascript you have more control on/and submit possibilities,
in few words you can forget what an HTML form is. Instead, virtually, you can submit to the server side almost whatever you want.
About whatever you want: DOM is your friend until it ends
You can turn to an input what you like, getting elements by ID, by class, etc,
you can collect an entire HTML table and transfer it to an array (I mean without input fields in the TDs, here HTML5 enhances even more the game with contenteditable) and your fantasy + needs can rise so many combinations as well.
The mechanism is not that different than a normal form submission, but the potential is not comparable.
e.g. you donât have anymore forms and instead you can have as many âformsâ-like as you want on the same page (here Iâm thinking about Web applications, think about a simple invoice)
Additionally when needed there is the lightweightness of JSON with an amount of benefits.
In my learning curve I have almost skipped the classic html form part.
Yes you need javascript activated⌠but nowadays it is almost impossible to meet some disabled js and warn the user about JS is required, is working on every browser with just a line of html.