Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by pepys on May 22, 2009 07:34
open dhtmlx forum
:: pepysDHTMLX :: dhtmlxFolders directly in BODY

I want to have the script with the setings directly in <body>, not in <head onLoad="doOnLoad()">. Can I use something similry with myGrid.init(); from grids? Thanks..
Answer posted by Support on May 22, 2009 10:06
Folders has not any special init command, but you can place your code anywhere on page , wrapped in next way


dhtmlxEvent("document.body","load",function(){
           ...any code here...
})

code inside such blocks will be executed only after document loading, without relation to the place on page. 
Answer posted by pepys on May 25, 2009 01:07
thank you, is working