I am having an issue with blockUI (v2.42) and IE8, where I get the error below which points to the setExpression method. I see a similar error submitted few years back and resolved (v2.16?), however I'm still experiencing the issue with v2.42. I'm fairly new with javascript so some help would be appreciated...
The current behavior is:
- Code is pretty straightforward, calling block() on a div, making a jquery ajax call that updates a jqgrid in the div, and unblocking on success or failure.
- My code behaves fine on Firefox, Chrome and IE9.
- I can see the blockUI demo page is working fine with IE8 on the machine.
- The DOCTYPE on the page is
"-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd", but experimenting with strict types didn't help me either.
- On line 34 of the blockUI code I see a line commented out for a boolean that seems to be an alternative way of detecting whether or not setExpression is defined. However using that line didn't help either
- I tried removing all blockUI options to make sure none of the formatting I use causes some exception - so pretty much using defaults.
The options as I see:
- Dive into the blockUI code (will take some significant time at my experience level with js)
- Start building the page from scratch (also will take significant time since it's a fairly complicated web app)
- Keep playing with DOCTYPEs
- Convince the world to stop using IE8 (I know we all want to, but this may take a while as well)
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; InfoPath.1; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; msn OptimizedIE8;ENUS)
Timestamp: Tue, 18 Sep 2012 14:04:31 UTC
Message: Not implemented
Line: 333
Char: 7
Code: 0