Home > object expected > object expected error in ie. when using $document.readyfunction

Object Expected Error In Ie. When Using $document.readyfunction

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up “Object expected” error using jQuery only in IE8 up vote 5 down vote favorite 1 I'm getting an error only in IE (v8, I don't know if it happens in older IE versions, but it does not occur in Chrome or Firefox) which brings me the following message when I use IE dev tool's debbuger: Breaking on JSScript runtime error - Object Expected Here is my affected code: $('#deviceProfileSelection').change(function() { //affected line!!!! // rest of my code... }); This element #deviceProfileSelection is defined as the following: I've already tried defining the .change listener into a $(document).ready(function () {}); but no success at all. Any other idea? EDIT I was trying to include a div using a PHP decision structure, where if a condition was true, it should print a div. But, actually it wasn't printing, I mean, it wasn't printing the opening tag 'div', only the closing tag 'div'. The browsers could interpret this error, but IE8, and this IE inability was causing the issue. javascript jquery html internet-explorer internet-explorer-8 share|improve this question edited Aug 17 '15 at 16:36 asked Aug 2 '13 at 15:16 Victor F 3681420 3 do you have jQuery included on the page before attempting to call $? –jbabey Aug 2 '13 at 15:18 1 What version jQuery are you using? –putvande Aug 2 '13 at 15:20 4 please note that jQuery v2.x does not support IE8. If y

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community http://stackoverflow.com/questions/18020471/object-expected-error-using-jquery-only-in-ie8 of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Internet Explorer Object expected error up vote 1 down vote favorite 1 Internet Explorer Object expected error LINE: 64 The code works in Firefox and Chrome. I keep getting an Internet explorer object expected error. http://stackoverflow.com/questions/17396179/internet-explorer-object-expected-error I removed the afflicted code and it just keeps going until any code after line 64 is gone. The problem starts at line 64 which is the below code: AFFLICTED CODE: $(document).ready(function () { preload(preloadi); }); ALL JQUERY CODE:

 

© Copyright 2019|winbytes.org.