The following two threads are similar to yours, and it tell the following solution:
You need to use the html5 doctype for IE9 to work with the querySelectorAll() javascript method. The doctype looks like this and should be placed as the first line on all the pages in your site.
Member
20 Points
23 Posts
Microsoft JScript runtime error: Object doesn't support property or method 'querySelectorAll'
Jun 04, 2013 10:07 AM|indusrilanka|LINK
I have create a web service like bellow when i just run the web service
following run time error is comming pleace help
Microsoft JScript runtime error: Object doesn't support property or method 'querySelectorAll'
Microsoft JScript runtime error: Object doesn't support property or method 'querySelectorAll'
All-Star
101931 Points
20703 Posts
Re: Microsoft JScript runtime error: Object doesn't support property or method 'querySelectorAll'
Jun 04, 2013 11:05 AM|MetalAsp.Net|LINK
I don't see a method or property called querySelectorAll in this webservice.
Also to access this webservice from script you need to uncomment the scriptservice attribute line.
Member
20 Points
23 Posts
Re: Microsoft JScript runtime error: Object doesn't support property or method 'querySelectorAll'
Jun 04, 2013 12:01 PM|indusrilanka|LINK
Thanks for the reply
but when i run this web service in IE9 this error is camming but crome no errors.
and note that I just run in visual studio..
Star
14544 Points
1481 Posts
Re: Microsoft JScript runtime error: Object doesn't support property or method 'querySelectorAll'
Jun 05, 2013 11:26 PM|Amy Peng - MSFT|LINK
Hi,
The following two threads are similar to yours, and it tell the following solution:
You need to use the html5 doctype for IE9 to work with the querySelectorAll() javascript method. The doctype looks like this and should be placed as the first line on all the pages in your site.
Similar threads:
http://stackoverflow.com/questions/13171247/ie9-equivalent-of-queryselectorall .
http://stackoverflow.com/questions/14580872/document-queryselectorallclassname-not-working-in-ie9 .
Hope it can help you.
Best Regards,
Amy Peng