<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY>
Thanks Steven<BR>
I read the other thread but it didn't twig until you mentioned it - long day :-)<BR>
On Fri, 2010-06-25 at 16:42 +1000, Steven Jones wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Hi Lee,
You're the second person to ask this question in 24 hours. The other
thread is here:
<A HREF="http://lists.drupal.org/pipermail/development/2010-June/035782.html">http://lists.drupal.org/pipermail/development/2010-June/035782.html</A>
But the short answer is have a look at filefield_js in the filefield
module.
Regards
Steven Jones
ComputerMinds ltd - Perfect Drupal Websites
Phone : 024 7666 7277
Mobile : 07702 131 576
Twitter : darthsteven
<A HREF="http://www.computerminds.co.uk">http://www.computerminds.co.uk</A>
On 25 June 2010 05:29, Lee Rowlands <<A HREF="mailto:leerowlands@rowlands-bcs.com">leerowlands@rowlands-bcs.com</A>> wrote:
> Hi
> Hoping someone can help shed some light on this because I'm getting
nowhere
> fast and I'm sure it will be something obvious.
> I've got a form (node edit form) with ahah elements (textfields, radios
> etc). Some of the html returned includes additional form elements that
also
> have ahah elements but the ahah behaviours aren't being attached to the
new
> elements.
> In my code I'm using the following to return the settings with the data:
> $javascript = drupal_add_js(NULL, NULL, 'header');
> drupal_json(array(
> 'status' => TRUE,
> 'data' => theme('status_messages') . drupal_render($form),
> 'settings' => call_user_func_array('array_merge_recursive',
> $javascript['setting'])
> ));
>
> And from the firebug console I can see my new elements in returned json
in
> the settings.ahah object but after the ahah submission is finished they
> don't make it to Drupal.settings.ahah so when the ahah behavior is rerun
at
> the end of the ahah success callback, my new elements don't get ahah
> goodness.
> Any ideas what I'm missing here?
> Lee Rowlands
>
>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>