Internet Explorer Script Error Object Required Line 53
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 + "&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 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 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.getEl
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 4.7 million programmers, just like you, https://www.sitepoint.com/community/t/stupid-ie-object-required-error-only-on-certain-machines-makes-no-sense/5112 helping each other. Join them; it only takes a minute: Sign up Javascript: Error 'Object Required'. I can't decipher it. Can you? up vote 2 down vote favorite I am using a javascript called 'Facelift 1.2' in one of my websites and while the script works in Safari 3, 4b and Opera, OmniWeb and Firefox it does http://stackoverflow.com/questions/592420/javascript-error-object-required-i-cant-decipher-it-can-you not in any IE version. But even in the working browser i get the following error I cannot decipher. Maybe in due time—with more experience in things Javascript—I will be able to but for now I thought I would ask some of you, here at SO. The following is the error popup i get in IETester testing the page for Interet Explorer 6,7 and 8: The following is from the Firebug console in Firefox 3.0.6: The website is: http://www.457cc.co.nz/index.php In case it helps you see the problem mentioned in action. I have also looked up what line 620 corresponds to which is: "line 76" is: this.isCraptastic = (typeof document.body.style.maxHeight=='undefined'); which is part of this block of code (taken from the flir.js): // either (options Object, fstyle FLIRStyle Object) or (fstyle FLIRStyle Object) ,init: function(options, fstyle) { // or options for flir style if(this.isFStyle(options)) { // (fstyle FLIRStyle Object) this.defaultStyle = options; }else { // [options Object, fstyle FLIRStyle Object] if(typeof options != 'undefined') this.loadOptions(options); if(typeof fstyle == 'undefined') { this.de
? 'Upvoted' : 'Upvote' }} {{ subscribed ? 'Subscribed' : 'Subscribe' }} I have a sales page that works fine in http://www.warriorforum.com/main-internet-marketing-discussion-forum/62495-how-do-i-find-where-internet-explorer-script-error-occuring.html FireFox, but when I use I.E. 7 I get the following error ONLY when I close the window (not when I load the page or hit the back button) Internet explorer script error An error has occurred in the script on this page Line: 53 Char: 3 Error: Object Required Code: 0 URL: http://www.offlinegoldsummit.com/ I'm trying to fix this internet explorer asap. Everything works fine, just want to get rid of the error message. At the very least, I'd like to at least know how I can find "Line: 53 Char:3" so I can fix the problem. Thanks in advance, Scott #internet marketing #find #occuring CmdrStidd 2009-03-06T07:18:55 What are you writing your code in? Notepad? Dreamweaver? Most of those softwares allow internet explorer script you to view the line numbers. However, I will tell you this, script errors are not always in the line they say they are in. You really have to look at all the surrounding code. Make sure you have all the punctuation right as sometimes a missing ; or , can cause these kinds of errors too. Thanks Reply 1 reply Scott Million 2009-03-06T07:26:26 Originally Posted by CmdrStidd What are you writing your code in? Notepad? Dreamweaver? Most of those softwares allow you to view the line numbers. However, I will tell you this, script errors are not always in the line they say they are in. You really have to look at all the surrounding code. Make sure you have all the punctuation right as sometimes a missing ; or , can cause these kinds of errors too. Grrrr....yeah, I'm using DreamWeaver. I don't find any characters in that line, though. Will keep scanning...it would be nice to have a software highlight the error! Scott Thanks Reply 1 reply hiphil 2009-03-06T02:45:26 Try viewing the code in