Changes between Version 23 and Version 24 of Documentation/OldNewbieGuide


Ignore:
Timestamp:
02/21/07 12:09:32 (13 years ago)
Author:
ray
Comment:

Newbies frequently have problems with rivalling window.onload function, changed example to use Xinha._addEvent() instead

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/OldNewbieGuide

    v23 v24  
    143143    } 
    144144 
    145     window.onload = xinha_init; 
     145    Xinha._addEvent(window,'load', xinha_init); // this executes the xinha_init function on page load  
     146                                                // and does not interfere with window.onload properties set by other scripts 
    146147 
    147148}}}