Hi,
I'm trying to use the following code:

<table height="100%" width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td><iframe id="content" style="WIDTH: 100%; HEIGHT: 100%" name="content" src="http://search.har.com/idx/doSearch.cfm?cid=549793&amp;siteType=AWS&amp;leadid=3&amp;ALLMLS=N" frameborder="0" width="100%" scrolling="no" height="100%"></iframe></td>
</tr>
</tbody>
</table>

To bring in a page from another site into one of my pages, when I place the code into FCKeditor (using the source function) and preview, it works fine... When I publish the page however, the page doesn't show up. Does anybody have any suggestions for me to try. I'm not to sure why this isn't working... Any help would be greatly appreciated... (I have Drupal set to full HTML)

Thanks,
Lil Chris

Comments

gonzocoder’s picture

Firstly, switch off FCKeditor. It will be easier to just add your code without using a rich text editor.

Secondly, you'll need to use fixed height values for your iframe and table cells. (Or at least I did on my test install). Something like:

<table height="500" width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td><iframe id="content" style="WIDTH: 100%; HEIGHT: 400" name="content" src="http://search.har.com/idx/doSearch.cfm?cid=549793&amp;siteType=AWS&amp;leadid=3&amp;ALLMLS=N" frameborder="0" width="100%" scrolling="no" height="400"></iframe></td>
</tr>
</tbody>
</table>

I tried this and it worked fine.

Gonz

Lil Chris’s picture

I see what you mean by fixed height, but when I copied your code into the page (with fckeditor) turned off... I got the page, but its empty... It's just not (importing) the desired page. What's wierd is that in fckeditor I was putting the code in under source then click the source button, and my page was there (like i want) but when i submit the page, the title is there, just not the content... Hummm?

You can see here:
http://eaglerock-usa.com.s2976.gridserver.com/node/16

It's now 500 in height, but still empty.

What do you think might cause this...?

Thanks,
Lil Chris

gonzocoder’s picture

I just looked and it seems to be there ok now.

Lil Chris’s picture

I just looked again and it still is not showing up... I viewed the source code, and it has removed my <iframe> portion of the code and replaced it with <!--

Do I need to add <iframe> to my html allowed tags...?

gonzocoder’s picture

Have a look at this: http://www.rocketshipstudio.com/ScreenShot001.jpg

It's a screenshot of what I see when I go to your page. That was done in Firefox, but I've just checked it in ie and it's fine in that too.

gonzocoder’s picture

I just looked at your source code and the iframe element is there:

<!-- begin content -->  <div class="node">
<span class="submitted">Submitted by Houston Real Estate on Tue, 11/21/2006 - 14:06.</span>
<span class="taxonomy"></span>
<div class="content"><iframe id="content" name="content" src="http://search.har.com/idx/doSearch.cfm?cid=549793&amp;siteType=AWS&amp;leadid=3&amp;ALLMLS=N" frameborder="0" height="400" scrolling="no" width="100%"></iframe></div>
</div>
<!-- end content --> 
Lil Chris’s picture

I think i'm going nuts... Because it's not showing up for me at all... I have no idea what to do...

gonzocoder’s picture

The fact that I can see it okay here means that it's working on your server, so somethings happening to it when it gets to your browser.

Which browser are you using? Do you have any ad blocking software running?

(I'm just off to take a business call so may be a little while)

Lil Chris’s picture

I have McAffee suite installed, that's the problem, It was an advertisements setting...
I can't thank you enough for being so helpful this morning... Thank you!

gonzocoder’s picture

No problem at all.

You do need to think about what happens if anyone viewing your site is using ad-blocking software though.

Lil Chris’s picture

I'm not sure what to do, it's a realty site and the MLS (house listings) are provided by another website.

gonzocoder’s picture

Well there are a couple of immediate choices I can think of.

If you have the time and want to do things properly, you could find a way of loading the external file using php or javascript. It might be worth posting a new request for this. Give it a descriptive title if you can, something like "How do I display external web pages without iframes?"

If you're on a tight deadline and don't mind breaking some rules, you could just add this to the bottom of your code:

If you cannot see the requested property details you may have ad-blocking software enabled.

Either disable the ad-blocking software or click <a href="http://search.har.com/idx/doSearch.cfm?cid=549793&amp;siteType=AWS&amp;leadid=3&amp;ALLMLS=N" target=blank>here</a> to be taken directly to the property page. 

It's poor practice both from the point of view of asking them to disable ad-blocking so the site works, and using target=blank so you don't lose them from your page. But as a quick and dirty solution it would work.

My advice is go for the first option if you have the time, but the second option might get you out of a hole short term.

Please everyone, no flames - I have explained it's not the best way to do it :-)

Lil Chris’s picture

You've been really helpful. I will probably do option 1. Since it's probably the best way to accomplish my goal and do it properly... Thanks Again...

Lil Chris

gonzocoder’s picture

No problem, glad to have helped.