In case you were watching me build a web2.0 website from scratch over time, here’s a little update.
Search engine friendly urls are now working. ex: http://2009.webveteran.com/about-freelance-web-development/home/
Ajax loading is 50% done. The main contents change so far (not page title or sidebar contents). To see it see it work, load the home page, then click on ‘Home’.
The Experiment
ajax, cms, sef, seo
I had this crazy idea, and I think I’m going to try it! I started to build a new website for myself… long overdo from almost three years ago. And I figured, ‘why not do so publicly?’ Sure it’s like dropping my drawers, but I’m confident although I know I am not the absolute best. But I think it would be interesting… at least, I think it would be to watch someone else do so.
The completed site will be/have:
- web2.0 layout and functionality
- coldFusion, ajax, scriptaculous, javascript sound
- custom cms with plugin architecture (I might open this up as well)
- seo + sef urls
- one page load navigation (ajax)
So without further wait, please visit 2009.webveteran.com to take part in the experiment. Comment and criticisms are welcome and appreciated.
Keep in mind, this is a site entirely in development! What you will see occasionally:
- broken links
- broken content
- dummy text
- images as test text
Heck, you might even see a table or two (gasp). You’ll probably also see me change libraries every now and then (as was the case with the scroller). And of course there may be days without any progress whatsoever. Subscribe to this blog or my twitter account to keep updated!
[sigh] here we go…
News, The Experiment
ajax, cms, ColdFusion, experiment, JavaScript, plugin, Scriptaculous, sef urls, seo, site building, web development
It’s been asked that I release the source of CFup. Initially I was not comfortable doing so as I threw it together as a test of concept. Certainly nt my best work! Feeling inspired I cleaned up some of the code – mostly just so the ajax routines don’t clash – and uploaded it to github. Now anyone can download it, try it out, and contribute. I’m excited to see what optimizations and cleanups can be done to it. So if you’re interested in kicking the tires or helping develop it, check it out on github: http://github.com/WebVeteran/CFup/
CFup
ajax, ColdFusion, github, JavaScript
While working on the File Manager, and the upload function in particular, I had in mind to create a nice upload progress indicator. And I don’t want to use Flash, Java, or anything special installed on the server. So this is what I came up with:
It seems pretty magical at first. But after I break it down here, you might think “oh yeah… easy!”. Here are the steps it takes to pull it off:
- Reset all variables and labels.
- Ask CF for the list of files in the temp dir.
- Start the upload, and start the timer.
- Using the list of files above, ask CF if the list has changed yet. Do this every second until a change is noticed. When a difference is reported, that is our upload-in-progress file. For this I used a CF function called ListDiff by Ivan Rodriguez. It compares lists (in this case, our initial and current dir) and returns the difference.
- Every second, ask CF for the size of that file.
- Update the labels with the information every second (size, time, size/time). Use prototype to tween the size in 0.8s.
- On the upload action page use a JS to stop the timer and report the success.
There is a bunch of optimization to be had. Mostly in the ajax calls which, although they have fault tolerance, aren’t to smart about it. And also in the management of when ajax calls are made (there is a chance they can step on each others’ toes).
The final product to be entered into the file manager will of course be much more subtle than this. Simply displaying the Size and Speed. When the upload is done, everything goes away.
For your convenience, I updated Visual Code Editor to have TinyMCE accept iframes and I put the live demo in one below. But if you prefer, here is a direct link: ColdFusion file upload progress.
So… what should I call this thing? CFup?
CFup, ColdFusion, JavaScript, Scriptaculous
ajax, file upload, progress
Recent Comments