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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user