Dynamic Drop Downs & Templates
Trying to load up a dynamic drop down on page load. Works fine if I put it into the body tag of a test page, but doesn't when adding it as JS before closing the body. Avoiding using it as onLoad in the body because I know I'm converting this to a template.
For example ...
<body onLoad="WA_setSelectionsInChildList(MM_findObj('parent'),'J6A84a3XrVK1'); WA_FilterAndPopulateSubList(childList_WAJA,MM_findObj('parent'),MM_findObj('child'),1,0,false,': '); WA_setSelectionsInChildList(MM_findObj('child'),'t0fGN8wbKvx4');">
... works a treat, but ...
<script language="text/javascript">
WA_setSelectionsInChildList(MM_findObj('parent'),'J6A84a3XrVK1');
WA_FilterAndPopulateSubList(childList_WAJA,MM_findObj('parent'),MM_findObj('child'),1,0,false,': ');
WA_setSelectionsInChildList(MM_findObj('child'),'t0fGN8wbKvx4');
</script>
... just before </body> doesn't want to do the same thing.
What have I done wrong?