Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

IE and JS problem.

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
NamecheapNamecheap
Watch

Barrucadu

Established Member
Impact
64
The following function just dosn't work in IE:
Code:
function getStats(url){
	var loadingtext = "<img src=\"img/load.gif\" alt=\"Loading...\"\>";

	document.getElementById('backlinks').innerHTML = document.getElementById('backlinks').innerHTML + "<tr><td>" + url + "</td><td id=\"getBacklinksGoogle" + rows + "\">" + loadingtext + "</td><td id=\"getBacklinksYahoo" + rows + "\">" + loadingtext + "</td></tr>";
	
	document.getElementById('indexedpages').innerHTML = document.getElementById('indexedpages').innerHTML + "<tr><td>" + url + "</td><td id=\"getGoogleIndex" + rows + "\">" + loadingtext + "</td><td id=\"getGoogleImagesIndex" + rows + "\">" + loadingtext + "</td><td id=\"getLiveIndex" + rows + "\">" + loadingtext + "</td><td id=\"getYahooIndex" + rows + "\">" + loadingtext + "</td></tr>";
	
	document.getElementById('rankings').innerHTML = document.getElementById('rankings').innerHTML + "<tr><td>" + url + "</td><td id=\"getAlexaRank" + rows + "\">" + loadingtext + "</td><td id=\"getPageRank" + rows + "\">" + loadingtext + "</td><td id=\"getTechnoratiRank" + rows + "\">" + loadingtext + "</td></tr>";
	
	document.getElementById('domain').innerHTML = document.getElementById('domain').innerHTML + "<tr><td>" + url + "</td><td id=\"getCreated" + rows + "\">" + loadingtext + "</td><td id=\"getExpires" + rows + "\">" + loadingtext + "</td></tr>";
	
	document.getElementById('metadata').innerHTML = document.getElementById('metadata').innerHTML + "<tr><td>" + url + "</td><td id=\"getDescription" + rows + "\">" + loadingtext + "</td><td id=\"getKeywords" + rows + "\">" + loadingtext + "</td><td id=\"getTitle" + rows + "\">" + loadingtext + "</td></tr>";
	
	document.getElementById('validators').innerHTML = document.getElementById('validators').innerHTML + "<tr><td>" + url + "</td><td id=\"checkCSS" + rows + "\">" + loadingtext + "</td><td id=\"checkHTML" + rows + "\">" + loadingtext + "</td></tr>";
	
	getRequest('getBacklinksGoogle', url, rows);
	getRequest('getBacklinksYahoo', url, rows);
	getRequest('getGoogleIndex', url, rows);
	getRequest('getGoogleImagesIndex', url, rows);
	getRequest('getLiveIndex', url, rows);
	getRequest('getYahooIndex', url, rows);
	getRequest('getAlexaRank', url, rows);
	getRequest('getPageRank', url, rows);
	getRequest('getTechnoratiRank', url, rows);
	getRequest('getCreated', url, rows);
	getRequest('getExpires', url, rows);
	getRequest('getDescription', url, rows);
	getRequest('getKeywords', url, rows);
	getRequest('getTitle', url, rows);
	getRequest('checkCSS', url, rows);
	getRequest('checkHTML', url, rows);

	rows = rows + 1;
}

I'm pretty sure it's the innerHTML lines, because placing an alert just before and after the first one results in the alert placed before running, but not the one after.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
It's ok, i've found a solution. I made a function to append a row with the cells I specify to the end of a table using DOM, since IE wasn't happy with using innerHTML.
 
0
•••
CatchedCatched

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover

NamePros updates

New in Parking: updated way to act on many domains or inquiries at once
Your domain list and inquiry list now have a bar above and below the list. Check the items you want, then choose an action in the bar...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back