Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-05-2008, 09:10 PM
designer_80
 
Posts: n/a
Need iFrame Help!

Firefox is fine but Internet Explorer is not showing the iframes. Is there a
possible fix or solution? Scrolling iframes don't scroll and some with images
don't show anything?

I could really use some help.
Thanks.

Reply With Quote
  #2 (permalink)  
Old 08-05-2008, 09:24 PM
Nancy O
 
Posts: n/a
Re: Need iFrame Help!

Here's basic iframe code to insert into your page:

<iframe name="frame1" id="frame1" src="yourpage.html" scrolling="auto"
frameborder="0" width="500" height="500">Your browser does not support
iframes, please upgrade to a modern browser that does.</iframe>



--Nancy O.
Alt-Web Design & Publishing
www.alt-web.com






"designer_80" <webforumsuser@macromedia.com> wrote in message
news:g7ac2s$dpn$1@forums.macromedia.com...
> Firefox is fine but Internet Explorer is not showing the iframes. Is there

a
> possible fix or solution? Scrolling iframes don't scroll and some with

images
> don't show anything?
>
> I could really use some help.
> Thanks.
>



Reply With Quote
  #3 (permalink)  
Old 08-05-2008, 09:40 PM
designer_80
 
Posts: n/a
Re: Need iFrame Help!

I tried IE7 but its not showing the iframes as well...? I know firefox is the better browser but there is a big number of people who still use IE.

Can anyone help?
Reply With Quote
  #4 (permalink)  
Old 08-05-2008, 09:56 PM
Nancy O
 
Posts: n/a
Re: Need iFrame Help!

How about posting a URL to your page so we can see the code and what else
may be going on.

--Nancy O.
Alt-Web Design & Publishing
www.alt-web.com


"designer_80" <webforumsuser@macromedia.com> wrote in message
news:g7ads0$fs9$1@forums.macromedia.com...
> I tried IE7 but its not showing the iframes as well...? I know firefox is

the better browser but there is a big number of people who still use IE.
>
> Can anyone help?



Reply With Quote
  #5 (permalink)  
Old 08-06-2008, 03:46 AM
designer_80
 
Posts: n/a
Re: Need iFrame Help!

<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>

