蓝森林首页 | 返回主页 | 本站地图 | 站内搜索 | 联系信箱 |
 您目前的位置:首页 > 自由软件 > 技术交流 > 应用编程


    

蓝森林 http://www.lslnet.com 2006年8月25日 8:28

[ASP]如何使Form登陆到另一页的iFrame里?

由于帐户区和静态页分别放置在两个服务器上.
为了方便分类维护,特地请程序员把帐户区处理成了一个没有文件头尾的核心cgi.不料却在登陆时出了一点问题:
共有三个相关页面,分别是:

帐户服务器的:
[b]c_account_only.cgi[/b]

静态服务器的:
[b]a_index.asp[/b] 这里有登陆框(用户名.密码.GO),写的代码是:
[code]<form action="https://...c_account_only.cgi" target="account" method="POST" onSubmit="window.location.href('b_outline.asp');" style="margin:0; padding:0">
name:<input type="text" name="login" >
sn:<input name="password" type="password" >
<input name="submit" type="image" value="Login" onClick="noPop( );" src="img/bot_go.gif">
</form>
[/code]
[b]b_outline.asp[/b] 填写用户名密码后应该转到这一页,这是帐户核心区的外框.它包含有一个iFrame,内含:c_account_only.cgi .写的代码是:
[code]
<iframe name="account" id="account" SRC="https://...c_account_only.cgi"" width="600" height="880" border="0" marginwidth="0" marginheight="0" noresize frameborder="no" scrolling="no">
</iframe>
[/code]
不知道我哪里写错了,在a_index.asp正常跳转到b_outline.asp时(并且不能每次都成功,有时又要在b_outline.asp重新登陆一次);又弹出一个多余的c_account_only.cgi来.
对了,那个onClick="noPop( );" 是自我接手起就有的,我也不知道它是什么意思 - - 难道是点击以后不弹出窗口?那怎么不灵呢?
哈哈,我只是美工.见谅见谅.

哪位厉害的好心人有空,帮我看看吧:)


发现这篇文章,似乎在讨论同一类问题:

> Does this work?
><form action="x.cgi" method="post" target="iframe"></form>

http://lists.evolt.org/archive/Week-of-Mon-20030106/132223.html 可是我看不懂:D


呵呵,没有人碰到过这种情况吗?




Copyright © 1999-2000 LSLNET.COM. All rights reserved. 蓝森林网站 版权所有。 E-mail : webmaster@lslnet.com