iframe & wordpress post/page

Status
Not open for further replies.

projectv3

New member
Mar 6, 2007
506
2
0
I'm not sure how many people have tried this, but I figured I'd throw it out there and see how it goes.

I'm tryin to use and iframe in one of my wordpress pages, so that when u click the page, part of it consists of a customized iframe that loads a 3rd party page.

everytime i go into the code editor and inject something along the lines of

<iframe
src ="url"
width="100%" frameborder="0" height="913" marginheight="0" marginwidth="0" scrolling="no">
</iframe>

i get a tiny box, with borders, and no page (seems to strip the url)

i've tried turning off the the visual editor and it's still the same.

any suggestion on this would be much appreciated, else i might have to try it out with joomla
 


this is what i used, after doing a search on the wordpress forum, i can't explain exactly what it does even if i wanted to lol

The code in the header:

<script language="JavaScript">
function iFrameHeight() {
if(document.getElementById && !(document.all)) {
h = document.getElementById('forumframe').contentDocument.body.scrollHeight;
document.getElementById('forumframe').style.height = h;
}
else if(document.all) {
h = document.frames('forumframe').document.body.scrollHeight;
document.all.forumframe.style.height = h;
}
}
</script> The code in the post:
<iframe scrolling="no" width="800" frameBorder="0" src="URL" marginHeight="0" marginWidth="0" border="0" ></iframe>

<script language="JavaScript"> setInterval("iFrameHeight()", 1000)</script>

i'll definately take a look at the include page plugin, if it makes this a lil more user friendly lol for the iframe make sure to include a height="xxx" command and define the pixels exactly because when i left it or set it to atuo or 100% it shrunk on me.
 
Status
Not open for further replies.