Jump to content

Load form helpers via ajax


inkredible

Recommended Posts

Posted

I am loading a created form with multiple tabs (each tab contain some form inputs) via Ajax. Unfortunately all the content is visible (instead of being inside in each tab). I assume this is happening because the Javascript for the tabmenu is not loaded on the page from where I am doing this Ajax request.

How can I make sure all required Javascript files for the generated form elements will be loaded as well?

I tried to figure out what JavaScript files are missing for my tabmenu but I failed. There are so many javascript controllers/files loaded it's hard to find the missing ones. Maybe anyone can provide a proper solution for my problem?

Posted

try to trigger content change event after you have appended on DOM

$(document).trigger('contentChange', [$('form')]);

this permise to run each controller that have tabs and other elements.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...