...

View Full Version : Resolved Remote JavaScript Causes iFrame Resize Failure



Cognscenti
05-31-2009, 05:10 AM
Can anyone help me figure what kind of criteria I should use to search this forum for a clue as to my dilema?

My page ( with inline JavaScript ) does what I want it to.

Remotely hosting the Javascript causes the iFrame re-size action to fail.

Thanks to all of the members in advance for their "two-cents" regarding this thread.


~~~


> Inline JavaScript Example

http://wxw.nfshost.com


- HTML Code -



<html>
<head>
<title>Inline JavaScript Example</title>
</head>
<body>

<script type="text/javascript">
window.onload=function()
{
var iframe=document.getElementById('iframe');
iframe.style.width='90%';
iframe.style.height='90%';
}
</script>

<center>
<iframe src="player.swf" id="iframe"></iframe>
</center>

</body>
</html>



~~~


> Remote JavaScript Example

http://wyw.nfshost.com (http://wyw.nfshost.com/)


- HTML Code -



<html>
<head>
<title>Remote JavaScript Example</title>
</head>
<body>

<script type="text/javascript" scr="http://wzw.nfshost.com/iframeresizer.js"></script>

<center>
<iframe src="player.swf" id="iframe"></iframe>
</center>

</body>
</html>



+++++++++++++


> Remote JavaScript Example

iframeresizer.js (http://wzw.nfshost.com/iframeresizer.js)


- JavaScript -



window.onload=function()
{
var iframe=document.getElementById('iframe');
iframe.style.width='90%';
iframe.style.height='90%';
}



~~~

Old Pedant
05-31-2009, 08:33 AM
Ready to kick yourself??



<script type="text/javascript" scr="http://wzw.nfshost.com/iframeresizer.js"></script>


Hmmm...maybe "scr" stands for "screwup"? (Sorry...cheap shot.)

Cognscenti
05-31-2009, 04:47 PM
Indeed!


scr="http://www.maybe-code-with-my-eyes-open-from-now-on.ugh

Thank you for your cheap shot! ;-D



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum