[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
6 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

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 problem. The application was developed and tested under Firefox. However we got the error when we tested it on Internet Explorer 6 (6.0.2900.2180). There was a simple window.open javascript call to open a popup window. The window was opening fine but it remained blank and the parent window showed the javascript error Error: Class not registered. The line number was pointing to the line with the window.open code. We tried uninstalling and reinstalling Internet Explorer but to no avail. After some searching we came upon this thread in a forum with the solution to the Class not registered error. http://www.webdeveloper.com/forum/archive/index.php/t-58228.html The solution was simple just re-register the IE dlls using the following commands in a batch file. You could also copy and paste directly into a command prompt to get the same result. regsvr32 c:\windows\system32\urlmon.dll regsvr32 c:\windows\system32\actxprxy.dll regsvr32 c:\windows\system32\shdocvw.dll regsvr32 c:\windows\system32\mshtml.dll regsvr32 c:\windows\system32\browseui.dll regsvr32 c:\windows\system32\jscript.dll regsvr32 c:\windows\system32\vbscript.dll regsvr32 c:\windows\system32\oleaut32.dll Javascript Web Development Leave a reply Your email address will not be published. Required fields are marker * Anonymous (not verified) access_time 23 Jan 2019 - 00:22 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 23 Jan 2019 - 00:22 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 23 Jan 2019 - 00:22 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 23 Jan 2019 - 00:22 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 23 Jan 2019 - 00:22 Same problem, the solution worked well. Nice SEO for the article too. Add new comment
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: Retrieve the height of one div '.style_right_side_content' and apply it to another div ('.style_left_side_content')'s min-height. Use the following JQuery code: var divHeight = $('.style_right_side_content').height(); $('.style_left_side_content').css('min-height', divHeight+'px'); Javascript Drupal CSS JQuery Leave a reply Your email address will not be published. Required fields are marker * Anonymous (not verified) access_time 23 Jan 2019 - 00:14 Thank you! very helpfull. Jon (not verified) access_time 23 Jan 2019 - 00:14 This ones solved my problem :) Add new comment
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. Just follow these steps to get jQueryUI working at your command: 1. Download the drupal module for jqueryUI from: http://drupal.org/project/jquery_ui and extract the files to sites/all/modules directory. 2. Download the jQuery UI 1.6 release from: http://code.google.com/p/jquery-ui/downloads/list?q=1.6 3. Extract the files and place it in /sites/all/libraries/jquery.ui/ so that the actual jQuery UI JavaScript files are located in: /sites/all/libraries/jquery.ui/ui/*.js 4.Enable your module at Administer > Site building > Modules. 5.To use jquery ui in your module you need to call the function: jquery_ui_add($files); like, jquery_ui_add(array('ui.dialog', 'ui.droppable', 'ui.sortable')); when you call the above function, the corresponding js file will be loaded to that module. If everything goes well,you can create a dialog box jquery_ui_add('ui.dialog'); <script> $(document).ready(function() { $('.message').dialog(); }); </script> <div classs="message"t>Hello</div> Run that, and bask in the glory of your newly found jQuery expertise! Happy coding!. Javascript Web Development Drupal JQuery Leave a reply Your email address will not be published. Required fields are marker *
Leave a reply
Your email address will not be published. Required fields are marker *

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.