0

I am getting the following js error on the console when attempting to open a popup window using MooDialog.Request. It works in IE7/IE8 and Chrome, but not IE9 and possibly later IE versions. I have seen some similar questions related to this, but not concerning a popup.

SCRIPT5022: DOM Exception: INVALID_CHARACTER_ERR (5) 
mootools-1.2.4-core.js, line 122 character 47

Here is the code where I am making the call to MooDialog.Request...

var formid = 127;  // for the purposes of this example
var dialog = new MooDialog.Request('viewoptionsform.cfm?form=' + formid,
                null,
                {
                   size: {width: 400, height: 350},
                   useScrollBar: false,
                   closeOnOverlayClick: false,
                   disposeOnClose: false
                });

Has anyone else experienced anything similar or have any suggestions for me to try? Many thanks in advance...

jtb
  • 139
  • 7
  • Using mootools v1.2.4 which is required for MooDialog – jtb Feb 05 '15 at 17:14
  • That version of MooTools **predates** the release of IE9 by about 2 years. It's not at all unlikely that some subsequent MooTools release would have fixed the problem. – Pointy Feb 05 '15 at 17:21
  • Can you not upgrade the MooTools version? Better to update the plugin and use a more recent MooTools version. Is it Arian's MooDialog? then you could upgrade to a later version... – Sergio Feb 05 '15 at 18:56
  • It's not easy to upgrade as it would require substantial regression testing. However, there may be a possibility that the project will have funding to rewrite the software, in which case Mootools will be replaced with jQuery. – jtb Feb 07 '15 at 23:53
  • @jtb if you can make a jsFiddle reproducing the problem would be easier to help... – Sergio Feb 09 '15 at 03:20
  • An upgrade to MooTools v1.2.5 for the specfic web page only has resolved the issue. Thanks for your advice. – jtb Feb 16 '15 at 13:42

0 Answers0