未捕获的异常:语法错误,无法识别的EX pression:# [英] uncaught exception: Syntax error, unrecognized expression: #

查看:209
本文介绍了未捕获的异常:语法错误,无法识别的EX pression:#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到在jQuery的一个。点击()事件此错误。我看到它在萤火虫。我用的是最新的版本,1.3.2(分钟) 点击火灾在我的网站表单的$。阿贾克斯()请求。我问谷歌这件事,他所知道的是%或[@]作为未确认前pressions,一无所知的#。

I get this error on a .click() event in jQuery. I see it in Firebug. I use the latest version, 1.3.2 (min) The click fires an $.ajax() request for a Form in my website. I asked google about this and all he knows is "%" or "[@]" as unrecognized expressions, nothing about the "#".

下面是一个有点我的code:

here is a bit of my code:

    $("form#buyForm #submitForm").live("click", function(e) {
        var errors = 0;

        var inputLastName_value = $("form#buyForm input#userLastName").val();
        if (inputLastName_value == "") {
         errors = 1;
         formErrorHandling("#userLastName");
         return false;
        }
        return false;
    });

这样,我检查我所有的输入错误,然后调用formErrorHandling()谁做了一些显示/隐藏,这样的东西,没有什么重要的。

This way I check all my inputs for errors, and then call formErrorHandling() who does some show/hide, stuff like that, nothing important.

我看,这可能是从我的选择,但他们都似乎就好了。

I read that it might be from a selector of mine, but they all seem to be just fine.

任何人有同样的问题?

感谢。

推荐答案

从我所看到的例外似乎是莫名其妙的 JScrollPane的插件使用的是触发。

From what I can see the exception seems to be somehow triggered by the jScrollPane plugin you are using.

尝试更换您包括脚本(V1.2.3它的历史一样,从2008年12月)有一个较新的,直接从主干版本。其中包含很多改进v.1.2.3并修复异常对我来说<一个href="http://$c$c.google.com/p/jscrollpane/source/browse/trunk/demo/scripts/jScrollPane.js">jScrollPane.js ( jScrollPane.min.js R87 JScrollPane的精缩版的精缩与YUICom pressor)

Try replacing the script you include (v1.2.3 which is as old as from Dec 2008) with a newer version directly from the trunk. Which includes many improvements over v.1.2.3 and fixes the exception for me jScrollPane.js (jScrollPane.min.js minified version of r87 jScrollPane minified with YUICompressor)


删除旧的答案的东西不再需要

removed old answer stuff no longer needed

这篇关于未捕获的异常:语法错误,无法识别的EX pression:#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