I am having problems changing the src attribute on iFrames, is/was this not a supported attribute in IE7? Because of the number of people still using XP, and IE7, I need this to work. The error message I am getting out of IE7 is:
Line 24, Char 4, error: 'document.getElementById(...)' is null...
Odd as it seems, I have the resizing working everywhere except IE9. I've tried everything I can think of, and everything I could find searching to no avail.
Here is the site: Link
Here is the resize code:
<script type="text/javascript">
function iFrameHeight(iframeName)
{
var body =...
I have a script trying to change the height in an object tag. It is working in most browsers but a few, like IE7 are tossing an error:
Here is the script, the line with the obj.height is what is causing the problem. I tried changing the setting of obj to getElementByTagName and it works (no...
The code below is to test for IE7 or 8 to inform the viewer of incompatibility, but it doesn't work. The first alert does show 7 or 8, but the second alert never displays, I have tried it as 7.0 and just 7.
function versionCheck() {
var rv = -1;
if (navigator.appName == 'Microsoft Internet...
I have just about everything working on th site (Link), except for IE8 (9&10 work fine). Is there a way to get the object tag to work in IE8?
<object id="objContent" data="Home/Prayer.html" width="100%" height="100%" type="text/html"></object>
The problem is that IE8 doesn't load the page...
I'm trying to change the data reference onap an object, but it's not working. Any idea what's wrong with the code?
<HEAD>
<script type="text/javascript">
function setContent(btn) {
alert("made it");
document.getElementById("Content").data = "Home/AboutUs.html";
return;
}
</script>
</HEAD>...
For the most part it works, but the text to be sent via the onclick is held in an array. When the code executes it transfers the name of the array, not it's contents. How do I fix that?
e.onclick = function() {update(ary[l][0]);};
Let all bear in mind that a society is judged not so much by...
I ran the code below through the W3C validation and received two errors, which I am at a loss to understand. Code is below the errors.
Line 23, Column 6: document type does not allow element "BODY" here
Line 63, Column 7: end tag for "HTML" which is not finished
<!DOCTYPE HTML PUBLIC...
I know this topic has been done a lot, but what I have tried does not seem to work well, at least in my situation.
Here is my development site: Link
What should happen is that the left side (Father's Prayer) should resize to fit the content. The content is located in different pages, all on my...
Hi, newbie here.
I am in the process of revising a website, one of the tasks is to create a pair of buttons which, when clicked, will set the href for other buttons on the page. I have a sample code, but for some reason the target href is not being changed. When I click on "Click", then on...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.