Hinclude
I am experimenting with mnot's hx:include mechanism. This works very nice and I already use it on our company blog.
There seems to be a bug in Firefox 1.5.0.3 which prevents <div> tags from being replaced properly. When the content fetched be hinclude arrives, it is merely inserted just before the div. Replacing text or spans works fine. Internet Explorer 6 does not show this bug.
This is what i want to do:
<hx:include src="tests/network.snip">
<div class="loading">Loading Network Check...</div>
</hx:include>
The reason I used a div is that it allows me to show it at 100% width. Eye candy. The version I do have working now is this one:
<div class="loading">
<hx:include src="tests/network.snip">Loading Network Check...</hx:include>
</div>
which is a little fake. The loaded html snippet has its own div and a opaque background style so that the loading div is just overshadowed. Not so flexible.
So I tried to hack enhance Mark's script be removing all child elements before setting the innerHtml. No effect.
Any other idea? Someone?
