Remember I complained about how little Domino 7.0 did for us as web developers. Well, Domino 7.0.2 made up for it with some useful additions. Here are a couple of changes you might already know about and one massive change you might not.
- Output Any View in JSON Format
Hot off the presses! From my inside man at LotusSphere comes the huge news that you can add OutputFormat=JSON to the end of a ?ReadViewEntries URL and you'll get the output in JSON format. Here's an example of a view in the forums. This is absolutely fantastic news and made my day when I found out.
I only hope this turns out as useful as it should be. My fear is the JSON format they've chosen makes it as unusable as the DXL counterpart XML. As soon as I get time to play with it I'll let you know.
This would make all the time I spent writing an agent to do this a complete waste, but I won't mind at all.
- Option to add attributes to the <HTML> tag
Add a field to a form called $$HTMLTagAttributes and its contents will be added to the HTML tag. For example you could have <html lang="en-gb">. Not all that useful, but nice to have nonetheless, especially if you want to use Firebug Lite for cross-browser script debugging without all the alerts()s. In this case you'll need <html debug="true">.
- Developer control of a custom Document Type Definition (DTD)
When the field $$HTMLFrontMatter is present on a form, its contents will be placed in the generated HTML, ahead of the <html> tag, and the web server will not generate anything there automatically. This allows you to specify a custom !DOCTYPE declaration on a per form basis. Whether or not it overrides the DominoCompleteDoctype setting I don't know.
- Basic Authentication on a URL by URL Basis
Last March I wrote about a way to use session-based authentication on a Domino server and still allow RSS feeds to authenticate the old fashioned way. This new feature will mean that's not necessary. Not sure how it works exactly. Apparently something to do with the Web Site Rules document.
Right, I'm off to email Prominic and ask for an upgrade. This is all too good to miss! Me, down on Domino? On this occasion definitely not... it's almost ilke they've been listening.