IE 无法使用框架集中闪存中的 LoadVars 识别发布数据

发布于 2024-09-19 05:02:23 字数 637 浏览 0 评论 0原文

该代码是从 IE8 中的框架集运行的。打开新窗口时,无法识别表单数据。看来 http 标头“content-type: application/x-www-form-urlencoded”没有被传递到 IE 中,这导致发布数据无法被处理。数据就在那里,IE 只是不做任何处理。

这段代码在 FF 和 Chrome 中运行良好,实际上在 FF 和 Chrome 中传递了正确的标头。还有其他人遇到过这个问题吗?

注意:新页面位于不同的站点上,但我不知道为什么这会导致 POST 而不是 GET 出现问题。

Flash代码:

varSender = new LoadVars();
varSender.title = _parent.tCourseTitle;
varSender.notes = input_txt.text;
varSender.send("http://example.com/notes/print.cfm", "_blank", "POST"); 

我尝试将标头添加到发送请求中,但这根本没有效果。 contenttype 标头仍然丢失,并且它仍然可以在除 IE 之外的任何地方使用。

我当前的解决方法是使用 GET 而不是 post,但这很丑陋,并且限制了我们可以传递的数据大小,但至少目前它是有效的。

This code is being run from a frameset in IE8. When the new window is opened, the form data is not being recognized. It appears that the http header, "content-type: application/x-www-form-urlencoded", is not being passed into IE and this is causing the post data not to be processed. The data is there, IE is just doing nothing with it.

This code works fine in FF and Chrome, and in fact the correct headers are passed in FF and Chrome. Has anyone else run into this problem?

NOTE: The new page is on a different site, but i don't know why that would cause a problem with a POST and not a GET.

Flash code:

varSender = new LoadVars();
varSender.title = _parent.tCourseTitle;
varSender.notes = input_txt.text;
varSender.send("http://example.com/notes/print.cfm", "_blank", "POST"); 

I have tried adding the header to the send request, but that has no effect at all. The contenttype header is still missing and it still works everywhere but IE.

My current work around is to use a GET instead of a post, but that's ugly and it limits us in the size of data we can pass but for now at least it works.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

简单 2024-09-26 05:02:23

我发现如果用flash cs4编译'有问题'的actionscript3代码,就不会有问题。

i found if the 'problem' actionscript3 code compiled with flash cs4, there will be no problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文