Posts filed under 'javascript'

Fix for IE6 problem with select drop downs ignoring z-index with Jquery

I just ran into this bug for the first time today.

In it, a select box appears through an element with you’ve positioned over it using a z-index.

As an example take a look at this screenshot

This is a pesky problem in IE6 that has no simple solution.

So imagine my joy when I stumbled on this blog post linking to a jquery solution for the IE6 select box z-index bug!

You just download the bgiframe jquery plugin, and with a simple command apply the iframe fix to every element that you want to appear over select boxes. For me the code was this simple snippet

$(’.tool_tip span’).bgiframe();

That was it … I refreshed the page and voila!

enjoy.

select box problem with z-index in ie6 fixed

Add comment June 8th, 2008

SxSWi day four: Javascript secrets

This sesssion was pretty much standing room only and I came in 15 minutes late.
I didn’t get to really settle in and pay attention as I’d like, so I’ll have to view the slides later (I’ll link to them because they were really frickin’ great)
This jumps around a bit, as I’m writing from memory.

  • They talk about memory leaks in IE, I dunno if the newly released Jscript 5.7 addressed what they were talking about
  • There was this very interesting part of the talk where they talk about being able to access dom elements using Xpath.
  • Apparently Xpath is faster in situations where you want to get all divs of class foo (for example)
  • With Xpath … the engine just goes and gets them, with dom it gets all the divs, then loops around and gets the ones you want
  • This can be slow when you’re dealing with a lot of elements
  • Dojo and prototype support using XPath … jquery (my darling) doesnt.
  • Only Mozilla and Opera support this (Webkit/Safari 3 finally added it) of course microsoft is miles behind … poor poor Microsoft :(
  • They talked about trying to isolate bugs to a line of code if preferable, when sending in bug reports
  • gzipping your javascript is better than “packing”
  • Make sure to set content headers to cache your javascript correctly
  • Computing the width of elements is tough because it is hard to know what dimension you want exactly (with padding? margins? without?

Another great session.

Add comment March 11th, 2008

How to find out what version of Internet Explorer’s Jscript you’re running

I blogged a little while ago about the small update of IE’s javascript engine from 5.6 to 5.7.

As I was re-reading that post, I realized that it might be helpful to know what version of Internet Explorer’s JScript you were running.

Navigate to this website to get that information. The line you’re looking for is the one that says “JavaScript build” (apparently I’m running 5.6.8834)

Getting JScript engine version

Add comment March 4th, 2008

jscript 5.7: Minor update to IE6’s javascript engine

Microsoft just released an update to IE6’s JavaScript engine. It was in response to problems with its (jscript 5.6) garbage collection that would cause poor performance with Large Ajaxy applications … like Gmail. It probably also helps their hotmail web ui too, since that uses ajax as well.

I would personally have liked to see more done with this update (its only a “minor” update), but I suppose you don’t want to give people a reason to hold on to IE 6 right? Hopefully this stops Feed Demon (my RSS reader) from freezing on CNN’s pages?

Read more about the update here

Download IE6’s jscript 5.7

Add comment December 19th, 2007


Calendar

July 2008
S M T W T F S
« Jun    
 12345
6789101112
13141516171819
20212223242526
2728293031  

Posts by Month

Posts by Category