BackgroundImageCache on a frame

A

Andrew Poulos

In a frameset I have a frame with the ID 'main'. I need to apply IE's
BackgroundImageCache fix to it. When I try the following, in the framset
page, IE gives me the "object doesn't support this property or method"
error.

var doc = document.getElementById("main");

doc.onreadystatechange = function() {
if (doc.readyState == "complete") {
doc.ExecCommand("BackgroundImageCache", false, true);
}
};

How do I run the command on a document in a frame.

Also does IE 7 still need this fix?


Andrew Poulos
 
A

Andrew Poulos

Andrew said:
In a frameset I have a frame with the ID 'main'. I need to apply IE's
BackgroundImageCache fix to it. When I try the following, in the framset
page, IE gives me the "object doesn't support this property or method"
error.

var doc = document.getElementById("main");

doc.onreadystatechange = function() {
if (doc.readyState == "complete") {
doc.ExecCommand("BackgroundImageCache", false, true);
}
};

How do I run the command on a document in a frame.
In fact I can't even get
document.ExecCommand("BackgroundImageCache", false, true);
to work in a normal page. I keep getting the "object doesn't support
this property or method" error.

Andrew Poulos
 
S

scripts.contact

In fact I can't even get
document.ExecCommand("BackgroundImageCache", false, true);
to work in a normal page. I keep getting the "object doesn't support
this property or method" error.

document.execCommand("BackgroundImageCache", false, true);
 
A

Andrew Poulos

scripts.contact said:
document.execCommand("BackgroundImageCache", false, true);
Thanks, I copied it from an MS tech note and I didn't realise that
they'd put the wrong case.

Andrew Poulos
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,269
Latest member
vinaykumar_nevatia23

Latest Threads

Top