I'm trying to add css and js to a view via a preprocess in my template.php.
I've created themename_preprocess_views_view_my_view_name($vars) and added in my drupal_add_js/css but its not working. The view loads fine but the added css and js are not outputted. My drupal_add_js syntax is correct because I've tested it in a hook_nodeapi in a custom module. The documentation is really unclear as to how to use the function with views.
Any help would be greatly appreciated.