I'm hoping someone on this site can offer some help. I have a page that uses ajax to load a form (id: "editform") into a jQuery-ui dialog box. The dialog box has a button attached - when someone changes the form and clicks this button it triggers a function which serialize()s the form data and sends it via $.post to replace a div on the page with the results. This works fine in every browser I've tested on except...wait for it...IE (all versions). The problem seems to be that IE is not recognizing the call to serialize this form.

我希望这个网站上有人能提供一些帮助。我有一个使用ajax将表单(id:“editform”)加载到jQuery-ui对话框的页面。对话框中有一个按钮——当有人更改表单并单击此按钮时,它将触发一个函数,该函数序列化()表单数据并通过$发送。将页面上的div替换为结果。这在我测试过的所有浏览器中都很好用,除了……等待……IE(所有版本)。问题似乎是IE没有意识到对这种形式进行序列化的调用。

alert($("#editform").serialize());

gives me "" in IE, but the desired long querystring in other browsers. I've also tried to grab the data one piece at a time,

在IE中给出“”,但在其他浏览器中给出所需的长查询字符串。我也试图一次只抓取一个数据,

alert($("#name").val());

Again - IE does not recognize this field, returning "" while the other browsers output the data I'm looking for.

同样,IE不识别这个字段,返回“”,而其他浏览器输出我正在查找的数据。

Any ideas?

什么好主意吗?

Thanks

谢谢

2 个解决方案

#1


6

Okay - I found it. Thanks, Brandon H. for pointing me to the HTML - I hadn't closed the form () in the generated HTML, which was apparently tripping up IE. I got it up and running now.

我找到了。谢谢Brandon h给我指出HTML——我并没有关闭生成的HTML中的form(),这显然是在破坏IE。我已经准备好了,现在就跑。

Thanks all for your time.

谢谢大家。

更多相关文章

  1. Twitter在模式窗口中引导数据表程序
  2. jquery mobile界面数据刷新
  3. 将数据从jQuery Ajax发送到MVC COntroller
  4. JQUERY中做表单验证,谁有带时间的日期选择控件?
  5. jQuery无法从localhost检索数据
  6. 如何使用jquery ajax获取api数据?
  7. 将css添加到jquery数据表中的特定单元格
  8. 深入学习jQuery选择器系列第七篇——表单选择器
  9. 使用jQuery解析JSON数据

随机推荐

  1. Android软件汉化/精简/去广告/优化教程
  2. android获取图片的RGB颜色值
  3. Android 模拟MotionEvent事件 触发输入法
  4. Android adb.exe程序启动不起来,如何处理
  5. APP安装支持安装到SDCard
  6. android 复制、剪切、粘贴
  7. Android自定义进度条
  8. 开始开发Android的使用Eclipse
  9. 记一次 Android(安卓)面试
  10. Android(安卓)OpenGLES2.0(九)——利用Open