Not quite sure if I'm putting this in the right forum, but I wrote this site entirely in PHP so it seems somewhat appropriate.... here's the problem, and hopefully someone out there's run into a similar issue and might possible save me several hours of headaches.. :)

the site I'm working on is http://www.discoversuccess.com and it displays fine on its own in IE 7 and Firefox, however, when you visit the parent site at http://www.aoausa.com and click on the Upcoming Events link which opens www.discoversuccess.com in an 800px fixed width IFrame, the page doesnt display properly (the images display at their full width forcing half the page off to the right which makes it viewable only when you use the scrollbar to slide over)

Tried making the IFrame open at 100% vs the 800px fixed but it made it worse... Open to suggestions....

PS - This is only an issue in IE... no problems with the IFrame in Firefox

Thanks for your time.

- Vito AKA SBDSTech
http://www.sbdata.net
info@sbdata.net

I visited aoausa.com/ and clicked on Upcoming Events and it opened another web page within aoausa.com- aoausa.com/Upcoming_Events.htm[ in the same window. There was nothing like an iframe and neither did the link you gave us- Upcoming Events open discoversuccess.com.

Pal, you may have to consider modifying this thread you started, because it's somewhat misleading at the moment.

I visited aoausa.com/ and clicked on Upcoming Events and it opened another web page within aoausa.com- aoausa.com/Upcoming_Events.htm[ in the same window. There was nothing like an iframe and neither did the link you gave us- Upcoming Events open discoversuccess.com.

Pal, you may have to consider modifying this thread you started, because it's somewhat misleading at the moment.

Yes, you are correct, and perhaps I should have been a little clearer on certain points when I oriiginally posted this.. However, if you were to view the source of aoausa.com/Upcoming_Events.htm you would find the following code:

<iframe src="http://www.discoversuccess.com/index.php?iframe=1" height="1500" width="810" frameborder="0" marginwidth="0" marginheight="0"></iframe>

That is the IFrame I was referring to... Again, my apologies for not being clearer in my oriiginal post, I hadn't actually looked at the link to see it opened an HTML page that then opened the IFrame...

It actually is displaying correctly now because I reduced the size of the images so that the page would fit an 800px window so that it would display properly for the sites traffic until I can Google my way to the answer to this IE quirk..... Anyway, Thank you for taking the time to even look into this .. It is appreciated.

- Vito AKA SBDSTech
http://www.sbdata.net
info@sbdata.net

I normally use Javascript for iframes. Try this and see if it works:
Place this between the <head> </head> tags.

<script language="javascript" type="text/javascript">
<!--
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
// -->
</script>

Then place the following code where the link pointing to your site is (You can adjust the length and width to suit you):

<div><a href="http://www.discoversuccess.com" onclick="NewWindow(this.href,'template_window','688','570','yes','center');return false" onfocus="this.blur()"><img src="http://www.discoversuccess.com/img_upload/featImg/quickbooks.jpg" border="0" /></a></div>

The above code works for me in both IE and Firefox.

I'll give that a shot... thanks so much for your time.. I was actually just minutes away from starting the dreaded Google mission . . I'll post the results .... thanks again...

- Vito AKA SBDSTech
http://www.sbdata.net
info@sbdata.net

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.