Archive for the ‘JQuery’ Category



Oct 15th

JQuery UI Dialog not showing up twice in IE ( invalid argument )

I personally love the JQuery library, it makes life soo much easier. Add to that the JQuery UI libraries and you have yourself a seriously mean platform to build killer applications. That said, I ran into a mean little bug that affects the way the UI Dialog shows up on the page in Internet Exploder, I know… stop rolling your eyes it is here to stay and we will need to learn to play nice.

The bug:
Once a JQuery UI dialog has been initialized, opened once, and then closed it cannot be reopened in IE due to an “invalid argument” error.

The fix:
Open up your copy of jquery.js (you do have it locally right?, latency alert!) around line 1060 look for:

if ( set )
			elem[ name ] = value;

and change it to:

if ( set )
			try{elem[ name ] = value;} catch (error){};

Viola!