data link and ajax

data link and ajax

Trying to use an object that is linked with the new data link plugin as the data for an ajax call fails without first unlinking the object.

Doesn't work:
  1. var obj = {};
  2. $('#main_form').link(obj);
  3. $.post('ajax_repeat.php', obj);
The above will output an error: 'ev is undefined' for line 90: var target = ev.target,

Works:
  1. var obj = {};
  2. $('#main_form').link(obj);
  3. $('#main_form').unlink(obj);
  4. $.post('ajax_repeat.php', obj);
  5. $('#main_form').link(obj);