fancybox没有在safari中关闭 - rangerror

时间:2012-05-21 07:00:07

标签: jquery fancybox

$(".editsingle").live('click', function() {
        var editdata_class=$(this).attr('class');
         var editdata_id=$(this).attr('id');
          var editdata_content=$('#'+editdata_id+'>span').html();
           //alert(editdata_content);
           $.fancybox({
             'width': 400,
             'height': 230,
             'type': 'iframe',
             href:'editdata.php?class_data='+editdata_class+'&id_data='+editdata_id+'&content_data='+encodeURIComponent(editdata_content),
                onCleanup: function() {
                     var bla =$("#fancybox-frame").contents().find('#content_para').val();
                       bla=$.text(bla).html();
                        if ($.trim(bla)!=""){
                           // bla=decodeURIComponent(bla);
                        $('#'+editdata_id+'>span').html(bla);
                        }

                }

               })

         });

 $("div#submit_save,#submit_save,").click({
       parent.$.fancybox.close();

  }); 

   <div id="personalsizeleft" class="personalsizeleft" >

       <div>Please enter the client name.</div>

      <div class="errrmsg" style="float:left;"></div>
    <div class="rounded-corners-insidefb">
     <div class="arial bold px15 drkgrey">
                    <input type="text" name="content_para" id="content_para" value="Click here to enter client name." >
               </div>
      <div style="float: left;margin:0px 10px 10px 112px;">
       <a href="javascript:void(0);" id="submit_save" style="text-decoration:none;"><input id="submit_save" type="button" value="Submit"></a>
       </div>
        </div>
        </div>

出于某种原因,这在ff3 / chrome中运行得非常好,即

然而,当涉及到safari时,它会给我一个RangeError:超出最大调用堆栈大小。

这发生在父。$ .fancybox.close();或者如果按下fancybox ....

任何想法?

0 个答案:

没有答案