| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) | ||||
| Senior Member Join Date: Nov 2004
Posts: 1,129
![]() ![]() ![]() ![]() | Help With Forms and iFrames I've got a question that maybe the NamePros members can help me with. I've got a yahoo login form inside an iFrame, and I'm trying to make the target page open in a new window, not in an iFrame. How do I do this? I did a bit of looking on google, and all I found was to put the following code into the <form tag:
????: NamePros.com http://www.namepros.com/programming/168308-help-with-forms-and-iframes.html Here is the code that I have inside the iFrame: Code: <form method="post" action="https://login.yahoo.com/config/login?" autocomplete="off" onsubmit="window.open('','foo',
'resizable=1,scrollbars=1,width=400,height=300')" name="login_form">
<input type="hidden" name=".done" value="http://mail.yahoo.com">
<p><label for="username">Yahoo! ID: </label>
<input name="login0" id="username0" value="" size="17" class="yreg_ipt" type="text"> <label for="passwd">Password: </label>
<input name="passwd0" id="passwd0" value="" size="17" class="yreg_ipt" type="password"> <class="yreglgsb"><input type="submit" value="Login">
</p>
</form> Thanks. | ||||
| |
| | #2 (permalink) |
| NamePros Regular Join Date: Jun 2005 Location: Michigan
Posts: 613
![]() ![]() ![]() ![]() | I may be little help as I dunno much about this, and i'm not quite positive I understand ya..but do you mean adding target="_blank"> to the end of the domain name? Example being... "http://mail.yahoo.com"target="_blank"> or no? It may be diff with a form? As I said you probably know me but I used to use Iframes and thats what i had to do to all my links, not sure if that's what you need tho. |
| |
| | #4 (permalink) |
| Senior Member Join Date: Dec 2004
Posts: 1,304
![]() ![]() ![]() ![]() ![]() | Your best bet is to not have it in the Iframe at all, as no matter what the Iframe will reload. You should just put the login form on the page staticly, by using a php include.
__________________ You got no time for the messenger, got no regard for the thing that you don't understand, you got no fear of the underdog, that's why you will not survive! |
| |