BookmarkSubscribeRSS Feed
DavidPhillips2
Rhodochrosite | Level 12

I’m using

A Jquery plugin from

http://wenzhixin.net.cn/p/multiple-select/docs/

to display multiple selectable dropdowns inside of a stored process displayed in a web url portlet.

Everything runs fine in Chrome and Firefox.

The plugin runs fine without using it nested in SAS. 

When I run it in the portlet in Internet Explorer 11 I receive:

Error: Object doesn't support property or method 'addEventListener'

This appears to be a compatibility issue.  Is there a known issue with Jquery + SAS + IE 11?

My SAS Platform is 9.2.

11 REPLIES 11
BrunoSilva
Quartz | Level 8

Hello,

I think this error is specific to IE 11 and to solve it you need to use compatible mode.

To force IE compatibility mode on the user use this code in the master page:

<META http-equiv="X-UA-Compatible" content="IE=9">

A few foruns refer that we should use :

<meta http-equiv="X-UA-Compatible" content="IE=edge;" />

Best Regards

DavidPhillips2
Rhodochrosite | Level 12

What is the master page? If I am displaying a stored process inside of a web url portlet?  If I add either compatibility mode line SAS seems to strip it out.  When you view the source the compatibility line is not in the head section of the code.

BrunoSilva
Quartz | Level 8

That's a good point that I didn't notice in the original message.

I think in the URL display portlet what you get is your content inside an iframe, and I think that IE does not allow mixing IE modes in a frame hierarchy.

How about setting the browser in compatibility mode just for check if it solves.

https://kb.wisc.edu/page.php?id=35591

DavidPhillips2
Rhodochrosite | Level 12

Since it is a stored process knowing what to add to the compatibility list is confusing

BrunoSilva
Quartz | Level 8

Yes, you are right. And probably the only way is to add the SASPortal causing other problems.

And since adding this to you page didn't worked:

<html>
  
<head>
  
<meta http-equiv="X-UA-Compatible" content="IE=edge;" />
  
</head>
  
<body>
  ...
  
</body>
</html>

Probably the only way to fix it is digging in the plugin code to add the event listener according to the IE version.

boemskats
Lapis Lazuli | Level 10

Hi David,

Does the stored process fail to render in the same way when you load it directly in IE11, or is it only when you display it inside a URL display portlet?

DavidPhillips2
Rhodochrosite | Level 12

Not sure how I could display it without showing it in the portlet.

BrunoSilva
Quartz | Level 8

Display using the SAS Stored Process Web Application. (/SASStoredProcess)

It solves the STP withou any iframe I think.

Best Regards

dav_amol
Calcite | Level 5

David,

 

     I am facing same issue with JQuery + SAS + IE 11 when tried to have multiple selectable dropdowns inside of a stored process displayed in a web url portlet with SAS 9.4. .

 

Even though I added below given code for my HTML generating Stored process I am still getting same error  Object doesn't support property or method 'addEventListener'

 

<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

 

Did you fix the issue with your application? If yes , could you please share the solution for this problem? 

boemskats
Lapis Lazuli | Level 10

I don't think this has anything to do with SAS.

 

Could try a polyfill, but - what version of JQuery are you running?

dav_amol
Calcite | Level 5

This issue seems to be related with below given note :

 

http://support.sas.com/kb/55290

As Portal is supporting IE 7 features only , I cannot use jquery based application in my portlets. I have to use direct link and per Tech Support reply there is no work around for it.  

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 11 replies
  • 7056 views
  • 0 likes
  • 4 in conversation