Archive for September, 2005

Ajax, Ajax, Ajax

Friday, September 30th, 2005

First, Let Me Say…
Ajax.
Ajax, Ajax, Ajax.
There I said it. Like the programmer in the OK/Cancel cartoon, I didn’t want to say it, but now I’ve said it. I said it once. I said it thrice. I’ll say it again. Ajax. I’ll call it, Ajax. Jesse James Garrett is not a bad guy. Packaging an idea […]

innerHTML Quirk / List Items With Inline Display

Thursday, September 29th, 2005

With this markup…
<ul id=”list”>
<li class=”tag”>a</li>
<li class=”tag”>b</li>
</ul>
…and this CSS…
li.tag {
display: inline;
}
… everything looks fine. You get a list that says “a b” as you’d expect.
However, if you do…
document.getElementById(”list”).innerHTML = ‘<li class=”tag”>a</li>n<li class=”tag”>b</li>’
In Gecko you’ll get your “a b” but in IE 6 you’ll get “ab”. No spacing.
After a […]

Not WordPress

Wednesday, September 28th, 2005

Not doing it for me. Same problem as as before. No place for idea capture. This can’t be both a place to record notes on development, and a place to introduce msyelf to other people. In this regard blogging is fundimentally flawed.
Tagging doesn’t fix it either.
There are dozen ideas about Ajax right now, and I […]

Relay and JavaScript Generators

Wednesday, September 28th, 2005

Relay pipelines and XSLT 2.0 make for some nifty resue of code.
I’m using XSLT 2.0 to generate JavaScript objects from XML. The JavaScript objects can be evaluated on the client site to perform actions in response to UI events, or in response to updates from XMLHttpRequest.
Here is a base example. For each article in […]

Code Example

Wednesday, September 28th, 2005

This is example code using Code Markup.
<xml example=”true”/>
This is Java.

for (int i = 0; i < 10; i++)
{
System.out.println(”Hello, World! ” + i);
}

Ivy Demos

Tuesday, September 27th, 2005

To get going with Ivy, I added dependency resolution to two projects that don’t have it already. BSF 3.0 and Mozilla Rhino.
Here’s an example build of BSF 3.0…

svn co http://engrm.com/svn/track/trunk/apache/jakarta/bsf/bsf3
cd bsf3
cp ivy-1.2a.jar $ANT_HOME/lib
ant

That one copy step could be omitted, since I expect everyone will have Ivy installed in the year to come.
The result is a […]

Testing Ecto

Tuesday, September 27th, 2005

I’m testing Ecto with this post. I’m looking for ways to insert code into posts, create real posts. Having to escape my XML is a real pain in the patouk.
So here goes…
// This is a test of the emergency broadcast system.
// This is only a test.
for (int i = 0; i < 10; i++)
{
[…]

To Each His Own

Tuesday, September 27th, 2005

Couple days back I posted about how I don’t like Maven, and how I feel that Maven is not good for open source development.
If it’s one thing that I’ve learned in this last month, it’s that different systems have different advantages. Web chat boards loose information, for example, but that only means that people will […]

Dear Diary

Tuesday, September 27th, 2005

I’m looking forward to having Think New Orleans running.
The new software is going to be the basis of The Engine Room blog. I’m going to be blogging in the small, to record decisions. Using a blog as a developer’s notebook. Blog entries are not articles, and don’t require a title, or snappy writing.
There are so […]

script.aculo.us Design Patterns

Tuesday, September 27th, 2005

It probably needs a name. It works.
I didn’t think it would work at first. It appeared to want to create a parallel object model to the DOM, but now I see that it is about creating controllers.
Last I programmed in JavaScript, I’d used event bubbling extensively. Often I’d attach an event handler to a document […]