NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Help With Forms and iFrames

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 02-16-2006, 07:13 PM THREAD STARTER               #1 (permalink)
Senior Member
 
thetzfreak's Avatar
Join Date: Nov 2004
Posts: 1,129
thetzfreak is just really nicethetzfreak is just really nicethetzfreak is just really nicethetzfreak is just really nice
 



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:

Quote:
onsubmit="window.open('','foo',
'resizable=1,scrollbars=1,width=400,height=300')"
This just made a new window open, but the target page was still opened inside the frame. I'm not sure what the 'foo' is...
????: 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">&nbsp<class="yreglgsb"><input type="submit" value="Login">
				</p>
				</form>
Yep... it's a yahoo login.

Thanks.
thetzfreak is offline  
Old 02-16-2006, 07:20 PM   #2 (permalink)
NamePros Regular
Join Date: Jun 2005
Location: Michigan
Posts: 613
combs84 is just really nicecombs84 is just really nicecombs84 is just really nicecombs84 is just really nice
 



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.
combs84 is offline  
Old 02-16-2006, 07:27 PM THREAD STARTER               #3 (permalink)
Senior Member
 
thetzfreak's Avatar
Join Date: Nov 2004
Posts: 1,129
thetzfreak is just really nicethetzfreak is just really nicethetzfreak is just really nicethetzfreak is just really nice
 



EDIT: Woops, all you have to do do is put target="_new" in the <form> tag. Problem solved!
Last edited by thetzfreak; 02-16-2006 at 07:43 PM.
thetzfreak is offline  
Old 02-16-2006, 07:46 PM   #4 (permalink)
Senior Member
 
{insert name here}'s Avatar
Join Date: Dec 2004
Posts: 1,304
{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light
 


Breast Cancer
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!
{insert name here} is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 02:55 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger