RSS
 

Archive for the ‘Javascript’ Category

Login Usability: Am I in or out?

01 Aug

UPDATE: After making this post, and refreshing the parallels forums page, I was presented with “Welcome, Joseph Sak” instead of a login prompt. So maybe I got it wrong, or they did, but this post still stands!

The Parallels Forums recently got some redesign and information restructure, which all looks good and is organized quite well. But they’ve missed a couple really easy issues with their login functionality.

Read the rest of this entry »

 

Fix your Javascript Print Style Switcher for Internet Explorer

19 Feb

So you’ve decided to use javascript to swap out a print style css sheet that basically hides a bunch of divs and maybe widens the content area. Perhaps your re-color the links and the text and fix the font sizes.

You try it in Firefox and it prints perfectly, but when you print in IE, you’ll notice IE didn’t really print your printable version.

So you think, ‘Ok I’ll add media=”print” to my stylesheet link!’ and then you refresh your page, try your Print this Page link, and nothing happens! And it still prints the wrong version! What to do?

Well, your old pal Joe here figured it out.

Here’s what you do:

  1. Create a separate stylesheet called print.css
  2. Add this code to your master stylesheet:

    @media print {

    @import "print.css";

    }

  3. Implement your javascript for making the stylesheet override your master stylesheet
  4. Test
  5. Enjoy!

This allows you to switch to your print style so it is preview-able before printing and also tells IE to use print.css when it prints a page on your site. So incidentally, if a user just clicks print in IE without switching to your style, they will still get your printable version. I suppose this might cause confusion but considering the most reasons for making hard copies of digital information, it probably shouldn’t pose too much of a problem for your average user.

Now if your user wants to have a pretty print out of your website because they can’t access a computer to show it to someone else away from home, they’ll probably get stuck with the fact that IE does not print background images and colors by default any way.

 

FrogJS: A new twist on LightBox

26 Jan

Eric just released a phenomenal bit of javascript called FrogJS. Basically it allows you to do paging between your pictures in a lightbox-type gallery.

This is a pretty neat little script. My only qualm with it is that it’s currently 760px wide. It’s not exactly going to work within your standard website template. I think the point of the typical lightbox is that you can throw your images into a template where your content area is typically 500 px in width, and the image pops up with an AJAX-y effect of muting out the rest of the screen.

Perhaps this concept can be taken further in this regard! I will definitely be playing with this.