Title: [Plugin: NextGEN Gallery] IE6 Javascript Error Fix
Last modified: August 19, 2016

---

# [Plugin: NextGEN Gallery] IE6 Javascript Error Fix

 *  [T Klein](https://wordpress.org/support/users/tklein87gmailcom/)
 * (@tklein87gmailcom)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-ie6-javascript-error-fix/)
 *     ```
       // File Tree implementation
       		jQuery(function() {
       		    jQuery("span.browsefiles").show().click(function(){
           		    jQuery("#file_browser").fileTree({
           		      script: "admin-ajax.php?action=ngg_file_browser&nonce=<?php echo wp_create_nonce( 'ngg-ajax' ) ;?>",
                         root: jQuery("#galleryfolder").val(),
           		    }, function(folder) {
           		        jQuery("#galleryfolder").val( folder );
           		    });
       		    	jQuery("#file_browser").show('slide');
       		    });
       		});
       ```
   
 * Notice the comma after the “root: jQuery(“#galleryfolder”).val(),”
 * This comma is unneccessary as was causing javascript errors in IE6. Removing 
   the comma doesn’t seem to cause any ILL effects, and fixes the error and the 
   layout breaking in IE6 on the add gallery/images tab.
 *     ```
       // File Tree implementation
       		jQuery(function() {
       		    jQuery("span.browsefiles").show().click(function(){
           		    jQuery("#file_browser").fileTree({
           		      script: "admin-ajax.php?action=ngg_file_browser&nonce=<?php echo wp_create_nonce( 'ngg-ajax' ) ;?>",
                         root: jQuery("#galleryfolder").val()
           		    }, function(folder) {
           		        jQuery("#galleryfolder").val( folder );
           		    });
       		    	jQuery("#file_browser").show('slide');
       		    });
       		});
       ```
   
 * [http://wordpress.org/extend/plugins/nextgen-gallery/](http://wordpress.org/extend/plugins/nextgen-gallery/)

The topic ‘[Plugin: NextGEN Gallery] IE6 Javascript Error Fix’ is closed to new 
replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [T Klein](https://wordpress.org/support/users/tklein87gmailcom/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-ie6-javascript-error-fix/)
 * Status: not resolved