Internet Explorer Script Error Object Required
be down. Please try the request again. Your cache administrator is webmaster. Generated Wed, 19 Oct 2016 04:42:36 GMT by s_wx1157 (squid/3.5.20)
7 and 8) ... on my machine in IE 8 it works fine, on my wife's machine (IE 7) it works fine, on my laptop (IE 6) it works fine ... and it works in EVERY other browser out there (FF, Opera, Safari, Flock)... The guy is making me crazy with this dumb thing and I am saying it has to be something on his machine because I see no problems, nor get any errors on any of my machines. Here is the code: function show_preview() { window.open("c_pop.php?to=" + document.getElementById('livesearch').value + "&sub=" + document.getElementById('subject').value http://answers.microsoft.com/en-us/ie/forum/ie8-windows_other/error-object-required-when-trying-to-open-a/1d7791e7-58a8-4ffa-ae26-de26d0b0770f + "&mess= " + document.getElementById('message').value, "Link", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=450,height=400,left=30,top=80"); } The error from IE is simple: "Object required" line 2 character 2 - the window.open is line 2 Anyone able to help me get this guy out of my hair cause I give up! SteveWh 2009-06-03 17:23:59 UTC #2 That one machine might be configured with customized Internet Explorer security settings that are more restrictive than the other https://www.sitepoint.com/community/t/stupid-ie-object-required-error-only-on-certain-machines-makes-no-sense/5112 machines. dc_dalton 2009-06-03 17:28:16 UTC #3 SteveWh said: That one machine might be configured with customized Internet Explorer security settings that are more restrictive than the other machines. He said he shut off all the security settings. I also found some info about Vista screwing up things but haven't heard back from him on whether he is using it. dc_dalton 2009-06-03 17:51:48 UTC #4 Sure enough, he is using Vista ... UGH crmalibu 2009-06-03 17:53:12 UTC #5 Break your code up into many lines so the line number in the error message is more specific. Instead of assuming an object has a property or method, test it before using it. if (window.open) { window.open(...); } var elem = document.getElementById('livesearch'); // elem could be null. trying to use a property of something that is null will throw an error if (elem) { // elem is not null, we can use the property elem.value; } Be aware that an element with the given id needs to exist at the time that script runs for getElementById() to be able to grab it. dc_dalton 2009-06-03 18:20:42 UTC #6 crmalibu said: Break your code up into many lines so the line number in
your question and get tips & solutions https://bytes.com/topic/javascript/answers/532868-object-required-error from a community of 418,571 IT Pros & Developers. It's quick & easy. "Object Required" error P: n/a DaFallus I'm trying to write a somewhat simple page with dependent drop-down boxes. Unfortunately the entire page is written through PL/SQL so that makes it even more difficult for me internet explorer to trouble shoot. I know hardly anything when it comes to JavaScript, and I keep getting an error saying: "Error: Object required Line: 31 Char: 1 Code: 0" The funny thing is that I ONLY get this error with Internet Explorer. The page works just fine in Firefox internet explorer script but most of my clients will be using IE so this has been driving me nuts. Here is the code on the page that is throwing the error (the page is displayed in a hidden frame).
Any help will be greatly appreciated! Sep 7 '06 #1 Post Reply Share this Question 5 Replies P: n/a VK DaFallus wrote: "Error: Object required Line: 31 Char: 1 C