I'm familiar with the process of attaching JavaScript and CSS to specific forms and form items in Drupal 7 using the #attached attribute.
I'm running into an issue which that solves, but unfortunately I'm on a D6 installation.
Basically, drupal_get_form() is being called from the theme layer (in a custom template file). The form it's printing has form_alter hooks which execute drupal_add_js() (and css), but because the drupal_get_form is being called in the theme layer, those JS files are being added too late, and therefore not being included.
What's the best Drupal 6 solution to this problem?
drupal_get_form()
? – apaderno