Dynadot Black Friday and Cyber Monday 2026: save more on domains. See our sales.

IE and JS problem.

SpaceshipSpaceship
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
Close
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
Close
Appraise.net

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

New: watch any domain
You can now watch domains on NamePros. We check each one and notify you when something changes. Search for a domain and press Watch on...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back