View Full Version : 2 functions in <body onload>

07-17-2007, 09:46 PM
Hey all. I'm having issues trying to run 2 functions at the same time in onload.

<BODY OnLoad="function({ReadRSS('http://rss.news.yahoo.com/rss/science','rssBodyTemplate','rssTitleTemplate'),JSFX_StartEffects()">

I can't seem to get these to work no matter what I do. if I do them individually as in get rid of the other one and just OnLoad one of them, it works great.

What's the proper way to run both of these in OnLoad?

07-17-2007, 10:01 PM
Assuming one call is ReadRSS('http://rss.news.yahoo.com/rss/science','rssBodyTemplate','rssTitleTemplate') and the other is JSFX_StartEffects()
<BODY OnLoad="ReadRSS('http://rss.news.yahoo.com/rss/science','rssBodyTemplate','rssTitleTemplate');JSFX_StartEffects()">Note that's a semicolon (;) between the two.