JavaScript提交方法不起作用 [英] JavaScript submit method doesn't work

查看:96
本文介绍了JavaScript提交方法不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




有没有人在他们的VS.NET项目中使用jscript提交

方法取得任何成功?


例如我在脚本中有一些客户端处理

函数然后调用< form name> .submit();

这不行。但它确实可以手工编写

html或aspx页面。


有什么建议吗?

谢谢

解决方案

确实有效。为什么你会遇到错误?尝试验证表格名称

document.all.formName.submit()


-

------ -----

有TidBits吗?

在这里获取: www.networkip.net/tidbits

" Eric George" <一个******* @ discussions.microsoft.com>在消息中写道

news:03 **************************** @ phx.gbl ... < blockquote class =post_quotes>

有没有人在他们的VS.NET项目中使用jscript提交
方法有什么成功?

例如我有一些客户端处理脚本
函数然后调用< form name> .submit();
这不会起作用。然而它确实在手动编码的HTML或aspx页面中工作。

任何建议?
感谢



< blockquote>

我没有收到任何错误。所有这一切

是一个帖子,但它保持在同一页面。

我知道jscript函数被调用,因为

我把调试警告。

document.all.formname.submit()没有帮助。

或者有一种方法可以在VB脚本中执行此操作吗? br />
有什么建议吗?

-----原始消息-----
它确实有效。为什么你会遇到错误?尝试
限定表格namedocument.all.formName.submit()


-----------
有TidBits吗?
在此处获取: www.networkip.net/tidbits
Eric George <一个******* @ discussions.microsoft.com>在messagenews中写了
:03 **************************** @ phx.gbl ...



有没有人在他们的VS.NET项目中使用jscript提交
方法取得任何成功?

例如我在脚本中有一些客户端处理
函数然后调用< form name> .submit();
这不会起作用。然而,它确实在手动编码的
html或aspx页面中工作。

有什么建议吗?
感谢





你期待发生什么?页面确实发布了,那么你需要什么?b / b
你可以通过观看页面来判断页面是否发布,看看它是否闪烁或

重绘自己。如果你想要检索提交的表格变量

,那就是另一个故事了。


-

- ---------

得到TidBits?

在这里获取: www.networkip.net/tidbits

" Eric George" <一个******* @ discussions.microsoft.com>在留言中写道

news:0d **************************** @ phx.gbl ... < blockquote class =post_quotes>
我没有收到任何错误。所有发生的事情
都是一个帖子,但它保持在同一页面上。
我知道jscript函数正在被调用,因为
我发出警告进行调试。
document.all .formname.submit()没有帮助。
或者有一种方法可以在VB脚本中执行此操作吗?
有什么建议吗?

- ---原始消息-----
它确实有效。为什么你会遇到错误?尝试


限定表单名称

document.all.formName.submit()

-

- ---------
得到TidBits?
在这里获取: www.networkip.net/tidbits
Eric George <一个******* @ discussions.microsoft.com>在消息

新闻中写道


:03 **************************** @phx.gbl ...



有没有人在他们的VS.NET项目中使用jscript提交
方法取得任何成功?
<例如,我在脚本
函数中有一些客户端处理,然后调用< form name> .submit();
这不会起作用。然而,它确实在手动编码的
html或aspx页面中工作。

有什么建议吗?
感谢





Hi,

Has anyone had any success using jscript submit
method in their VS.NET projects?

For example I have some client processing in a script
function then call <form name>.submit();
This won''t work. It does however work in a hand coded
html or aspx page.

Any suggestions?
THANKS

解决方案

It does work. Why errors are you experiencing? Try qualifying the form name
document.all.formName.submit()

--
-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"Eric George" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...

Hi,

Has anyone had any success using jscript submit
method in their VS.NET projects?

For example I have some client processing in a script
function then call <form name>.submit();
This won''t work. It does however work in a hand coded
html or aspx page.

Any suggestions?
THANKS



Hi,
I''m not getting any errors. All that happens
is a post but it stays on the same page.
I know that the jscript function is being called since
I put an alert for debugging.
document.all.formname.submit() didn''t help.
Alternatively is there a way to do this in a VB script?
Any suggestions?

-----Original Message-----
It does work. Why errors are you experiencing? Try qualifying the form namedocument.all.formName.submit()

--
-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"Eric George" <an*******@discussions.microsoft.com> wrote in messagenews:03****************************@phx.gbl...

Hi,

Has anyone had any success using jscript submit
method in their VS.NET projects?

For example I have some client processing in a script
function then call <form name>.submit();
This won''t work. It does however work in a hand coded
html or aspx page.

Any suggestions?
THANKS


.



what are you expecting to happen? The page does post so what is it that you
are after?
You can tell if the page posts by watching the page to see if it flashes or
redraws itself. If you want to retrieve the form variables that were
submitted, that is a different story.

--
-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"Eric George" <an*******@discussions.microsoft.com> wrote in message
news:0d****************************@phx.gbl...

Hi,
I''m not getting any errors. All that happens
is a post but it stays on the same page.
I know that the jscript function is being called since
I put an alert for debugging.
document.all.formname.submit() didn''t help.
Alternatively is there a way to do this in a VB script?
Any suggestions?

-----Original Message-----
It does work. Why errors are you experiencing? Try


qualifying the form name

document.all.formName.submit()

--
-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"Eric George" <an*******@discussions.microsoft.com> wrote


in message

news:03****************************@phx.gbl...

Hi,

Has anyone had any success using jscript submit
method in their VS.NET projects?

For example I have some client processing in a script
function then call <form name>.submit();
This won''t work. It does however work in a hand coded
html or aspx page.

Any suggestions?
THANKS


.



这篇关于JavaScript提交方法不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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