1.

Solve : Javascript isn't reloading if Iframe is different.?

Answer»

Code: [Select]if(document.all.D1.document.all.ReadURL.innerHTML != document.all.ReadURL.innerHTML) {
window.location.reload(TRUE);
}
else {
setTimeout('reload()', 100);
}

D1 is an Iframe. ReadURL is in both pages. It's the DIV that has the contents. It keeps thinking its the same, even if it's truely not..Something doesn't feel right about this: document.all.D1.document.all.ReadURL.in nerHTML

Can you traverse down through the contents of an IFRAME like this?  Or do you not have to rely on callbacks from the CONTENT within the IFRAME to the PARENT window?

See my other response for ways to make life easier for yourself.



Discussion

No Comment Found