I’ve added a static page on Ajax toolkits and interesting projects, to be somewhat of a chronicle of projects.
Most recently (from Ajaxian) are Toxic, a PHP Ajax toolkit and CFAjax, one for ColdFusion.
The static page is over on the right, and is linked to: here
I’ve been reading Ajaxian Blog, among others, recently, and here’s a roundup of some Ajax based links I’ve come across.
I’ve been interested in Greasemonkey, a plugin for firefox that lets you customize webpages as you view them. That’s right, it lets you change a webpage or pages on the client, without the server having the slightest clue.
Anyway, I’ve been wanting to learn more about how it works, so when I ran across Dive Into Greasemonkey, I thought, “hey, cool”
So i’m off reading this crap about greasemonkey, now. What will i figure out first, Greasemonkey or Dojo/Ajax?
Ugh. I am too compelled to figure this shit out.
// Input mode
var list = document.getElementById('thelist');
var element = document.createElement("LI");
First off, we get an element named ‘thelist’ — this is the OL or UL tag enclosing your list. Then, we create a new element. In this case, it’s a “LI” element. Next, we use the innerHTML property to set what goes inside the LI and /LI tags — in other words, innerHTML is what’s inside the tags. Finally, we use the appendChild function to add the element we created to the list.
The end result can be seen and tested here.
Overall, it’s a fairly simple but highly effective little technique that you can add to your bag of tricks.