Sometimes you do what you have to do. No posts for a little while because a project came up that was due yesterday so I had to hunker down and get it done. I’m getting too old for the all night coding sessions, but did stay up until 3am a few nights. (Sorry Jen, but you know I gotta pay the mortgage somehow!)
On the plus side, I was able to use a bunch of cool technologies to design this particular site. Since I didn’t have direct access to a database and had to use ASP, I used an XML file as the database and XSL to format the site from the database. Since I’ve been doing mostly backend work in the last few years, I also got a real crash course in CSS and DHTML.
I must say that the site looks really nice in IE and Firebird.
Also, the admin site was some really cool code – I know HTML forms are not the best way to capture data, but the browser is really great in some cases. I can be a perfectionist when it comes to layout and I took a lot of time getting my text boxes to look cool. Since I could dictate IE5+ for the admin site, I used MSXML extensivly. It’s really incredible what you can do. I love being able to capture data in an XML object on the client and pull down an XSL fill from the server and then transform it and pop the HTML into a div! And posting XML to the server is so much nicer than HTTP POST variables, etc. – I love not having to refresh a page or use hidden frames, etc., etc…
Since a file upload was involved, I decided to even post that as part of the XML data sent to the server, instead of two posts, one for the XML and one for the file. I found an article at 15 Seconds that laid out the basics of using ADO and the MSXML binary data types to create a base64 nodes from an ADO stream from the filesystem. Of course since ADO is accessing the local file system, the admin page has to be put into the “Trusted Site” in IE.
Also, besides learning a lot more MSXML, CSS, XSL, DHTML and XHTML. I found out the Mozilla (and I’m assuming Firebird, too) has something called “XMLHttpRequest()” which acts similar to MSXML, supposedly using the same API function calls. I found a few links, that I’d like to explore since I really like Firebird would love to support it more. (XUL Planet, Jibbering, and isolani’s Atom blog)
Once the site is made live, maybe I’ll put up links and post screen shots of the admin part. Anyway, now to step back, breath and catch up on life…