A javascript bug is preventing IE from executing views_slideshow_cycle.js. As such, the slideshow fails to execute under IE 9, whereas it runs fine under Chrome and Firefox.

I have X-UA-Compatible set to IE7

IE9 throws the following exception:

SCRIPT5007: Object expected
views_slideshow_cycle.js?9, line 126 character 9

The offending block is:

 if (typeof JSON != 'undefined') {
        var advancedOptions = JSON.parse(settings.advanced_options); // offending line
        for (var option in advancedOptions) {
          switch(option) {

This error persists even after applying the patch from Advanced options not working.

IE developer tool in debug mode shows that JSON is defined and so is the settings.advanced_options. I can't tell which of these two or which part of these two objects IE is objecting to.

Kludge

Here is a kludge to mask the problem and get the views_slideshow working in IE:

  try {
  if (typeof JSON != 'undefined') {
    ...
  }
 }
 catch(err){/* do nothing */}

Like I said, this masks the problem, but I would rather find a good solution for this.

========================
Here is the jQuery.Extends extract


<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, { "basePath": "/", "lightbox2": { "rtl": 0, "file_path": "/(\\w\\w/)sites/all/files", "default_image": "/sites/all/modules/lightbox2/images/brokenimage.jpg", "border_size": 10, "font_color": "000", "box_color": "fff", "top_position": "", "overlay_opacity": "0.8", "overlay_color": "000", "disable_close_click": true, "resize_sequence": 0, "resize_speed": 400, "fade_in_speed": 400, "slide_down_speed": 600, "use_alt_layout": false, "disable_resize": false, "disable_zoom": false, "force_show_nav": false, "show_caption": true, "loop_items": false, "node_link_text": "View Image Details", "node_link_target": false, "image_count": "Image !current of !total", "video_count": "Video !current of !total", "page_count": "Page !current of !total", "lite_press_x_close": "press \x3ca href=\"#\" onclick=\"hideLightbox(); return FALSE;\"\x3e\x3ckbd\x3ex\x3c/kbd\x3e\x3c/a\x3e to close", "download_link_text": "", "enable_login": false, "enable_contact": false, "keys_close": "c x 27", "keys_previous": "p 37", "keys_next": "n 39", "keys_zoom": "z", "keys_play_pause": "32", "display_image_size": "original", "image_node_sizes": "()", "trigger_lightbox_classes": "", "trigger_lightbox_group_classes": "", "trigger_slideshow_classes": "", "trigger_lightframe_classes": "", "trigger_lightframe_group_classes": "", "custom_class_handler": 0, "custom_trigger_classes": "", "disable_for_gallery_lists": true, "disable_for_acidfree_gallery_lists": true, "enable_acidfree_videos": true, "slideshow_interval": 5000, "slideshow_automatic_start": true, "slideshow_automatic_exit": true, "show_play_pause": true, "pause_on_next_click": false, "pause_on_previous_click": true, "loop_slides": false, "iframe_width": 760, "iframe_height": 600, "iframe_border": 0, "enable_video": false }, "uc_ajax_cart": { "CALLBACK": "/uc_ajax_cart/add/item", "SHOW_CALLBACK": "/uc_ajax_cart/show", "CART_LINK_CALLBACK": "/uc_ajax_cart/addlink", "BLOCK_UI": 1, "TIMEOUT": 3000, "UPDATE_CALLBACK": "/uc_ajax_cart/update", "UPDATE": 0, "CART_VIEW_ON": 0, "SHOW_VIEW_CALLBACK": "/uc_ajax_cart/show-cart-view", "TRACK_CLOSED_STATE": 0, "INITIAL_CLOSED_STATE": 0, "CART_PANE_EFFECT": 0, "CART_PANE_EFFECT_DURATION": 200, "HIDE_CART_OPERATIONS": false, "COLLAPSIBLE_CART": 0, "CART_OPERATION": "Donation Cart", "ADD_TITLE": "Please wait.", "ADD_MESSAGES": [ "\x3cp\x3eAdding your selection to cart...\x3c/p\x3e\r", "" ], "REMOVE_TITLE": "Please wait", "REMOVE_MESSAGES": [ "\x3cp\x3eRemoving your selection from cart...\x3c/p\x3e\r", "" ], "UPDATE_TITLE": "Please wait", "UPDATE_MESSAGES": [ "\x3cp\x3eUpdating cart...\x3c/p\x3e\r", "" ] }, "viewsSlideshow": { "slideshow-libraries_slideshow": { "methods": { "goToSlide": [ "viewsSlideshowPager", "viewsSlideshowSlideCounter", "viewsSlideshowCycle" ], "nextSlide": [ "viewsSlideshowPager", "viewsSlideshowSlideCounter", "viewsSlideshowCycle" ], "pause": [ "viewsSlideshowControls", "viewsSlideshowCycle" ], "play": [ "viewsSlideshowControls", "viewsSlideshowCycle" ], "previousSlide": [ "viewsSlideshowPager", "viewsSlideshowSlideCounter", "viewsSlideshowCycle" ], "transitionBegin": [ "viewsSlideshowPager", "viewsSlideshowSlideCounter" ], "transitionEnd": [  ] }, "paused": 0 }, "comments_slideshow-slideshow_comments_block": { "methods": { "goToSlide": [ "viewsSlideshowPager", "viewsSlideshowSlideCounter", "viewsSlideshowCycle" ], "nextSlide": [ "viewsSlideshowPager", "viewsSlideshowSlideCounter", "viewsSlideshowCycle" ], "pause": [ "viewsSlideshowControls", "viewsSlideshowCycle" ], "play": [ "viewsSlideshowControls", "viewsSlideshowCycle" ], "previousSlide": [ "viewsSlideshowPager", "viewsSlideshowSlideCounter", "viewsSlideshowCycle" ], "transitionBegin": [ "viewsSlideshowPager", "viewsSlideshowSlideCounter" ], "transitionEnd": [  ] }, "paused": 0 }, "facts_slideshow-facts": { "methods": { "goToSlide": [ "viewsSlideshowPager", "viewsSlideshowSlideCounter", "viewsSlideshowCycle" ], "nextSlide": [ "viewsSlideshowPager", "viewsSlideshowSlideCounter", "viewsSlideshowCycle" ], "pause": [ "viewsSlideshowControls", "viewsSlideshowCycle" ], "play": [ "viewsSlideshowControls", "viewsSlideshowCycle" ], "previousSlide": [ "viewsSlideshowPager", "viewsSlideshowSlideCounter", "viewsSlideshowCycle" ], "transitionBegin": [ "viewsSlideshowPager", "viewsSlideshowSlideCounter" ], "transitionEnd": [  ] }, "paused": 0 } }, "viewsSlideshowCycle": { "#views_slideshow_cycle_main_slideshow-libraries_slideshow": { "num_divs": 4, "id_prefix": "#views_slideshow_cycle_main_", "div_prefix": "#views_slideshow_cycle_div_", "vss_id": "slideshow-libraries_slideshow", "effect": "fade", "transition_advanced": 1, "timeout": 25000, "speed": 2000, "delay": 0, "sync": 1, "random": 0, "pause": 1, "pause_on_click": 0, "action_advanced": 1, "start_paused": 0, "remember_slide": 0, "remember_slide_days": 1, "pause_when_hidden": 0, "pause_when_hidden_type": "full", "amount_allowed_visible": "", "nowrap": 0, "fixed_height": 1, "items_per_slide": 1, "wait_for_image_load": 1, "wait_for_image_load_timeout": 3000, "cleartype": 1, "cleartypenobg": 1, "advanced_options": "{}" }, "#views_slideshow_cycle_main_comments_slideshow-slideshow_comments_block": { "num_divs": 32, "id_prefix": "#views_slideshow_cycle_main_", "div_prefix": "#views_slideshow_cycle_div_", "vss_id": "comments_slideshow-slideshow_comments_block", "effect": "fade", "transition_advanced": 1, "timeout": 15000, "speed": 1200, "delay": 0, "sync": 1, "random": 0, "pause": 1, "pause_on_click": 0, "action_advanced": 0, "start_paused": 0, "remember_slide": 0, "remember_slide_days": 1, "pause_when_hidden": 0, "pause_when_hidden_type": "full", "amount_allowed_visible": "", "nowrap": 0, "fixed_height": 1, "items_per_slide": 1, "wait_for_image_load": 1, "wait_for_image_load_timeout": 3000, "cleartype": 1, "cleartypenobg": 1, "advanced_options": "{}" }, "#views_slideshow_cycle_main_facts_slideshow-facts": { "num_divs": 16, "id_prefix": "#views_slideshow_cycle_main_", "div_prefix": "#views_slideshow_cycle_div_", "vss_id": "facts_slideshow-facts", "effect": "fade", "transition_advanced": 1, "timeout": 50000, "speed": 5000, "delay": 0, "sync": 1, "random": 1, "pause": 1, "pause_on_click": 0, "action_advanced": 1, "start_paused": 0, "remember_slide": 1, "remember_slide_days": 1, "pause_when_hidden": 0, "pause_when_hidden_type": "full", "amount_allowed_visible": "", "nowrap": 0, "fixed_height": 1, "items_per_slide": 1, "wait_for_image_load": 1, "wait_for_image_load_timeout": 3000, "cleartype": 1, "cleartypenobg": 1, "advanced_options": "{}" } } });
//--><!]]>
</script>

Sorry, no web-site yet since this is still running locally inside a virtual box, however, here is the html output of the one of the three slideshow views on the main page: The two others are similar to this one.

<DIV class="view view-facts-slideshow view-id-facts_slideshow view-display-id-facts view-dom-id-aaaac4c16838e5c66b3ed07293c9ed47" jQuery1350627233468="39"><DIV class=view-content jQuery1350627233468="38">
<DIV class=skin-default jQuery1350627233468="37">
<DIV id=views_slideshow_cycle_main_facts_slideshow-facts class="views_slideshow_cycle_main views_slideshow_main viewsSlideshowCycle-processed" jQuery1350627233468="36">
<DIV style="POSITION: relative; WIDTH: 201px; HEIGHT: 213px" id=views_slideshow_cycle_teaser_section_facts_slideshow-facts class=views_slideshow_cycle_teaser_section cycleStop="0" cyclePause="0" cycleTimeout="1693" jQuery1350627233468="19">
<DIV style="Z-INDEX: 16; POSITION: absolute; FILTER: alpha(opacity=0); WIDTH: 201px; ZOOM: 1; DISPLAY: none; HEIGHT: 157px; TOP: 0px; LEFT: 0px" id=views_slideshow_cycle_div_facts_slideshow-facts_0 class="views_slideshow_cycle_slide views_slideshow_slide views-row-1 views-row-odd" cycleH="157" cycleW="201" jQuery1350627233468="20">
<DIV class="views-row views-row-0 views-row-first views-row-odd">
<DIV class="views-field views-field-title"><SPAN class=field-content><A href="/content/content1">Question 1</A></SPAN> </DIV>
<DIV>
<DIV class=facts-choices>
<UL class=bullet-5>
<LI>Option 1
<LI>Option 2 
<LI>Option 3 
<LI>Option 4</LI></UL></DIV></DIV>
<DIV><SPAN class=facts-link><A href="/content/conten1">Click to find out...</A></SPAN> </DIV></DIV></DIV>
<DIV style="Z-INDEX: 16; POSITION: absolute; FILTER: alpha(opacity=0); WIDTH: 201px; ZOOM: 1; DISPLAY: none; HEIGHT: 48px; TOP: 0px; LEFT: 0px" id=views_slideshow_cycle_div_facts_slideshow-facts_1 class="views_slideshow_cycle_slide views_slideshow_slide views-row-2 views_slideshow_cycle_hidden views-row-even" cycleH="48" cycleW="201" jQuery1350627233468="21">
<DIV class="views-row views-row-0 views-row-first views-row-odd">
<DIV class="views-field views-field-title"><SPAN class=field-content><A href="/content/content2">Content 2</A></SPAN> </DIV>
<DIV>
<DIV class=facts-choices></DIV></DIV>
<DIV><SPAN class=facts-link><A href="/content/content2">Click to find out...</A></SPAN> </DIV></DIV></DIV>

Comments

NickDickinsonWilde’s picture

Status: Active » Closed (outdated)

Support for Views Slideshow 6.x is mostly deprecated (ie bug fixes and major errors may be looked at and security issues, but not really anything else), so closing.