Hi,

You're using `$$` to get the element_to_insert_after_foo, which
returns an array (probably an empty one, since the selector is
unlikely to match anything).  You want to use `$` instead.

HTH,
--
T.J. Crowder
Independent Software Consultant
tj / crowder software / com
www.crowdersoftware.com


On Jan 13, 9:55 am, "[email protected]"
<[email protected]> wrote:
> Hello all,
>
> in need to insert a existing dom element behind the mother dom.
> For Example:
>
> <div id="foo">
>    <div class="element_to_insert_after_foo"></div>
> </div>
>
> After Insert:
>
> <div id="foo"></div>
> <div class="element_to_insert_after_foo"></div>
>
> I tried as follow but nothing happens:
>
> var myDiv = $$('element_to_insert_after_foo');
>  Element.insert($('foo'), {'after':myDiv} );
>
> Thanks for help!
-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.


Reply via email to