are you talking about the 'domready' event?
$(document).addEvent('domready', function(){}); is the same as the .ready
event from jquery.

--
Fábio Miranda Costa
Solucione Sistemas
Engenheiro de interfaces


On Sun, Dec 27, 2009 at 1:37 PM, Roman Land <[email protected]> wrote:

> I thought it was part of the spec: http://en.wikipedia.org/wiki/DOM_events,
> but reading more I found that it does not apply to DIVs (as you suggest)
>
> Any Mootools way to trigger some function when an element is attached to
> the DOM? (prototyping "document.createElement" ? or is this too intrusive?)
>
> Still looking online, there are several manual ways (
> http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-EventTarget-addEventListener),
> didnt test them out yet..
> In JQuery there's the ".ready" event, any manual event I can add to achieve
> my goal?
>
> Now that I think about it, I can do a work around, but its just local and
> it would be much cleaner of I had a "onReady" event..
>
> Any chance to ask for RFE?
>
> 2009/12/27 Fábio M. Costa <[email protected]>
>
> Im not sure if the load event works on divs. The ones i remember are IMGs
>> and the document, but there might be more.
>>
>> --
>> Fábio Miranda Costa
>> Solucione Sistemas
>> Engenheiro de interfaces
>>
>>
>>
>> On Sun, Dec 27, 2009 at 10:08 AM, Roman Land <[email protected]>wrote:
>>
>>> Hi,
>>>
>>> I am trying to use the load event of elements, example:
>>> http://mooshell.net/nzpyH/
>>>
>>> My goal is to do something on the element once I create it (tooltips) so
>>> as part of its properties I am trying to fire he "load" event and run the
>>> event function.
>>>
>>> Thanks!
>>>
>>> --
>>> ---
>>> "Make everything as simple as possible, but not simpler."
>>>
>>> - Albert Einstein
>>>
>>>
>>
>
>
> --
> ---
> "Make everything as simple as possible, but not simpler."
>
> - Albert Einstein
>
>

Reply via email to