/    Sign up×
Community /Pin to ProfileBookmark

I have a html form and would like on submit for it to open an iframe with the posted link info.

[CODE] <form action=”http://default_login.asp” method=”post” name=”form1″>

<div align=”center”>
<table width=”388″ height=”488″ border=”0″ align=”center” class=”tablebk1″>
<tr>
<td><p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table width=”234″ height=”289″ border=”0″ align=”center” class=”table” style=”height: 152px; “>
<tbody>
<tr>
<td colspan=”2″ class=”clienttext”><div align=”center” class=”logintext”>Client Login</div></td>
</tr>
<tr>
<td colspan=”2″ class=”text”> Username</td>
</tr>
<tr>
<td colspan=”2″ class=”mceVisualAid”><input size=”17″ id=”username” class=”form” name=”username” type=”text” /></td>
</tr>
<tr>
<td colspan=”2″ class=”text”>Password</td>
</tr>
<tr>
<td colspan=”2″ class=”mceVisualAid”>
<input size=”17″ id=”password” class=”form” name=”password” type=”password” /></td>
</tr>
<tr>
<td width=”72″ class=”mceVisualAid”>&nbsp;</td>
<td width=”261″ class=”mceVisualAid”><div align=”right”>
<input value=”http://client-login” name=”redirecturl” type=”hidden” />
<input name=”Submit” type=”image” class=”signin” value=”Submit” src=”signin-2.png” mce_src=”images/signin-2.png” />
</div></td>
</tr>
</tbody>
</table>
<div align=”center”><span class=”reg”><a href=”http://” target=”_self” class=”reg”>Register New Account</a></span><br />
</div></td>
</tr>
</table>
</div>
</form>[/CODE]

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@mandianaMar 24.2009 — Are you saying that you don't want the page where the form is to be redirected anywhere when the form is submitted, but instead you want an iframe to open up on the page where you are? If so, you may want to look into ajax:

http://www.tizag.com/ajaxTutorial/index.php

Otherwise, you should have your asp script print the html that contains the iframe.

Am I understanding you correctly?

~Mandi ?
Copy linkTweet thisAlerts:
@FangMar 25.2009 — No need for Ajax. Use the base element with the target set for the iframe.
×

Success!

Help @pphfl spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.3,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...