amix.dk — AJAX applications are everywhere, and one of the key issues is the speed of rendering HTML. Using innerHTML is not recommended, but DOM can be slow. This JS template system lets you render HTML much faster than standard DOM, while keeping its flexibility.
Aug 11, 2006 View in Crawl 4
sakabakoAug 12, 2006
This week I had the problem where IE was cacheing the responseText from an xmlhttp call, preventing updates. I couldn't believe it.
bornhjAug 12, 2006
Apparently it's non-standard, but it's implemented in every browser I know of anyway. Even better than the XMLHttpRequest object (also non-standard, but not the same in every browser (IE)).
donteAug 12, 2006
Just set some no-cache headers in the response on the server side... problem solved: // Java response.setHeader("Pragma", "No-cache"); response.setDateHeader("Expires", 0); response.setHeader("Cache-Control", "no-cache");I use all 3 headers because various browsers seem to look for different headers to determine if it should be cached.
amixAug 12, 2006
"Why is this being done client-side? Shouldn't it be on the server-side?"The advantages to code some of the HTML client-side:* Performance: Your server will choke if you render everything server-side.* Dynamic UI: It's easier to create it using dHTML than using pure HTML.* Bandwidth: JSON or XML data is a lot smaller than pre-rendered HTML.
fabriciomAug 12, 2006
@geronimoSo, since you?ve written ?tons of JS code? you already where creating JS templates and using AJAX before it was hyped into what it is now, right? Very nice insight into your personality you?ve just showed us (Read Psychology of Everyday Life by Sigmund Freud). As for the spam comment, it?s just my signature no one is forcing you to click on it. If I where you I would do something about that stress or repressed hatred you have going on.-Fabricio Martinez-<a class="user" href="http://www.fabtechsolutions.com">http://www.fabtechsolutions.com</a>
inkswampAug 13, 2006
The Web is just too new to become a Luddite about it. While some adherence to standards is a good thing, too much can throttle progress. Whether innerHTML was standards or not didn't enter into my comments because I think it's irrelevant. When something is as widespread in usage as that, it's standards. Period.
inkswampAug 13, 2006
> A significant part of the problem many people have with innerHTML> is that it was originally a Microsoft IE proprietory property. I doubt that's the case. But even assuming you're right, then you have to consider that the main reason people hate MS is because they do these kinds of things in the first place, so your argument is a bit circular. And anyway, I loathe MS and I'm perfectly comfortable with innerHTML so I present myself as a counter example. The arguments againt innerHTML are valid from a certain perspective, but I don't adhere to that point of view for many reasons. The primary reason is that, underneath the argument, is the idea that we dumb Web developers have to be saved from ourselves. Well, pardon me. I understand the problems with innerHTML and I use it anyway. Then again, I code carefully enough to where the "messy HTML" issue never becomes a problem with what I write. On a certain level, I resent the attitude that I'm just too dumb to use something like innerHTML.
h3smithAug 17, 2006
Personally, my website/application I don't support older browsers. I refuse to. But then again, I don't think someone using IE 5 will be advanced enough to want to use my webapp anyway to store personal data...
erikumaSep 5, 2006
The link doesn't work anymore.
yogastoreJun 27, 2008
<a class="user" href="http://astore.amazon.com/la.crosse.atomic.clock-20">http://astore.amazon.com/la.crosse.atomic.clock-20</a><a class="user" href="http://astore.amazon.com/la.crosse.technology.wireless.weather.station-20">http://astore.amazon.com/la.crosse.technology.wire ...</a><a class="user" href="http://astore.amazon.com/upright.bagless.vacuum-20">http://astore.amazon.com/upright.bagless.vacuum-20</a><a class="user" href="http://astore.amazon.com/dyson.upright.vacuum-20">http://astore.amazon.com/dyson.upright.vacuum-20</a><a class="user" href="http://astore.amazon.com/hoover.bagless-20">http://astore.amazon.com/hoover.bagless-20</a><a class="user" href="http://astore.amazon.com/hoover.canister-20">http://astore.amazon.com/hoover.canister-20</a><a class="user" href="http://astore.amazon.com/pyrex.storage-20">http://astore.amazon.com/pyrex.storage-20</a><a class="user" href="http://astore.amazon.com/pyrex.storage.lids-20">http://astore.amazon.com/pyrex.storage.lids-20</a><a class="user" href="http://astore.amazon.com/inflatable.bed-20">http://astore.amazon.com/inflatable.bed-20</a><a class="user" href="http://astore.amazon.com/aerobed.inflatable.bed-20">http://astore.amazon.com/aerobed.inflatable.bed-20</a>
yenta4shopSep 7, 2008
<a class="user" href="http://www.yenta4shop.co.uk/">http://www.yenta4shop.co.uk/</a><a class="user" href="http://astore.amazon.com/12.volt.battery.charger-20">http://astore.amazon.com/12.volt.battery.charger-2 ...</a><a class="user" href="http://astore.amazon.com/5.gallon.water.bottle-20">http://astore.amazon.com/5.gallon.water.bottle-20</a><a class="user" href="http://astore.amazon.com/aerobed.raised-20">http://astore.amazon.com/aerobed.raised-20</a><a class="user" href="http://astore.amazon.com/bug.zapper-20">http://astore.amazon.com/bug.zapper-20</a><a class="user" href="http://astore.amazon.com/flowtron.insect.killer-20">http://astore.amazon.com/flowtron.insect.killer-20</a><a class="user" href="http://astore.amazon.com/furniture.chaise.lounge-20">http://astore.amazon.com/furniture.chaise.lounge-2 ...</a><a class="user" href="http://astore.amazon.com/inflatable.bed-20">http://astore.amazon.com/inflatable.bed-20</a><a class="user" href="http://astore.amazon.com/steam.cleaner.mop-20">http://astore.amazon.com/steam.cleaner.mop-20</a>