i've got a problem, i'm using cakephp and im loading into a div a page
function loadContent(targetDiv, sourceUrl) {
$(targetDiv).empty().html('');
$(targetDiv).load(sourceUrl);
}
it work's ok, but in a loaded page i've got autocomplete and thickbox, and that's not working :( when the page is loaded normally without ajax everything is fine.
I think that ajax loaded page can't see mine jquery scripts.
I've tried livequery but it work's only on something like that:
$("#check").livequery('click', function(event) {
$("#myform").toggleCheckboxes();
return false;
});
but don't know how to use it with autocomplete and thickbox(made by helper in cakephp)
以上就是cakephp with jquery .load的详细内容,更多请关注web前端其它相关文章!