View Full Version : IE Error for Ajax Content

12-31-2009, 08:43 AM
Hi John,

Tried to implement your suggested change, but I get an error on IE - "document.getElementById(...)" is null or not an object

function loadpage(page_request, containerid){
if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))

It is located in a scrollable div with id=maincontent and I tried changing the additional line to reflect that, but still no luck.

Can be viewed at http://www.kirtonauction.co.za/

12-31-2009, 01:14 PM
Note: Moved from thread - http://www.dynamicdrive.com/forums/showthread.php?p=131313#post131313

I moved this because, at least for now, the error appears to have nothing to do with the script mentioned in the above linked post. I don't even think it's a Dynamic Drive script.

Please post new questions in a new thread like here where I've moved this, and:

Warning: Please include a link to the DD script(s) in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.

That all said, that error comes from this bit:

<script language="JavaScript" type="text/javascript">
var show = 1
function blinkit(){
if (show == 1) {
document.getElementById('text').style.color = '#800000';
show=0; }
else {
document.getElementById('text').style.color = '#CCCCCC';
show=1; }
setTimeout("blinkit();",1000); // 1000 ms = 1 sec

<body onload="blinkit(); show_clock();">

There is no element with an id of 'text' on the page.