Ie11 "invalid Argument." -angular
the jQuery $.ajax() function, but I needed to wrap it with an additional numbered div. In particular it is the id variable that is caused the invalid argument error, but I have no idea why! The var is just a number that gets incremented. Removing the var from that line lets the page load perfectly, but I really need to increment the id in this way. Does anyone have any idea why this simple variable would be cause invalid argument in IE? javascript internet-explorer-7 invalid-argument share|improve this question asked Nov 11 '09 at 5:37 Nic Hubbard 17.7k45190354 id = id+''; this doesnt look right for incrementing id –barkmadley Nov 11 '09 at 5:41 Sorry, that was just part of my testing I forgot to remove. The bug is still an issue without that. –Nic Hubbard Nov 11 '09 at 5:57 @Nic: in one part of your code you are passing data as a context parameter to $, and then in another you are concatenating it with a string. What does data hold exactly? –Crescent Fresh Nov 11 '09 at 8:04 @Crecent: data holds just some divs and images. –Nic Hubbard Nov 13 '09 at 5:44 add a comment| 2 Answers 2 active oldest votes up vote 2 down vote accepted Somehow you're
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies window.open invalid argument of this site About Us Learn more about Stack Overflow the company
Script87 Invalid Argument
Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges ie9 error invalid argument 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: http://stackoverflow.com/questions/1713259/ie-invalid-argument-error-says-it-is-an-error-in-jquery-but-i-dont-think-so Sign up jquery, IE 8 Invalid argument error up vote 0 down vote favorite This code works fine in FF, Chrome & Safari, but IE 8 is throwing several Invalid Argument Errors when I run it: You can see it in context here: My html/css skills are more or less spotless http://stackoverflow.com/questions/3207816/jquery-ie-8-invalid-argument-error but I'm practically clueless with jquery/javascript. I have searched but cant get a handle on what the error is and how to fix it. Any help greatly appreciated. Thanks. jquery internet-explorer-8 arguments share|improve this question edited Jul 8 '10 at 21:00 Darko Z 22.2k126696 asked Jul 8 '10 at 20:40 theothersimon 1427 Have you tried replacing $(window).load with $(document).ready ? –James Westgate Jul 8 '10 at 21:05 It helps if you use the full versions of script files whilst you are in development as they tend to give better error messages or at least break into code that can be debugged easily. –redsquare Jul 8 '10 at 21:31 @ James, thanks for you input, I need to use the former because i need the images to load before it finds the widths. –theothersimon Jul 8 '10 at 21:35 add a comment| 3 Answers 3 active oldest votes up vote 2 down vote accepted The code "$(this).find('img')" is not finding an image in all cases. Try: $(window).load(function() { $('div .box').each(function() { var imageJQObject = $(this).find('img'); if(imageJQObject.length > 0) { $(this).width(imageJQObject.width(
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 http://stackoverflow.com/questions/10236280/ie-invalid-argument-with-jquery Stack Overflow the company Business Learn more about hiring developers or posting ads with https://bugs.jquery.com/ticket/10982 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 IE Invalid argument with jquery up vote 0 down vote favorite I have invalid argument a portlet application that works flawlessly in Firefox and Chrome, but is bombing out in IE 8 and 9, BUT only if I have 5 or more instances of the portlet on the portal page. If there are 4 or less instances of the portlet on the page, it works fine in IE too. The error I see when I have 5+ instances of the portlet on the page is: invalid argument error SCRIPT87: Invalid argument. jquery-1.5.2.min.js, line 16 character 25442 The code uses jQuery and a handful of plug-ins, namely jqGrid. Here is what I have tried so far to resolve the issue, none of which has made any difference: Upgraded the jQuery and jQuery-UI libraries. The code uses 1.5.2 and 1.7.2 respectively. Upgrading to the latest versions made no difference. Upgraded the jqGrid library. The code uses version 4.1.2. Upgrading to 4.3.2 made no difference. Upgraded the bgiframe plug-in. The code uses version 2.1. Upgrading to 2.1.3 made no difference. Because it is IE, it is very difficult to debug to see what is going on. Has anyone seen this behavior before or have any idea as to what may be going on? UPDATE: OK, I have replaced the min versions of the jQuery files with the non-minified ones. Here is the error I see when I have 5+ instances of the portlet on the page in IE 8: Message: Invalid argument. Line: 2105 Char: 5 Code: 0 URI: https://nasa-iceint.nasa.gov/portal/ice-theme/js/jquery-1.5.2.js Here is the pertinent code from the jQuery file: if ( set ) { // convert the value to a string (all browsers do this but IE) see #1070 elem.setAttribute( name, "" + value ); } Any ideas? jq
Navigation ← Previous TicketNext Ticket → Opened 5 years ago Closed 5 years ago Last modified 5 years ago #10982 closed bug (invalid) In IE (6/7/8) had the following error:"Invalid argument. Line: 8826 Char: 5" on jquery-1.7.1.js Reported by: joao.l.castro@… Owned by: joao.l.castro@… Priority: undecided Milestone: None Component: unfiled Version: 1.7.1 Keywords: Cc: Blocked by: Blocking: Description Solved by checking if "fx.now" is NaN Oldest first Newest first Threaded Comments only Change History (10) comment:1 Changed 5 years ago by sindresorhus Owner set to joao.l.castro@… Status changed from new to pending Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket. Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started. comment:2 Changed 5 years ago by anonymous Had the same issue on IE with jQuery returning an error for a missing/invalid argument. It was caused by a call $(element).show() after a $(‘document’).ready(). I fear IE completely misses to pass some element feature (width? display status? visibility status?), or in some way those features are not readable to IE, or become available slight AFTER the .ready() is called. Anyway, removing that .show() solved the whole thing. comment:3 Changed 5 years ago by Davide Losito Sorry for the "anonymous"... forgot to put my name comment:4 Changed 5 years ago by anonymous Is there any update on this? comment:5 Changed 5 years ago by addyosmani #11104 is a duplicate of this ticket. comment:6 Changed 5 years ago by trac