By Lil Chris on
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&siteType=AWS&leadid=3&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
A couple of things
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:
I tried this and it worked fine.
Gonz
Oh
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
OK now?
I just looked and it seems to be there ok now.
Really...?
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...?Weird
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.
Source Code
I just looked at your source code and the iframe element is there:
Just Nuts...
I think i'm going nuts... Because it's not showing up for me at all... I have no idea what to do...
Browser?
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)
McAfee
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!
No problem
No problem at all.
You do need to think about what happens if anyone viewing your site is using ad-blocking software though.
O.K. Thanks
I'm not sure what to do, it's a realty site and the MLS (house listings) are provided by another website.
Well....
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:
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 :-)
Hey, Thanks man
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
No problem, glad to have
No problem, glad to have helped.