Friday, February 27, 2009
Wednesday, February 25, 2009
HTML: Conditional Else Comment
IE browsers support Conditional Comments, but the syntax only supports IF statements – there is no ELSE.
Stu Nicholls and the JavaScript Kit to the rescue; the following simulates an else statement:
<html> <head><title>Choose a browser...</title></head> <body> <p>You chose <![if ! IE]> wisely <![endif]><!--[if IE]> poorly <![endif]--> ...</p> </body> </html>
Copy to a text file, save as html and run in IE and Firefox/Chrome/Safari/Opera…
Labels: design, experiment, howto
Friday, February 13, 2009
Why I use Chrome
While checking her email on my computer yesterday, my wife asked me why I use “that Google POS browser” (Chrome). I think she was annoyed that it was unfamiliar to her, and that it’s just the latest example of me doing something geeky that gets a bit on her non-geeky nerves. Oh well – marital bliss...
For the record (not that she would read this…), this is why I use Chrome:
- It is clean. No clutter. This actually matters.
- It is fast: Below are the results of the V8 Engine Benchmark scores. Sure the benchmark is written by Google, sure it only measures JS performance, and sure it doesn’t mean that Chrome is 20x faster than IE8. But it is faster, just as Firefox3 is noticeably faster than IE8:
Benchmark test results from http://v8.googlecode.com/svn/data/benchmarks/v3/run.html run on my laptop
IE 8.0.6001 | Firefox 3.0.6 | Chrome 1.0.154 |
Now if only Chrome was as extensible as Firefox is, and if only people would start writing standards compliant html and JavaScript (people = Microsoft, really – SharePoint and OWA are the two biggies), then I would ONLY use Chrome. As is I’m stuck with all three. Sigh.
Labels: experiment, firefox, google, javascript, me-me-me, microsoft, random, rant, rave
Tuesday, February 10, 2009
MOSS: The dreaded schema.xml
Much of Andrew’s post is valid – there’s not much doing getting around the Content Types and the List Template (if you need them), and using the OOTB list interface plus Keutmann’s excellent SharePoint Manager tool to build queries is a simple workaround, but I’m balking on his approach for creating the the List’s schema. If you take Andrew’s approach, you’re gonna end up with a MINIMUM of 1600 lines of xml in your schema: my approach is far simpler; below is a fully functioning schema that’s only 30+ lines – see if you can spot the magic bullet…:
Labels: moss, programming, sharepoint