Post Archive

› November 23, 2005

Filler Text: On Demand. Revisited.

  • Reported by Silus Grok

Because I use filler text in my web templates, I was absolutely enthralled by Alessandro's idea for a javascript-enabled auto-fill solution... but I thought that it might benefit from another approach. So I and a couple friends talked about it, and we came up with FILLER TEXT.

Read about it more on my blog.

The files, though, are here:

The Javascript

The test document: BEFORE and AFTER.

I'd love y'all's feedback, of course.

I'm especially interested in ways to streamline the javascript, or in problems with the "recipe" syntax.

Comments

1. November 24, 2005 01:01 AM

Quote this comment

Alessandro Fulciniti Posted…

Hi Silus, a very nice work! I'm wondering why it doesn't work on IE...

2. November 24, 2005 01:22 AM

Quote this comment

Paul Huff Posted…

The javascript works just fine in IE. The test document that's posted here has the script tag written in such a way that IE barfs on it and doesn't load the script properly. Try changing it to and it should work just fine in IE...

3. November 24, 2005 01:04 PM

Quote this comment

Silus Grok Posted…

My apologies... there was a typo in the SCRIPT tag in the test.html which we caught and fixed, and then I went and uploaded an older version of the document. It should work just fine, now, in IE/Windows. (For the curious, we accidentally used single quotes for the attributes... which IE/Windows did not like. Changing the single quotes to double quotes fixed it.)

4. November 25, 2005 12:03 PM

Quote this comment

Paul Huff Posted…

Doh! I put a script tag in without doing > and <... That's what happens when you comment at 1:30 in the morning...

Anyway, it wasn't single quotes vs. double quotes, it was the singleton xml tag for <script> that IE didn't like. I have a feeling that has to do with bad standards compliance, because isn't there a doc-type where singleton tags aren't allowed? Seems like IE has that turned on for whatever doc-type we're using too...