Hi everyone,

In IE8 I am facing a problem with the option : Clicking on question opens/hides answer under question

This does "opens" the question but then immediately redirects to the detail of the FAQ.

This is even though working fine in ie9/chrome/ff

When I view my console in IE8 I see:

SCRIPT87: Invalid argument.
jquery.js?v=1.5.2, line 7968 character 5

Anyone has a solution for this or am I doing it wrong ^^

Thanks !

Comments

karthikkumarbodu’s picture

I am also facing the same issue in IE8 with expand / collapse of questions and answers. Please help if anyone got a solution for the issue.

Version : 6.x-1.13


ERROR:

SCRIPT87: Invalid argument.
jquery-1.4.2.min.js?C, line 144 character 219

karthikkumarbodu’s picture

Hi,
I was trying to fix the issue and i found that the toggle() function is causing the issue only in IE 8 and below versions. I wrote a small snippet of code which fixed the issue.

  //added to stop the page redirection onclick of question in FAQ's if browser mode is IE8 only
  if ($.browser.msie  && parseInt($.browser.version, 10) === 8) {
    //unbinding all the events on the faq question DIV
	$("div.faq-question").unbind();
	//show and hide answers
    $("div.faq-question").click(function(e) {
      if ( $(this).next("div.faq-answer").css('display') == 'none') {
	    $(this).next("div.faq-answer").css("display","block");
	  }
	  else {
	    $(this).next("div.faq-answer").css("display","none");
	  }
	  e.preventDefault();
    });
  }