1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 21:57:51 +02:00

Chatbox working again with ajax

This commit is contained in:
Cameron
2013-04-26 21:49:09 -07:00
parent c62313466b
commit 94a4ba34e6
4 changed files with 206 additions and 59 deletions

View File

@@ -618,6 +618,12 @@ $(document).ready(function()
}
});
})
@@ -1025,3 +1031,36 @@ function preview_image(src_val,img_path, not_found)
return;
}
// BC Ajax function
function sendInfo(handler, container, form)
{
var data = $(form).serialize();
$.ajax({
type: 'post',
url: handler,
data: data,
success: function(data)
{
// console.log(data);
$("#"+container).html(data).hide().show("slow");;
}
});
return false;
//$(container).load(handler,function() {
// alert(src);
//$(this).hide();
// $(this).fadeIn();
// });
//if(form)
// $(form).submitForm(container, null, handler);
//else
// new e107Ajax.Updater(container, handler);
}