Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    2 functions in <body onload>

    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?

  • #2
    Regular Coder
    Join Date
    Jul 2002
    Location
    Kansas, USA
    Posts
    487
    Thanks
    0
    Thanked 54 Times in 53 Posts
    Assuming one call is ReadRSS('http://rss.news.yahoo.com/rss/science','rssBodyTemplate','rssTitleTemplate') and the other is JSFX_StartEffects()
    Code:
    <BODY OnLoad="ReadRSS('http://rss.news.yahoo.com/rss/science','rssBodyTemplate','rssTitleTemplate');JSFX_StartEffects()">
    Note that's a semicolon (;) between the two.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •