Results 1 to 4 of 4
Oct 26, 2010, 03:03 #1
- Join Date
- Sep 2010
- 0 Post(s)
- 0 Thread(s)
move inline script into external js file
the logic as outlined in the attached file is working however I would like to move the inline script (line 8 to 354) into an external js file. only how ?
if I move the above to dtree.js, adjust function dTree(objName) for function dTree(objName, path) and adjust $path for path under icons and use
$jsfile = $baselink.$this->template.'/js/dtree.js';
how am I to pass $path to the script?
I am sorry if this is majorly basic but I'm only starting with learning js
could somebody please help me figure how to achieve that?