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!
Thanks, this was doing my head in
No problem. It was a pain for me too, glad it helped, at least the post was worth the time then.
Thank you very much for this!
If you’re editing the minified version then you’ll need to replace…
if(L){J[G]=K}
…with…
if(L){try{J[G]=K}catch(err){};}
Thanks for that Rik! I didn’t think to include the fix for that version.