So I have determined that it's dying when I unbind and bind a new
click function to that item.  Where it starts: $(this).unbind();$
(this).click(function(){... When I commented this out, it works (of
course it doesn't have that second click function).

On Jun 4, 10:28 am, Shelane <[EMAIL PROTECTED]> wrote:
> I have this script that is absolutely killing IE, but works fine in
> FF.  I wish I could post the working model, but it's behind our
> firewall.
>
> Here's the script:
> $(function(){
>         bindResults = function(){
>                 $('#sbmsdata_1 a').click(function(){
>                         $('#sbmsdata_1 
> img').attr('src','/images/sbms/folderclosed.gif');
>                         $('img', 
> $(this).parent().prev()).attr('src','/images/sbms/
> folderopen.gif');
>                         var linkval = $(this).attr('href');
>                         $(this).blur();
>                         $('#sbmsitems').load(linkval, function(){
>                                 $('a', this).click(function(){
>                                         $(this).blur();
>                                         return false;
>                                 });
>                         });
>                         return false;
>                 });
>         }
>         var openfolder = 'none';
>         loadSubjects = function(scope){
>                 $('a', scope).click(function(){
>                         
> $('img','#sbmsdata_0').attr('src','/images/sbms/folderclosed.gif');
>                         var linkval = $(this).attr('href');
>                         $.post(linkval, function(j){
>                                 $('table#sbmsdata_1').remove();
>                                 $('#sbmsitems').empty();
>                                 $(placement).append(j);
>                                 bindResults();
>                         });
>                         $(this).blur();
>                         var placement = $(this).parent();
>                         $('img', 
> $(this).parent().prev()).attr('src','/images/sbms/
> folderopen.gif');
>                         $(this).unbind();
>                         $(this).click(function(){
>                                 
> $('img','#sbmsdata_0').attr('src','/images/sbms/
> folderclosed.gif');
>                                 $('table#sbmsdata_1').remove();
>                                 $('#sbmsitems').empty();
>                                 $(this).unbind();
>                                 $(this).blur();
>                                 loadSubjects($(this).parent());
>                                 return false;
>                         });
>                         if (openfolder != 'none'){
>                                 $('a', openfolder).unbind();
>                                 loadSubjects(openfolder);
>                         }
>                         openfolder = $(this).parent();
>                         return false;
>                 });
>         }
>         loadSubjects('#sbmssubjects');
>
> });

Reply via email to