In function _swfupload_form() for some reason we're using drupal_set_html_head instead of drupal_add_js(). How would it interfere with other javascript?

  $path = drupal_get_path('module', 'swfupload');

  drupal_set_html_head(_swfupload_get_js()); // i prefer to add the swfupload js this way because otherwise  it may interfere 
                                             // with other js, e.g. from webfm module
  // drupal_add_js($path .'/swfupload/SWFUpload.js');  
  // drupal_add_js($path .'/callbacks.js');
  
  drupal_add_css($path .'/swfupload.css');

Comments

robloach’s picture

Title: User drupal_add_js() instead of drupal_set_html_head() » Use drupal_add_js() instead of drupal_set_html_head()
Assigned: Unassigned » robloach
Status: Active » Fixed

This fixed a lot of issues with both Firefox and IE, since it now has the jQuery browser check.

Anonymous’s picture

Status: Fixed » Closed (fixed)