hi all,
I'm trying to load a node inside my content
when it loads the content, like a page creation node (node/add/page), all the sections like upload, comments and path don't work, they just get collapsed with no open function, as you can see in the image below:
http://img109.imageshack.us/img109/7402/ajaxloadproblem.jpg
Analyzing in firebug, the content of this sections are there but hidden.
i think the Behaviors don't reload when the content is requested via AJAX. Is there any way to make the page reload the behaviors after my ajax request?
My code for AJAX request via jquery is:
var paginaAtual;
$(".jquerymenu li a").click(function(){
var pagina = basePath + $(this).attr("href");
if (pagina!= paginaAtual) {
paginaAtual = pagina;
var pagina_div = pagina + " #content-inner";
var pagina_head = pagina + " #header";
var contexto = $('#content-inner')
.html('')
.load(this+" #content-inner")
}
return false;
});
i have tryied the Drupal.attachBehaviors() but didnt work.
any suggestions?