Grid Generation and manupilation in seperate js file

Hi,

i have my .aspx or .html page in which i define grid as

<HTML>
<body>
   <div id="grid_units"
</body>
 <script type="text/javascript">
          unitsGrid = new dhtmlXGridObject('grid_units');
          ............. and so 
my java script and all my grid api functions goes here in this block
</script>
</HTML>

is there any way i put this block in some js file, i tried it but its not working.

Regards,
Waq

Try to place the function of init of your grid as an onload function to the page:

[code]

<div id="grid_units"

[/code]