Categories
Television

CBS: Doyle Redland is your future

Doyle RedlandDoyle Redland, anchor of the Onion news should be the man to replace Dan Rather. Yeah.

Share
Categories
Web Development

Cross-browser ‘Add Bookmark’ Link

Internet Explorer appears to offer an easy way to add a bookmark to the current page. The code is as simple as

window.external.AddFavorite(url, title);

But Firefox and Mozilla-based browser are more finicky. Dynamic Drive have an idea on how to do that, using the JavaScript call

window.sidebar.addPanel(title, url, "")

which works, eh, sometimes
See, in my Firefox 1.0.7 the code above works just fine, but in my co-worker’s Firefox 1.0.7, it does not. Like Mozilla 1.5, his Firefox simply adds a panel to the browser sidebar (click ‘F9’ if you never met your sidebar), where the browser simply loads the page. Not what I wanted.

Share
Categories
Java

Setting Transformer properties

So you are going to output an XML Document to a file using this canonical method. But how do you tell the Transformer object how the output should look like?

You use OutputKeys, that’s how.

For example:
transformer.setOutputProperty(OutputKeys.INDENT,"yes");

Share
Share