AJAX Save won't work in form.

If I’m not mistakes AJAX should save when I focus a different field in my form, right?

This is the save parts of my code:

[code] myForm = new dhtmlXForm(“myForm”, formData);
var dp_f = new dataProcessor("<?php echo bloginfo('template_url'); ?>/buyer_sales/comp_form_conn.php?id=00000000270");
dp_f.init(myForm);

		myForm.load("<?php echo bloginfo('template_url'); ?>/buyer_sales/comp_form_conn.php?id=00000000270");
		myForm.send("<?php echo bloginfo('template_url'); ?>/buyer_sales/comp_form_conn.php?id=00000000270","post",function(xml){
			alert("Saved");
		});

myForm.attachEvent(“onButtonClick”,function(buttonID){
if(buttonID==“set33”){
myForm.save();//no params needed.It uses url that you passed to dataprocessor
}
});[/code]
The save button works fine, but the ajax send doesn’t…

In above code snippet there is nothing that can force data sending after changing focus. The above code will load data and will save it back to server on clicking the button

The form.send code is executed just after .load one, so, in this moment data is not really loaded yet, and send most probably will not send any meaningful data to the server-side.