<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Thanks for posting that - it worked great. I was starting to pull out
my hair over this issue!<br>
<br>
Regards, <br>
<br>
Brian<br>
<br>
<br>
<br>
On 10-09-22 04:57 PM, Lee Rowlands wrote:
<blockquote cite="mid:1285189048.2692.0.camel@rowlands1.dnsalias.org"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="GENERATOR" content="GtkHTML/3.28.0">
Hi Brian<br>
Have a look at how filefield does it:<br>
<a moz-do-not-send="true"
href="http://api.drupalecommerce.org/api/function/filefield_js/6">http://api.drupalecommerce.org/api/function/filefield_js/6</a><br>
The bit towards the end of the function that adds a script tag to the
response.<br>
Lee<br>
On Wed, 2010-09-22 at 16:29 -0400, Brian Vuyk wrote:
<blockquote type="CITE">
<pre>On 10-09-22 03:56 PM, Brian Vuyk wrote:
> Hi all.
>
> I am working on modifying a node form to allow a user to progressively
> select down through a taxonomy tree, and when they have a final term
> selected, update the advanced view arguments for a view-backed
> nodereference field.
>
> I am using AHAH, so that as the user selects a term, the next set of
> potential sub terms will show, in a somewhat similar fashion to how
> Taxonomy Select works.
>
> However, the new select form elements I pull in via AHAH also have
> ['#ahah'] attributes themselves. As far as I can tell, the AHAH code
> doesn't seem to trigger for elements that were themselves brought into
> the form via AHAH.
>
> According to <a moz-do-not-send="true"
href="http://drupal.org/node/337941">http://drupal.org/node/337941</a>, you can get an array from
> drupal_add_js(NULL, NULL, 'header'); which you can in turn pass on to
> drupal_json() in order to attach the AHAH behaviours to elements
> pulled in via AHAH. However, I have tried this with no results.
>
> I would appreciate it very much if someone could take a look, and
> hopefully tell me where I've gone wrong, or what I have to do to get
> AHAH to work on the elements I am pulling in. You can view a copy of
> the module as it current stands at <a moz-do-not-send="true"
href="http://drupalbin.com/16170">http://drupalbin.com/16170</a>.
>
> Thanks,
>
> Brian
Just a side note, it appears that you get a 404 from drupalbin if you
use the above URL. Try this instead:
<a moz-do-not-send="true" href="http://drupalbin.com/16170?nocache=1">http://drupalbin.com/16170?nocache=1</a>
Thanks!
</pre>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>