[SOLVED] JavaScript Error in IE8 - Webpage error details "Message: Invalid argument."
https://www.zyxware.com/sites/default/files/styles/user_image/public/default_images/index.png?itok=2YmREnrP
BY deepa.n
7 years ago
Javascript
0 comments comment

We were testing our newly implemented modal popup for a login functionality. It was working pretty good in Firefox, Opera, and Chrome but not in IE8. When attempts to login by clicking on a login link the login modal was not appearing in IE8. Firebug said nothing, but jquery-1.7.2.min.js in IE showed the following error:

Message: Invalid argument.
Line: 4
Char: 190
Code: 0
URI: http:// example.com/files/js/js_05f008a1c47b8161d7e4a8e6bbff1b3f_0.js

The referred line is as follows:

this.parentNode.insertBefore( a, this.nextSibling );

The surrounding script is as follows:

after:function() {
  if (this[0]&&this[0].parentNode) {
    return this.domManip(arguments,!1,function(a) {
      this.parentNode.insertBefore(a,this.nextSibling);
    });
  }
  if (arguments.length) {
    var a=this.pushStack(this,"after",arguments);
    a.push.apply(a,f.clean(arguments));
    return a;
  }	
}

Here’s how to deal (how we dealt with) this issue:

First of all, when you identify some js error in IE be sure that it is because of violating the standards. To start off, just check for HTML errors and fix them one by one.

All you had to do in this case was:

  1. Perform HTML Validation using http://validator.w3.org/

    Check for HTML errors. For details about the most common errors found during xhtml validation, refer this.

  2. Correct the listed HTML Errors one by one.

Try the same if you are facing the same issue. That should pretty much solve this one.

If that does not seem to do the job for you, just put in a comment below. We’ll try our best to help.


RELATED ARTICLE

/themes/custom/zyxpro_light/images/placeholder.png
close

on 10th May 2007 / by webmaster
We were working on an online billing application for a small charity firm when we came upon this Javascript Web Development Leave a reply Your email address will not be published. Required fields are marked * Anonymous (not verified) access_time 12 Nov 2019 - 16:05 Thanks - I was experiencing "Error: Class not registered" errors when trying to open a link in Windows Explorer. I re-registered the dlls as described above. Problem solved. mark (not verified) access_time 12 Nov 2019 - 16:05 i have the same problem regarding class not registered error in internet explorer every time i browse. i've read the solution on how to do but i dont know how the procedure on re-registering the IE dlls using the following commands in a batch file. can you help me on it?thanks a lot.... webmaster access_time 12 Nov 2019 - 16:05 In reply to i have the same problem by mark (not verified) Open notepad. Copy the commands given above to notepad. Save the file as C:\registerdll.bat. Click on start menu >> Run. Type cmd and press enter. In the command prompt window that opens up type C: and press enter. Then type cd \ and press enter. Then type registerdll.bat and you are done :) Anoop John Team Zyxware Jason (not verified) access_time 12 Nov 2019 - 16:05 In reply to Batch file to register dlls by webmaster I did the stpes that were given, everything looked to go okay but then it said DLLRegisterServer entry point not found for c:/windows/system32/mshtml.dll..... So it didnt not fix the issue that I can tell. Any help?? Thanks in advance!!! Anonymous (not verified) access_time 12 Nov 2019 - 16:05 Same problem, the solution worked well. Nice SEO for the article too. Pagination Current page 1 Page 2 Page 3 Next page Next › Last page Last » Add new comment
/themes/custom/zyxpro_light/images/placeholder.png
more_horiz
close

on 05th June 2012 / by muhammed.fathima
We were trying to create a new theme for our Drupal site and we came across an issue. How to create div "left" to be the same height as div "right" which can be smaller or bigger? Is it possible to have the "left" div height adjusts automatically according to the "right" div height? Here is what saved us: Javascript Drupal CSS JQuery Leave a reply Your email address will not be published. Required fields are marked * Anonymous (not verified) access_time 12 Nov 2019 - 15:26 Thank you! very helpfull. Jon (not verified) access_time 12 Nov 2019 - 15:26 This ones solved my problem :) Add new comment
/themes/custom/zyxpro_light/images/placeholder.png
close

on 26th June 2012 / by jiby.john
Have you ever wondered how that cool site you saw last day had those cool interfaces and you wished your Drupal site could have the same coolness? jQueryUI is your saviour here. jQueryUI is one of the most popular JavaScript libraries out there in the world of web development. jQueryUI allows you to add very cool user interface elements to your website without much effort. Javascript Web Development Drupal JQuery Leave a reply Your email address will not be published. Required fields are marked *
Leave a reply
Your email address will not be published. Required fields are marked *

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
The content of this field is kept private and will not be shown publicly.
CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.