User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 391,553 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,585 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 3531 | Replies: 12
Reply
Join Date: Dec 2006
Posts: 8
Reputation: arohamack is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
arohamack arohamack is offline Offline
Newbie Poster

Help Iframe opening new window problem

  #1  
Dec 5th, 2006
Hey guys - please bear with me. i know a lil bit but am not expert!

anyways, i have page with an iframe. It's working fine but i have a secure website that i need to open inside the iframe & it wont do it. Keeps reverting to a new window. Have tried changing the targets but it doesn't work. Have also tried naming the iframe & link but still not working. Anyone got any ideas?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2006
Posts: 8
Reputation: arohamack is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
arohamack arohamack is offline Offline
Newbie Poster

Re: Iframe opening new window problem

  #2  
Dec 6th, 2006
awww no-one has any ideas?
Reply With Quote  
Join Date: May 2006
Location: New Jersey
Posts: 1,422
Reputation: stymiee is on a distinguished road 
Rep Power: 5
Solved Threads: 34
Moderator
Staff Writer
stymiee's Avatar
stymiee stymiee is offline Offline
He's No Good To Me Dead

Re: Iframe opening new window problem

  #3  
Dec 6th, 2006
No.

What's your URL of the page you are working on? Maybe we can play with it and see what's going on.
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Reply With Quote  
Join Date: Dec 2006
Posts: 8
Reputation: arohamack is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
arohamack arohamack is offline Offline
Newbie Poster

Re: Iframe opening new window problem

  #4  
Dec 7th, 2006
Originally Posted by stymiee View Post
No.

What's your URL of the page you are working on? Maybe we can play with it and see what's going on.



Thanks Stymiee :-)

it's for our web based system but the web page I'm trying to load into the iframe is https://firepass.optimation.co.nz/my.logon.php3

THANK YOU!
Reply With Quote  
Join Date: May 2006
Location: New Jersey
Posts: 1,422
Reputation: stymiee is on a distinguished road 
Rep Power: 5
Solved Threads: 34
Moderator
Staff Writer
stymiee's Avatar
stymiee stymiee is offline Offline
He's No Good To Me Dead

Re: Iframe opening new window problem

  #5  
Dec 7th, 2006
What is the url of the page that is calling the iframe?
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Reply With Quote  
Join Date: Dec 2006
Posts: 8
Reputation: arohamack is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
arohamack arohamack is offline Offline
Newbie Poster

Re: Iframe opening new window problem

  #6  
Dec 7th, 2006
well it's not a published url. we have a web based system at work and i'm doing the scripting for it. I can post the html written so far if you like?? it's just that it's a lot.
Last edited by arohamack : Dec 7th, 2006 at 6:52 pm. Reason: additional comments
Reply With Quote  
Join Date: May 2006
Location: New Jersey
Posts: 1,422
Reputation: stymiee is on a distinguished road 
Rep Power: 5
Solved Threads: 34
Moderator
Staff Writer
stymiee's Avatar
stymiee stymiee is offline Offline
He's No Good To Me Dead

Re: Iframe opening new window problem

  #7  
Dec 7th, 2006
That would be fine.
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Reply With Quote  
Join Date: Dec 2006
Posts: 8
Reputation: arohamack is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
arohamack arohamack is offline Offline
Newbie Poster

Re: Iframe opening new window problem

  #8  
Dec 7th, 2006
this is the bit that i'm using to get to the web page if it helps (told u i'm not advanced ;-)

[<p align="center"><a class="current" onclick="return handlelink(this)" href="https://firepass.optimation.co.nz"><font face="Verdana" color="#0000FF" size="2"><strong>Log Internal Optimation
Call</strong></font></a><a class="current" onclick="return handlelink(this)" href="//Remedy/tcm/Internet/Scripts/08002FixIt/LightScratches.txt"></a></p>

]
Reply With Quote  
Join Date: Dec 2006
Posts: 8
Reputation: arohamack is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
arohamack arohamack is offline Offline
Newbie Poster

Re: Iframe opening new window problem

  #9  
Dec 7th, 2006
the whole page though its as follows....

[html]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<title>Services</title>
<meta content="Evrsoft First Page" name="GENERATOR">
<style type="text/css">
#tablist {
PADDING-RIGHT: 0px; MARGIN-TOP: 0.1em; PADDING-LEFT: 0px; MARGIN-BOTTOM: 0px; PADDING-BOTTOM: 3px; FONT: bold 12px Verdana; MARGIN-LEFT: 0px; PADDING-TOP: 3px
}
#tablist LI {
DISPLAY: inline; MARGIN: 0px; LIST-STYLE-TYPE: none
}
#tablist LI A {
BORDER-RIGHT: #000000 1px solid; PADDING-RIGHT: 0.5em; BORDER-TOP: #000000 1px solid; PADDING-LEFT: 0.5em; BACKGROUND: white; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #000000; PADDING-BOTTOM: 3px; MARGIN-LEFT: 3px; BORDER-LEFT: #000000 1px solid; PADDING-TOP: 3px
}
#tablist LI A:link {
COLOR: black
}
#tablist LI A:visited {
COLOR: black
}
#tablist LI A:hover {
BORDER-LEFT-COLOR: #227; BACKGROUND: #999999; BORDER-BOTTOM-COLOR: #227; COLOR: #000000; BORDER-TOP-COLOR: #227; BORDER-RIGHT-COLOR: #227
}
#tablist LI A.current {
BACKGROUND: #ffffff
}
</style>
<script type="text/javascript">

