在jquerypost之后,我可以';t使用coldfusion读取表单值

在jquerypost之后,我可以';t使用coldfusion读取表单值,jquery,coldfusion,Jquery,Coldfusion,我有一个jquery帖子: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type="text/javascript" src="./js/j

我有一个jquery帖子:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="./js/jquery-1.4.3.min.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
            $("#JqPostForm").submit(function(){
                    $.post("messages.cfm", $("#JqPostForm").serialize());
                    return false;
            });
    });
</script>
</head>
<body>
<form id="JqPostForm">
<p><label for="name_post">Name:</label><br />
<input id="name_post" type="text" name="name_post" /></p>
<p><input type="submit" value="Submit" /></p>
</form>
</body>
</html>
但是,如果我去cfdebug部分

Form Fields:
FIELDNAMES=NAME_POST
NAME_POST=John doe
萤火虫: 参数应用程序/x-www-form-urlencoded
约翰·多伊的姓名和职位
来源
name\u post=john+doe

im使用jQuery1.4.3和coldfusion 7

谢谢


Plutarco

我在application.cfc中删除了这一行

<CFSET SetEncoding("FORM", "iso-8859-1") />

很好用


谢谢

我在我的申请表中删除了这一行。cfc

<CFSET SetEncoding("FORM", "iso-8859-1") />

很好用


谢谢

使用cftry/cfcatch将代码包装在message.cfm中,并转储“error”和“form”变量以解决问题。或者在此处发布该信息。您可以尝试从cfoutput中删除表单范围吗。你试过手动运行messages.cfm吗?你的代码对我来说非常适合——我唯一做的改变是从谷歌采购jQuery。OSX上的Coldfusion 8,0,1195765。我在application.cfc中发现了问题。使用cftry/cfcatch将代码包装在message.cfm中,并转储“error”和“form”变量以解决问题。或者在此处发布该信息。您可以尝试从cfoutput中删除表单范围吗。你试过手动运行messages.cfm吗?你的代码对我来说非常适合——我唯一做的改变是从谷歌采购jQuery。OSX上的Coldfusion 8,0,1195765。我在应用程序中发现了问题。cfc
<CFSET SetEncoding("FORM", "iso-8859-1") />