<script type="text/javascript">
/***********************************************
* IFrame SSI script II- ? Dynamic Drive DHTML code library
(http://www.dynamicdrive.com)
* Visit DynamicDrive.com for hundreds of original DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//Input the IDs of the IFRAMES you wish to dynamically resize to match its
content height:
//Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or
["myframe"] or [] for none:
var iframeids=["myframe"]

//Should script hide iframe from browsers that don't support this script (non
IE5+/NS6+ browsers. Recommended):
var iframehide="yes"

var
getFFVersion=navigator.userAgent.substring(navigat or.userAgent.indexOf("Firefox"
)).split("/")[1]
var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px
to add to iframe in FireFox 1.0+ browsers

function resizeCaller() {
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){
if (document.getElementById)
resizeIframe(iframeids[i])
//reveal iframe for lower end browsers? (see var above):
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeids[i]] :
document.getElementById(iframeids[i])
tempobj.style.display="block"
}
}
}

function resizeIframe(frameid){
var currentfr=document.getElementById(frameid)
if (currentfr && !window.opera){
currentfr.style.display="block"
if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight)
//ns6 syntax
currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextr aHeight;
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+
syntax
currentfr.height = currentfr.Document.body.scrollHeight;
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false)
else if (currentfr.attachEvent){
currentfr.detachEvent("onload", readjustIframe) // Bug fix line
currentfr.attachEvent("onload", readjustIframe)
}
}
}

function readjustIframe(loadevt) {
var crossevt=(window.event)? event : loadevt
var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget :
crossevt.srcElement
if (iframeroot)
resizeIframe(iframeroot.id);
}

function loadintoIframe(iframeid, url){
if (document.getElementById)
document.getElementById(iframeid).src=url
}

if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
x.src=x.oSrc;
}
</script>
</head>
<body>

<td width="219" height="307" valign="top"><iframe id="myframe"
src="class_est_charleston_map_cin.html" scrolling="yes" marginwidth="0"
marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible;
width:100%; height:306px; display:none"></iframe>
<td width="5" valign="top"><div align="right"><img
src="images/doors_line.jpg" width="5" height="283" /> </div></td>
<td width="38" valign="top"><img src="../../images/spacer.gif"
alt="" width="39" height="1" /></td>
<td width="76" valign="top"><a
href="javascript:loadintoIframe('myframe',
'class_est_charleston_map_coc.html')" target="_top"
onclick="MM_nbGroup('down','group1','swatchesmaple countryoff','images/swatches_m
aple_country_on.jpg',1)"
onmouseover="MM_nbGroup('over','swatchesmaplecount ryoff','images/swatches_maple_
country_over.jpg','',1)" onmouseout="MM_nbGroup('out')"></a><a

Reply With Quote
  #6 (permalink)  
Old 08-06-2008, 09:07 PM
Nancy O
 
Posts: n/a
Re: Need iFrame Help!

I see you are using a javascript to resize the iframe on page load according
to the src's content height. I know this script works because I have it
working on this page, but when you agressively resize viewport or text size,
you will need to refresh the page (F5) so the script can recalculate the
iframe's height.
http://alt-web.com/Backgrounds.shtml

Try this in your html:

<iframe name="myframe" id="myframe" src="class_est_charleston_map_cin.html"
scrolling="auto" allowtransparency="true" frameborder="0"
style="overflow:auto; width:100%; display:none">Your browser does not
support iframes, please upgrade to a modern browser that does.</iframe>

HTH,
--Nancy O.
Alt-Web Design & Publishing
www.alt-web.com


"designer_80" <webforumsuser@macromedia.com> wrote in message
news:g7b39s$7uj$1@forums.macromedia.com...
> <script src="Scripts/AC_RunActiveContent.js"

type="text/javascript"></script>
>
> <script type="text/javascript">
> /***********************************************
> * IFrame SSI script II- ? Dynamic Drive DHTML code library
> (http://www.dynamicdrive.com)
> * Visit DynamicDrive.com for hundreds of original DHTML scripts
> * This notice must stay intact for legal use
> ***********************************************/
>
> //Input the IDs of the IFRAMES you wish to dynamically resize to match

its
> content height:
> //Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or
> ["myframe"] or [] for none:
> var iframeids=["myframe"]
>
> //Should script hide iframe from browsers that don't support this script

(non
> IE5+/NS6+ browsers. Recommended):
> var iframehide="yes"
>
> var
>

getFFVersion=navigator.userAgent.substring(navigat or.userAgent.indexOf("Fire
fox"
> )).split("/")[1]
> var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in

px
> to add to iframe in FireFox 1.0+ browsers
>
> function resizeCaller() {
> var dyniframe=new Array()
> for (i=0; i<iframeids.length; i++){
> if (document.getElementById)
> resizeIframe(iframeids[i])
> //reveal iframe for lower end browsers? (see var above):
> if ((document.all || document.getElementById) && iframehide=="no"){
> var tempobj=document.all? document.all[iframeids[i]] :
> document.getElementById(iframeids[i])
> tempobj.style.display="block"
> }
> }
> }
>
> function resizeIframe(frameid){
> var currentfr=document.getElementById(frameid)
> if (currentfr && !window.opera){
> currentfr.style.display="block"
> if (currentfr.contentDocument &&

currentfr.contentDocument.body.offsetHeight)
> //ns6 syntax
> currentfr.height =

currentfr.contentDocument.body.offsetHeight+FFextr aHeight;
> else if (currentfr.Document && currentfr.Document.body.scrollHeight)

//ie5+
> syntax
> currentfr.height = currentfr.Document.body.scrollHeight;
> if (currentfr.addEventListener)
> currentfr.addEventListener("load", readjustIframe, false)
> else if (currentfr.attachEvent){
> currentfr.detachEvent("onload", readjustIframe) // Bug fix line
> currentfr.attachEvent("onload", readjustIframe)
> }
> }
> }
>
> function readjustIframe(loadevt) {
> var crossevt=(window.event)? event : loadevt
> var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget :
> crossevt.srcElement
> if (iframeroot)
> resizeIframe(iframeroot.id);
> }
>
> function loadintoIframe(iframeid, url){
> if (document.getElementById)
> document.getElementById(iframeid).src=url
> }
>
> if (window.addEventListener)
> window.addEventListener("load", resizeCaller, false)
> else if (window.attachEvent)
> window.attachEvent("onload", resizeCaller)
> else
> window.onload=resizeCaller
>
> function MM_swapImage() { //v3.0
> var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
> for(i=0;i<(a.length-2);i+=3)
> if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
> x.oSrc=x.src; x.src=a[i+2];}
> }
> function MM_swapImgRestore() { //v3.0
> var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
> x.src=x.oSrc;
> }
> </script>
> </head>
> <body>
>
> <td width="219" height="307" valign="top"><iframe

