ZFdebug Jquery干扰

ZFdebug Jquery干扰,jquery,zend-framework,Jquery,Zend Framework,我将Zend Framework与ZfDebug()一起使用 以及Base64编码/解码插件。() 问题是,当我试图: $(document).ready(function(){ $('#submit').click(function(e){ e.preventDefault(); data = $.base64Encode("something"); alert(data); }); })) 出现错误:$。base64Encode不是函数 如果在源代码中加载了ZfDebug

我将Zend Framework与ZfDebug()一起使用 以及Base64编码/解码插件。()

问题是,当我试图:

$(document).ready(function(){

$('#submit').click(function(e){
    e.preventDefault();
    data = $.base64Encode("something");
alert(data);
});
}))

出现错误:$。base64Encode不是函数

如果在源代码中加载了ZfDebug include脚本

  #ZFDebug_debug { font: 11px/1.4em Lucida Grande, Lucida Sans Unicode, sans-serif; position:fixed; bottom:5px; left:5px; color:#000; z-index: 255;}
            #ZFDebug_debug ol {margin:10px 0px; padding:0 25px}
            #ZFDebug_debug li {margin:0 0 10px 0;}
            #ZFDebug_debug .clickable {cursor:pointer}
            #ZFDebug_toggler { font-weight:bold; background:#BFBFBF; }
            .ZFDebug_span { border: 1px solid #999; border-right:0px; background:#DFDFDF; padding: 5px 5px; }
            .ZFDebug_last { border: 1px solid #999; }
            .ZFDebug_panel { text-align:left; position:absolute;bottom:21px;width:600px; max-height:400px; overflow:auto; display:none; background:#E8E8E8; padding:5px; border: 1px solid #999; }
            .ZFDebug_panel .pre {font: 11px/1.4em Monaco, Lucida Console, monospace; margin:0 0 0 22px}
            #ZFDebug_exception { border:1px solid #CD0A0A;display: block; }
        </style> 
        <script type="text/javascript" charset="utf-8"> 
            if (typeof jQuery == "undefined") {
                var scriptObj = document.createElement("script");
                scriptObj.src = "http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js";
                scriptObj.type = "text/javascript";
                var head=document.getElementsByTagName("head")[0];
                head.insertBefore(scriptObj,head.firstChild);
            }

            var ZFDebugLoad = window.onload;
            window.onload = function(){
                if (ZFDebugLoad) {
                    //ZFDebugLoad();
                }
                jQuery.noConflict();
                ZFDebugCollapsed();
            };

            function ZFDebugCollapsed() {
                if (0 == 1) {
                    ZFDebugPanel();
                    jQuery("#ZFDebug_toggler").html("&#187;");
                    return jQuery("#ZFDebug_debug").css("left", "-"+parseInt(jQuery("#ZFDebug_debug").outerWidth()-jQuery("#ZFDebug_toggler").outerWidth()+1)+"px");
                }
            }

            function ZFDebugPanel(name) {
                jQuery(".ZFDebug_panel").each(function(i){
                    if(jQuery(this).css("display") == "block") {
                        jQuery(this).slideUp();
                    } else {
                        if (jQuery(this).attr("id") == name)
                            jQuery(this).slideDown();
                        else
                            jQuery(this).slideUp();
                    }
                });
            }

            function ZFDebugSlideBar() {
                if (jQuery("#ZFDebug_debug").position().left > 0) {
                    document.cookie = "ZFDebugCollapsed=1;expires=;path=/";
                    ZFDebugPanel();
                    jQuery("#ZFDebug_toggler").html("&#187;");
                    return jQuery("#ZFDebug_debug").animate({left:"-"+parseInt(jQuery("#ZFDebug_debug").outerWidth()-jQuery("#ZFDebug_toggler").outerWidth()+1)+"px"}, "normal", "swing");
                } else {
                    document.cookie = "ZFDebugCollapsed=0;expires=;path=/";
                    jQuery("#ZFDebug_toggler").html("&#171;");
                    return jQuery("#ZFDebug_debug").animate({left:"5px"}, "normal", "swing");
                }
            }

            function ZFDebugToggleElement(name, whenHidden, whenVisible){
                if(jQuery(name).css("display")=="none"){
                    jQuery(whenVisible).show();
                    jQuery(whenHidden).hide();
                } else {
                    jQuery(whenVisible).hide();
                    jQuery(whenHidden).show();
                }
                jQuery(name).slideToggle();
            }
        </script> 
#ZFDebug_debug{font:11px/1.4em Lucida Grande,Lucida Sans Unicode,Sans serif;位置:固定;底部:5px;左侧:5px;颜色:1000;z索引:255;}
#ZFDebug_debug ol{margin:10px 0px;padding:0 25px}
#ZFDebug_debug li{margin:010px 0;}
#ZFDebug_debug.可点击{光标:指针}
#ZFDebug_切换程序{字体重量:粗体;背景:#bfbf;}
.ZFDebug_span{border:1px solid#999;border right:0px;background:#DFDFDF;padding:5px 5px;}
.ZFDebug_最后{边框:1px实心#999;}
.ZFDebug_面板{文本对齐:左;位置:绝对;底部:21px;宽度:600px;最大高度:400px;溢出:自动;显示:无;背景:#E8E8E8;填充:5px;边框:1px实心#999;}
.ZFDebug_panel.pre{font:11px/1.4em摩纳哥,Lucida控制台,monospace;边距:0 22px}
#ZFDebug_异常{边框:1px实心#CD0A0A;显示:块;}
if(typeof jQuery==“未定义”){
var scriptObj=document.createElement(“脚本”);
scriptObj.src=”http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js";
scriptObj.type=“text/javascript”;
var head=document.getElementsByTagName(“head”)[0];
head.insertBefore(scriptObj,head.firstChild);
}
var ZFDebugLoad=window.onload;
window.onload=函数(){
if(ZFDebugLoad){
//ZFDebugLoad();
}
jQuery.noConflict();
zfdeb()折叠;
};
函数{
如果(0==1){
ZFDebugPanel();
jQuery(“#ZFDebug_toggler”).html(»;”;
返回jQuery(“#ZFDebug_-debug”).css(“左”、“-”+parseInt(jQuery(“#ZFDebug_-debug”).outerWidth()-jQuery(“#ZFDebug_-toggler”).outerWidth()+1)+“px”);
}
}
功能面板(名称){
jQuery(“.ZFDebug_面板”)。每个(函数(i){
if(jQuery(this.css(“display”)=“block”){
jQuery(this.slideUp();
}否则{
if(jQuery(this).attr(“id”)==名称)
jQuery(this.slideDown();
其他的
jQuery(this.slideUp();
}
});
}
函数ZFDebugSlideBar(){
if(jQuery(“#ZFDebug_debug”).position().left>0){
document.cookie=“ZFDebugCollapsed=1;expires=;path=/”;
ZFDebugPanel();
jQuery(“#ZFDebug_toggler”).html(»;”;
返回jQuery(“#ZFDebug_debug”).animate({左:“-”+parseInt(jQuery(“#ZFDebug_debug”).outerWidth()-jQuery(“#ZFDebug_toggler”).outerWidth()+1)+“px”},“normal”,“swing”);
}否则{
document.cookie=“ZFDebugCollapsed=0;expires=;path=/”;
jQuery(“#ZFDebug_-toggler”).html(«;”;
返回jQuery(#ZFDebug_debug”).animate({left:“5px”},“normal”,“swing”);
}
}
函数ZFDebugToggleElement(名称、何时隐藏、何时可见){
if(jQuery(name).css(“显示”)=“无”){
jQuery(whenVisible.show();
jQuery(whenHidden.hide();
}否则{
jQuery(whenVisible.hide();
jQuery(whenHidden.show();
}
jQuery(名称).slideToggle();
}
还有一个

在html的my head元素中,它们相互干扰。(Jquery加载两次)
如果我将应用程序从开发设置为生产,ZfDebug生成的脚本includes将不会显示,我的jquery调用工作正常。

但是我必须能够在开发模式下使用Jquery,有什么建议吗?

最新版本的ZFDebug(目前在trunk中)不依赖于Jquery,并且不会干扰任何javascript包含


编辑:最近,ZFDebug已迁移到github以获得更好的社区支持:

最新版本的ZFDebug(当前位于主干中)不依赖于jQuery,并且不会干扰任何javascript包含


编辑:最近,ZFDebug已迁移到github以获得更好的社区支持:

遗憾的是,这是一个ZFDebug错误,已使用不同的jQuery插件报告过多次。遗憾的是,这是一个ZFDebug错误,已使用不同的jQuery插件报告过多次。