Invalid Argument Error In Ie8
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, helping each other. Join them; it only takes a minute: Sign up JavaScript - invalid argument IE8 up vote 8 down vote favorite 1 I've got a little JavaScript problem. The code is working in Opera and Firefox browser but not in Internet Explorer 8. Does anybody know why? function createbtn(object, inner) { var hover = document.createElement("div"); hover.setAttribute("class", "myarea"); if (inner) { hover.style.width = object.width - 16 + "px"; hover.style.height = object.height - 16 + "px"; hover.style.top = getposy(object) + "px"; hover.style.left = getposx(object) + "px"; } else { hover.style.width = object.width + "px"; hover.style.height = object.height + "px"; hover.style.top = getposy(object) - 8 + "px"; hover.style.left = getposx(object) - 8 + "px"; } } I'm just learning Javascript. Any feedback welcome. Simon javascript internet-explorer-8 share|improve this question edited Jun 29 '11 at 20:37 Ben7005 583619 asked Jun 29 '11 at 20:17 Simon 41112 what is getposx and getposy? –Neal Jun 29 '11 at 20:18 can you put ur full code in a jsfiddle.net demo? –Neal Jun 29 '11 at 20:19 If you use the developer tools (F12), you can check what rendering mode IE 8 is in. Can you post what it is? I'm suspecting it's in Quirks Mode. –user1385191 Jun 29 '11 at 20:20 @Simon You should cache the hover.style object inside a variable (both to reduce redundancy and boost performance)... –Šime Vidas Jun 29 '11 at 20:20 Check the return of you getposx, g
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, helping each other. Join them; it only takes a minute: Sign up How to fix “invalid argument” http://stackoverflow.com/questions/6526713/javascript-invalid-argument-ie8 error in LESS up vote 1 down vote favorite How can I fix "invalid argument" in LESS when using IE? internet-explorer less invalid-argument share|improve this question edited Jun 7 '11 at 23:31 asked May 11 '11 at 10:25 Diogo Cardoso 7,0371969125 1 provide more details about the error. also, Developer Tools for IE might help. –bzx May 11 '11 at 12:35 some code http://stackoverflow.com/questions/5962736/how-to-fix-invalid-argument-error-in-less would be nice –Daniel May 12 '11 at 5:53 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted You need to remove all the special characters (á, ã, â, ç, etc.) from the comments in the .less file. share|improve this answer edited Oct 29 '13 at 15:33 ithcy 4,77121333 answered Jun 7 '11 at 23:45 Diogo Cardoso 7,0371969125 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged internet-explorer less invalid-argument or ask your own question. asked 5 years ago viewed 578 times active 2 years ago Blog Stack Overflow Podcast #91 - Can You Stump Nick Craver? Related 1appending a jquery object throws invalid argument in IE 0jQuery, IE and invalid argument0jQuery, IE, invalid argument3IE8 gives error “Invalid argument” when using prototype.js, how do I find where the error is?2Cufon IE Inval
here for a quick overview of the site Help Center Detailed answers to any questions you might http://stackoverflow.com/questions/25612971/javascript-invalid-argument-error-with-ie8 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 invalid argument programmers, just like you, helping each other. Join them; it only takes a minute: Sign up JavaScript invalid argument error with IE8 up vote 0 down vote favorite IE8 is giving me an invalid argument error at character 9 of the last statement in this loop (Character 9 is the first letter of the icon invalid argument error variable.): var JOB_STATUS_ICON_DISTANCE = 125; var JOB_STATUS_ICON = {}; var center = parseInt($('#job-status-window').css('width')) / 2; var jobStatusIcons = ['A', 'B', 'C', 'D', 'E']; for (var i=0; i