Matt RaibleMatt Raible is a Java Champion and Developer Advocate at Okta.

The Angular Mini-Book The Angular Mini-Book is a guide to getting started with Angular. You'll learn how to develop a bare-bones application, test it, and deploy it. Then you'll move on to adding Bootstrap, Angular Material, continuous integration, and authentication.

Spring Boot is a popular framework for building REST APIs. You'll learn how to integrate Angular with Spring Boot and use security best practices like HTTPS and a content security policy.

For book updates, follow @angular_book on Twitter.

The JHipster Mini-Book The JHipster Mini-Book is a guide to getting started with hip technologies today: Angular, Bootstrap, and Spring Boot. All of these frameworks are wrapped up in an easy-to-use project called JHipster.

This book shows you how to build an app with JHipster, and guides you through the plethora of tools, techniques and options you can use. Furthermore, it explains the UI and API building blocks so you understand the underpinnings of your great application.

For book updates, follow @jhipster-book on Twitter.


Over 10 years ago, I wrote my first blog post. Since then, I've authored books, had kids, traveled the world, found Trish and blogged about it all.

New Stylesheet Switcher.

I'm trying to use the DOM and Javascript to come up with a new stylesheet switcher for this site. Currently, I use Javascript to read a cookie and do a bunch of document.write's to write out the full <style type="text/css">...</style> code. However, I should be able to use the following to simply replace the <style> tag's contents. However, it doesn't work in IE5/Mac :-(. Please notify me if you know why this doesn't work.

<script type="text/javascript">
function switchStyle() {	
  var current = document.getElementsByTagName("style").item(0);
    if (current.hasChildNodes()) { // IE5/Mac returns false, Mozilla returns true
      var newStyle = 
        document.createTextNode("@import url(/skins/sunset/styles/colors-n-fonts.css);");
      current.replaceChild(newStyle, current.firstChild);
<button type="button" onclick="switchStyle()">switch stylesheet</button>

You can try it out using the button below:

Posted in The Web at Sep 12 2002, 06:41:50 PM MDT Add a Comment

Post a Comment:
  • HTML Syntax: Allowed