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.

Working with the DOM.

After working with the DOM trying to get my new theme switcher to work, I find that M$ has done a nice job of making it easier for me. IE on both Windows and Mac support document.styleSheets[0].imports and document.styleSheets[0].addImport(url). These have made it very easy for me to replace the @import statement in a <style> declaration. However, Mozilla is a different story. I have created a new switchTheme method that is as follows:

<script type="text/javascript">
    function switchTheme(themeName) {
        var docSheet = document.styleSheets[0];
        var nextTheme = "/skins/" + themeName + "/styles/colors-n-fonts.css";
        if (document.all) {
        } else {                                             
            docSheet.insertRule('@import url(' + nextTheme + ');',0);                    
        var nextTitle = "/skins/" + themeName + "/images/title-rd.gif";
        document.getElementById("title").src = nextTitle;
// -->

In Mozilla, this appears to work - as the mouseover colors on my links do change to use the 'sunset' theme. Unfortunately, that's all that changes. As usual, any suggestions are appreciated. Also, did you know IE/Mac supports document.all? I didn't think it did... until today!

Try this code in your browser by clicking here.

While developing this script, I received many tips and hints from this site.

Posted in The Web at Sep 18 2002, 02:50:36 PM MDT Add a Comment

Post a Comment:
  • HTML Syntax: Allowed