I recently had need to submit a web form with file fields via AJAX. The application uses jQuery and was already submitting forms just fine without file fields using the .serialize()
method to pass data to a jQuery.ajax()
call. That didn’t seem to handle the file fields, though. Searching the internet, I found a solution using the browser built in FormData
object.
ajax posts
Javascript hash handler and router
At work I did my first fully ajax loaded, from scratch site, Block Bros. I used jQuery with my own library of “wrapper” classes for loading the ajax and animations between “pages”. I had to write a lot of new stuff though and modify some of my library classes to get everything working smoothly.
Continue reading post "Javascript hash handler and router"