[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 02-16-2006, 06:13 PM   #1 (permalink)
Senior Member
 
thetzfreak's Avatar
 
Join Date: Nov 2004
Posts: 1,140
281.00 NP$ (Donate)

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...

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, 06:20 PM   #2 (permalink)
NamePros Regular
 
Join Date: Jun 2005
Location: Michigan
Posts: 545
75.00 NP$ (Donate)

combs84 is a jewel in the roughcombs84 is a jewel in the roughcombs84 is a jewel in the rough


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, 06:27 PM   #3 (permalink)
Senior Member
 
thetzfreak's Avatar
 
Join Date: Nov 2004
Posts: 1,140
281.00 NP$ (Donate)

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 06:43 PM.
thetzfreak is offline  
Old 02-16-2006, 06:46 PM   #4 (permalink)
Senior Member
 
{insert name here}'s Avatar
 
Join Date: Dec 2004
Posts: 1,307
46.90 NP$ (Donate)

{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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 09:14 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85