Unstoppable Domains โ€” Get your daily AI drops report

IE and JS problem.

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Spacemail by SpaceshipSpacemail by Spaceship
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.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
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
•••
Truehost โ€” .com domains from $4.99, hosting includedTruehost โ€” .com domains from $4.99, hosting included
Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back