School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,413 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,600 people online right now. Registration is fast and FREE... Join Now!




iFrame within an iFrame

 

iFrame within an iFrame

uplodu

2 Jul, 2009 - 09:13 AM
Post #1

New D.I.C Head
*

Joined: 31 May, 2009
Posts: 32


My Contributions
Hey Guys - I've been trying to get an iFrame within another iFrame.
The code looks like this - Am I doing something wrong?!
CODE
<iframe name="Search" width = "720px" height = "200px" align="center" scrolling="No" frameborder="no" id="Search" with style="background-color: #c51617">

<div class="searchHeadline">

<iframe src="/search.htm" name="Search" width = "675px" height = "100px" align="center" scrolling="No" frameborder="no" id="Search">
     </iframe>
</iframe></div>    


thanks in advance for help.

This post has been edited by uplodu: 2 Jul, 2009 - 09:13 AM

User is offlineProfile CardPM
+Quote Post


RudiVisser

RE: IFrame Within An IFrame

2 Jul, 2009 - 09:40 AM
Post #2

.. does not guess solutions
Group Icon

Joined: 5 Jun, 2009
Posts: 1,872



Thanked: 137 times
Dream Kudos: 125
Expert In: PHP, MySQL, HTML, CSS, C#

My Contributions
Well the content of the iFrame tag is only displayed when the browser doesn't support frames.

You would need to create another page with the other iFrame in, and set the src attribute of it to that page.
User is offlineProfile CardPM
+Quote Post

kewlkreator

RE: IFrame Within An IFrame

3 Jul, 2009 - 10:46 AM
Post #3

Total DIC-Wad
Group Icon

Joined: 25 Mar, 2009
Posts: 1,023



Thanked: 16 times
Dream Kudos: 550
My Contributions
Your closing DIV tag is outside of the first iFrame. Try putting the first DIV tag before the iFrame starts. Don't know why that would help but that's just proper nesting technique... I think. I'm a n00b anyway so don't listen to me unless you want to.
User is offlineProfile CardPM
+Quote Post

uplodu

RE: IFrame Within An IFrame

6 Jul, 2009 - 02:24 AM
Post #4

New D.I.C Head
*

Joined: 31 May, 2009
Posts: 32


My Contributions
QUOTE(kewlkreator @ 3 Jul, 2009 - 10:46 AM) *

Your closing DIV tag is outside of the first iFrame. Try putting the first DIV tag before the iFrame starts. Don't know why that would help but that's just proper nesting technique... I think. I'm a n00b anyway so don't listen to me unless you want to.



Thanks for the responses, I've figured out what i've been doing wrong.

The second iFrame was supposed to be in the src of the first and not the same page - all sorted now thank you.
User is offlineProfile CardPM
+Quote Post

kewlkreator

RE: IFrame Within An IFrame

10 Jul, 2009 - 05:19 AM
Post #5

Total DIC-Wad
Group Icon

Joined: 25 Mar, 2009
Posts: 1,023



Thanked: 16 times
Dream Kudos: 550
My Contributions
Could you thank me? I need it
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/7/09 11:17PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month