id="myframe"
> src="class_est_charleston_map_cin.html" scrolling="yes" marginwidth="0"
> marginheight="0" frameborder="0" vspace="0" hspace="0"

style="overflow:visible;
> width:100%; height:306px; display:none"></iframe>
> <td width="5" valign="top"><div align="right"><img
> src="images/doors_line.jpg" width="5" height="283" /> </div></td>
> <td width="38" valign="top"><img

src="../../images/spacer.gif"
> alt="" width="39" height="1" /></td>
> <td width="76" valign="top"><a
> href="javascript:loadintoIframe('myframe',
> 'class_est_charleston_map_coc.html')" target="_top"
>

onclick="MM_nbGroup('down','group1','swatchesmaple countryoff','images/swatch
es_m
> aple_country_on.jpg',1)"
>

onmouseover="MM_nbGroup('over','swatchesmaplecount ryoff','images/swatches_ma
ple_
> country_over.jpg','',1)" onmouseout="MM_nbGroup('out')"></a><a
>



Reply With Quote
  #7 (permalink)  
Old 08-07-2008, 01:21 PM
designer_80
 
Posts: n/a
Re: Need iFrame Help!

Nancy O,
I'm at work on a mac so I don't know if it fixed it yet. But just on a side
note my iframes issue is also occuring in safari on the mac... :( but your
revised code seems to still work in FF.

iframe should work in IE7 correct? for some reason the page that goes in the
iframe is not loading.... (still investigating)

Any other suggestions would be great...

Reply With Quote
  #8 (permalink)  
Old 08-07-2008, 02:11 PM
designer_80
 
Posts: n/a
Re: Need iFrame Help!

The pages that should open in the iframes are blank like the following;

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>lexington_maple_cinnamon</title>
<style type="text/css">
<!--

@import url("../../ayasite.css");
body {
background-image: url(images/door_bg.jpg);
margin-top: 0px;
margin-right: 0px;
margin-left: 0px;
}
</style>
</head>

<body class="text">
<table width="219" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->

<tr>
<td width="219" height="236" valign="top"
background="images/door_lexington_cin_map.jpg"><p><br />
</p></td>
</tr>

<tr>
<td height="47" valign="top"><div align="center">
<p class="smalltext">* Also available in <a
href="../species/handfinishes_wood.html" target="_parent"
class="smalltext">Mocha, Frosted and<br />
Blackened</a> versions of this finish.</p>
</div></td>
</tr>
</table>
</body>

</html>

Reply With Quote
  #9 (permalink)  
Old 08-07-2008, 05:39 PM
designer_80
 
Posts: n/a
Re: Need iFrame Help!

If I remove the tables in the page that is getting loaded into the iframe I am
able to then see the page. But I then get scroll bars.. and the layout
breaks... :(

Weird thing is some pages have tables and they still load in an iframe. ???

Reply With Quote
  #10 (permalink)  
Old 08-07-2008, 06:30 PM
Nancy O
 
Posts: n/a
Re: Need iFrame Help!

designer_80,
You really need to post a URL to the site. I can't make out what is
happening from your snippets of code. To give meaningful feedback, I need
to see the working iframe page, and the src page being called into the
iframe.


--Nancy O.
Alt-Web Design & Publishing
www.alt-web.com





"designer_80" <webforumsuser@macromedia.com> wrote in message
news:g7f8gh$1rv$1@forums.macromedia.com...
> If I remove the tables in the page that is getting loaded into the iframe

I am
> able to then see the page. But I then get scroll bars.. and the layout
> breaks... :(
>
> Weird thing is some pages have tables and they still load in an iframe.

???
>



Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:28 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Loans | Bad Credit Mortgages | Credit Cards | Internet Advertising | Mobile Phone



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114