hi there, the asset looks okay but you should consider the following:
1) var placeHolder = $$('div.test')[0];
//select first div of collection
2) myImage.inject(placeHolder, 'top');
//use inject with image, not div
i had problems understanding inject at first too because it inverts the way
one is used to when using appendChild() in native javascript. What you did
was injecting your div into the image and the image was never injected to
document.body so nothing showed up. You can also consider using the
oncomplete event of the Asset
to inject the image once it is loaded
best
On Fri, Oct 24, 2008 at 12:35 PM, supert3d <[EMAIL PROTECTED]> wrote:
>
> Anyone got any ideas why this simple script isn't working. I noticed
> some other oddities as well.
>
> Like the $E selector was undefined. Never usually had a problem with
> this, switched it to $$ selector and that cured this bit.
>
> var el = $E('div.test');
>
> But it's truly strange. Any ideas ?
>
> http://www.tonycollings.com/mootools/ (View Source)