On Sep 6, 2011, at 11:41 AM, Donald R. Ziesig wrote:

> Never mind!  I got it by using document.write... in my javascript file.
> 
> Don Z.
> 
> P.S.  I have another problem.... see my next post ;-) .
> 
> On 9/6/2011 9:46 AM, Donald R. Ziesig wrote:
>> Hi All!
>> 
>> I need to call javascript's onloaded event from a dryml page.  There must be 
>> a way of doing this 'cause I see a lot of js type event processing in 
>> firebug.
>> 
>> I tried <body onloaded="loaded()"/> like I would in a pure html page 
>> (excluding the /) but I think dryml must have confused it with its own 
>> <body> tag.

Note that calling document.write is somewhat discouraged in modern practice - 
you might want to look into the various loading hooks that the Javascript 
frameworks provide. For instance, Prototype has a dom:loaded event you can 
attach a callback to:

http://www.prototypejs.org/api/document/observe

and jQuery provides an even shorter syntax:

http://api.jquery.com/jQuery/#jQuery3

--Matt Jones

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.

Reply via email to