Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » [SOLVED] Force embedded iFrame to open 100% on form submission


Force embedded iFrame to open 100% on form submission

Closed Thread
  #1 (permalink)  
Old 01-01-10, 09:10 PM
lucidfox lucidfox is offline
New Member
 
Join Date: Jan 2010
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Question Force embedded iFrame to open 100% on form submission

Hello,

I have installed and am using this Login - Redirect script. I have created a HTML page with a small embedded iFrame window that shows the login prompt from the script (login.html). You can view the page here. The problem is...

When I fill out and submit the login information it redirects to the correct page of my choosing but only loads the page within the small iFrame area instead of what I would like... reloading the entire page. How can I change this?

The code for the current iFrame window is...

Quote:
<HTML>
<HEAD>
<TITLE>Login</TITLE>
</HEAD>
<BODY>
<font face="Verdana" size="4" color="#000000">Login to Ticketing Area</font>
<FORM METHOD="POST" ACTION="redirect.php" target="_self">
<P><font face="Verdana" size="2" color="#000000"><STRONG>Username:</STRONG><BR>
</font><font color="#000000" face="Verdana">
<INPUT TYPE="text" NAME="username" SIZE=25 MAXLENGTH=25></font></p>
<P><font face="Verdana" size="2" color="#000000"><STRONG>Password:</STRONG><BR>
</font><font color="#000000" face="Verdana">
<INPUT TYPE="password" NAME="password" SIZE=25 MAXLENGTH=25></font></p>
<P><font face="Verdana"><font color="#000000">
<input type="checkbox" name="remember" value="Yes"></font><font size="2" color="#000000">Remember
me from this computer</font></font></p>
<P><font color="#000000">
<INPUT TYPE="submit" NAME="submit" VALUE="Login" style="font-family: Verdana"></font></P>
</FORM>
</BODY>
</HTML>
The page originally did not have target="_self" in the code. That was added, however does not work. If I change it to target="_blank" or target="_parent" it opens in a new window as it should but I think I need some additional CSS or JavaScript to force the window to resize?

Basically I am wanting the page to redirect to an entirely new page (within the current window) not within the size controlled Iframe. Hopefully that makes sense.

Any help would be really helpful

Thank you
  #2 (permalink)  
Old 01-01-10, 09:14 PM
ruteckycs's Avatar
ruteckycs ruteckycs is offline
Coding Addict
 
Join Date: Jul 2009
Posts: 377
Thanks: 6
Thanked 10 Times in 10 Posts
target="_top"
__________________
This post was created with 100% recycled electrons.
The Following User Says Thank You to ruteckycs For This Useful Post:
lucidfox (01-01-10)
  #3 (permalink)  
Old 01-01-10, 09:31 PM
lucidfox lucidfox is offline
New Member
 
Join Date: Jan 2010
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Yep, that did it. I feel like a fool but I'll take it!

Thx alot ruteckycs!
Closed Thread

Bookmarks

Tags
iframe


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

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Space Above Form xavier039 CSS 1 07-13-09 10:52 PM


All times are GMT -5. The time now is 09:11 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.