By chrisabbato on
I am working on a module that allows me to edit a page with ajax by clicking an edit button which will load the node form in place of the page content.
I am able to do this well enough where I can bring up the form and then just submit it normally (will add code later to update w/ ajax).
My problem right now, however, is that I cannot load any extras when I load the form. The extras I'm talking about are several of the js files in the drupal /misc directory. This includes things like tabledrag and autocomplete functionality.
Does anyone have an idea on how I can implement the functionality I am aiming for?
Comments
Does anyone have an idea how
Does anyone have an idea how I can do this? I've tried loading each of the javascript files in manually, and it has no effect.
To summarize - I can load an edit form with ajax, but it does not include: tabledrag, collapsible fields, and other javascript extras.
Ajax_load
try this module, I think that what you are looking for.
http://drupal.org/project/ajax_load
Did you succed on this one?
Did you succed on this one? If yes, would you mind describing how?
How did you do the ajax load process of the edit form?
thanks a lot!