Inline scripts loaded with AJAX are not run unless appended to the
document's head element. A quick search on this group or google will
show you lots of alternatives to do that!

On Sep 18, 9:00 pm, light-blue <[EMAIL PROTECTED]> wrote:
> This is simple, but I'm lost. I click a link, and jquery loads a form
> using jquery and JSON (works great!) But, the form has collapsible
> fieldsets (using Drupal's collapse.js) and the javascript doesn't run
> on them. That's probably because the collapse.js needs to run on the
> newly loaded form elements but it *won't* because I'm doing 'return
> false' after my .get().
>
> Workaround: If I intercept the form SUBMIT click and paste the
> collapse.js, then the javascript starts working on my form. That's not
> elegant. How do I properly adjust for this?
>
> Thanks!

Reply via email to