Joomla Modal Pop up did not load shows a blank page

THE PROBLEM

The Joomla modal window script syntax in the file /media/system/js/modal.js produces the following error when benig displayed with Firefox:

COULD NOT CONVERT JAVASCRIPT ARGUMENT ARG 0 [NSIDOMHTMLDIVELEMENT.CONTAINS]
LOCALHOST/UKNOWVA/MEDIA/SYSTEM/JS/MODAL.JS
LINE 220

This is a bug in the file modal.js. It was filed already here. You can do the following to get a workaround for this:

THE SOLUTION

#1 UNCOMPRESSED MODAL.JS:

Search for this line in /media/system/js/modal.js (Line 220):

else if (!(content !== this.content && this.content.contains(content)))

and replace it with this:

else {this.content.adopt(content);}

#2 COMPRESSED MODAL.JS

Search for this:

this.content.set("html",a):a!==this.content&&this.content.contains(a)||this.content.adopt(a))

and replace it with this;

this.content.set("html",a):this.content.adopt(a))

source: kb.lexo.ch

Scroll To Top