/***********************************************
* Tabbed Document Viewer script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var selectedtablink=""
var tcischecked=false

function handlelink(aobject){
selectedtablink=aobject.href
tcischecked=(document.tabcontrol && document.tabcontrol.tabcheck.checked)? true : false
if (document.getElementById && !tcischecked){
var tabobj=document.getElementById("tablist")
var tabobjlinks=tabobj.getElementsByTagName("A")
for (i=0; i<tabobjlinks.length; i++)
tabobjlinks[i].className=""
aobject.className="current"
document.getElementById("tabiframe").src=selectedtablink
return false
}
else
return true
}

function handleview(){
tcischecked=document.tabcontrol.tabcheck.checked
if (document.getElementById && tcischecked){
if (selectedtablink!="")
window.location=selectedtablink
}
}
</script>
</head>

<body>
<table style="WIDTH: 893px; HEIGHT: 485px">
<tbody>
<tr>
<td width="224">
<p align="center"><a class="current" onclick="return handlelink(this)" href="https://firepass.optimation.co.nz"><font face="Verdana" color="#0000FF" size="2"><strong>Log Internal Optimation
Call</strong></font></a><a class="current" onclick="return handlelink(this)" href="//Remedy/tcm/Internet/Scripts/08002FixIt/LightScratches.txt"></a></p>

<p align="center"><a class="current" onclick="return handlelink(this)" href="https://www.bugtrack.net/secure/default.aspx?license=6C008F8EF9584B508547766AB89BA90F"><font face="Verdana"
color="#0000FF" size="2"><strong>Log HiTech Portal Call</strong></font></a><a class="current" onclick="return handlelink(this)" href=
"//Remedy/tcm/Internet/Scripts/08002FixIt/LightScratches.txt"></a></p>

<p align="center"><a class="current" onclick="return handlelink(this)" href="//Remedy/tcm/Internet/Scripts/08002FixIt/Cracks.html"><font face="Verdana" color="#0000FF" size="2"><strong>Log
Telecom/EDS Call</strong></font></a><a class="current" onclick="return handlelink(this)" href="//Remedy/tcm/Internet/Scripts/08002FixIt/LightScratches.txt"></a></p>

<p align="center"><a class="current" onclick="return handlelink(this)" href="https://www.bugtrack.net/secure/default.aspx?license=6C008F8EF9584B508547766AB89BA90F"><font face="Verdana"
color="#0000FF" size="2"><strong>Log ANZ/National Bank Call</strong></font></a><a class="current" onclick="return handlelink(this)" href=
"//Remedy/tcm/Internet/Scripts/08002FixIt/LightScratches.txt"></a></p>

<p align="center"><a class="current" onclick="return handlelink(this)" href="//Remedy/tcm/Internet/Scripts/08002FixIt/Scratches.html"><font face="Verdana" color="#0000FF" size=
"2"><strong>Log Genesis Energy Call</strong></font></a><a class="current" onclick="return handlelink(this)" href="//Remedy/tcm/Internet/Scripts/08002FixIt/LightScratches.txt"></a></p>

<p align="center"><a class="current" onclick="return handlelink(this)" href="//Remedy/tcm/Internet/Scripts/08002FixIt/Scratches.html"><font face="Verdana" color="#0000FF" size=
"2"><strong>Log Meridian Call</strong></font></a><a class="current" onclick="return handlelink(this)" href="//Remedy/tcm/Internet/Scripts/08002FixIt/LightScratches.txt"></a></p>

<p align="center"><a class="current" onclick="return handlelink(this)" href="//Remedy/tcm/Internet/Scripts/08002FixIt/Scratches.html"><font face="Verdana" color="#0000FF" size=
"2"><strong>ALL OTHER CALLS</strong></font></a><a class="current" onclick="return handlelink(this)" href="//Remedy/tcm/Internet/Scripts/08002FixIt/LightScratches.txt"></a></p>

<p align="center">&nbsp;</p>

<p align="center">&nbsp;</p>

<p align="center">&nbsp;</p>

<p align="center">&nbsp;</p>

<p align="center">&nbsp;</p>

<p align="center">&nbsp;</p>

<p align="center">&nbsp;</p>
</td>

<td width="1191"><iframe id="tabiframe" style="WIDTH: 99.2%; HEIGHT: 522px" name="tabiframe" src="G:/Gareth/TCM%20BANNERS/08002fixit.gif" frameborder="0" width="98%" scrolling="no" height=
"350"></iframe></td>
</tr>
</tbody>
</table>

<ul id="tablist"></ul>

<form id="tabcontrol" style="MARGIN-TOP: 0px" name="tabcontrol">
<font color="#FFFFFF"><input onclick="handleview()" type="checkbox" name="tabcheck"> Open tab links in browser window instead.</font>
</form><!--ADDRESS1_LINE3-->
</body>
</html>
[/html]

am i posting it correctly? it should have those square brackets around it right?
Last edited by FC Jamison : Dec 10th, 2006 at 1:33 am.
Reply With Quote  
Join Date: May 2006
Location: New Jersey
Posts: 1,422
Reputation: stymiee is on a distinguished road 
Rep Power: 5
Solved Threads: 34
Moderator
Staff Writer
stymiee's Avatar
stymiee stymiee is offline Offline
He's No Good To Me Dead

Re: Iframe opening new window problem

  #10  
Dec 7th, 2006
You'll want to use [ html ] [ /html ] to post your code (without the spaces).

I'm not sure where you are trying to include that page. I only see one iframe and it is calling an image.
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

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

 

DaniWeb HTML and CSS Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 9:25 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC