Web Hosting Reviews for Affiliate Marketers

Unlimited Shared hosting & Unlimited Disk Space from $5.95 - Dreamhost
Solid Managed VPS with 4 IP's from $60 - Liquid Web
Lightning Fast Dedicated Servers & 1GB RAM from $149 - Liquid Web
#1 Domain Registration with WHOIS Privacy - Just $9.95

The Dreamhost web hosting thread below was started by msherwoo on 2009-10-23 14:00:17:

Post Reply? Not real familar with Javascript. But I think this is easy. Using sortable from Stuart Langridge, http://www.kryogenix.org/code/browser/sorttable/ but I believe this to be a general Javascript question. Sortable is a table sorting function. He uses the following line to choose whether to display a webdings font 5 (which is an up arrow) or the unicode equivalent, depending on whether it is IE. At least that’s what I think this line is doing: sortrevind.innerHTML = stIsIE ? ‘&nbsp<font face=”webdings”>5</font>’ : ‘&nb__sp;&#x25__B4;’; (I inserted 2 underscores above so the browser doesn’t render this code. ) where stIsIE is defined as: var stIsIE = /*@cc_on!@*/false; whatever that means. I believe this is a workaround for IE 6 and 7 since they don’t display this unicode character properly. But the problem is that with IE8 it will display the unicode properly, but it won’t display the webdings properly (it shows it as a “5″). So, I think I need a way to distinguish between IE 8 and earlier versions and then use either webdings or unicode depending. And basically, I have no idea how to do that or even if that is the right approach. Thus, help requested. if more code extracts are needed, the whole script is available from his site http://www.kryogenix.org/code/browser/sorttable/ Thanks, Mike

Join in on the original post at the Dreamhost Forum, Apply for a Dreamhost Account or view our Dream Host Review.

Related Web Host Reviews


Close
E-mail It