javascript

jQuery .serialize() returns empty string

In case anyone else runs into this:

I kept hitting my head, wondering why jQuery's serialize() would return an empty string for my form.

The reason was that I hadn't specified name attributes ( I was only using IDs ) for form elements, as I was dealing with the form via AJAX and hadn't had a reason to need them.

Simple fix, annoying to find

delving into JavacriptMVC

Back-story: I just started a new big web app project today.

In my never-ending quest for better front-end javascript design patterns, I decided to give javascriptMVC a shot. Their tagline?

JavaScriptMVC is a framework that brings methods to the madness of JavaScript development. It guides you to successfully completed projects by promoting best practices, maintainability, and convention over configuration.

Syndicate content