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…