title: Evaluate a data variable before a request
body: <p>Is there a way to evaluate a variable within a "data" option in a Request in the following code:</p>
  
  <pre><code>var v_postfield=valueA;
  new Request({
  var self = this;
      emulation:false,
      url: self.ajaxurl,
      headers: { 'X-CSRF-Token':rails.csrf.token },
      data: {'task': { v_postfield: self.field.get('value')}},
      evalResponse: true,
      evalScripts: true
  }).put();
  </code></pre>
  
  <p>I keep getting:</p>
  
  <blockquote>
    <p>Parameters: {"task"=>{"v_postfield"=>"ddd"},
    "id"=>"4e21c97023525c19730000d3"}</p>
  </blockquote>
  
  <p>When I just want:</p>
  
  <blockquote>
    <p>Parameters: {"task"=>{"valueA"=>"ddd"},
    "id"=>"4e21c97023525c19730000d3"}</p>
  </blockquote>
  
  <p>The server is running on rubyonrails but I doubt it is related.</p>