title: .serialize() an array of variables in Javascript
body: <p>I have a list of variables available to me and I want to send it via $.ajax post. What format would I have to keep these in to use the function .serialize? I keep getting this error:</p>
  
  <p>Object 'blank' has no method 'serialize'</p>
  
  <p>I've tried to make them an array and I've tried jQuery.param(). I have a feeling this is simple but I can't seem to get it. Thanks!</p>
  
  <pre><code>var $data = jQuery.makeArray(attachmentId = attachmentID, action = 'rename', oldName = filename, newName, bucketName, oldFolderName, newFolderName, projectId = PID, businessId = BID);
  var serializedData = $data.serializeArray();
  //alert(theurl);
  
  $.ajax({ type: "post", url: theurl, data: serializedData, dataType: 'json', success:  reCreateTree });  
  </code></pre>