Body onLoad not working Woodstock comp / AJAX Arch

Discussion in 'JavaScript' started by donmillhofer@yahoo.com, Jun 30, 2008.

  1. #1
    Say I just upgraded to the latest Woodstock release and what used to work is no longer working.

    It used to be I could kickoff a function on body onLoad="functionName()" and the function would work fine. Now however I receive a 'null' where I used to return an 'Object'. It appears that the components have not completed the load process when the onLoad event is fired. The literature seems to confirm this change but how to deal with it is unclear.

    Is there a way to confirm the components required in the onLoad function exist before proceeding? In this case I have two webuijsf hidden field components carrying session control variables. Can I loop a status indicator? If so what / how?

    Your assistance is greatly appreciated.

    Don
     
    donmillhofer@yahoo.com, Jun 30, 2008 IP
  2. =Messa=

    =Messa= Peon

    Messages:
    104
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Wouldn't if conditional statement(s) work?
     
    =Messa=, Jul 1, 2008 IP