Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Sharepoint 2013 Enablescript not working within IE

$
0
0

Hi,

We have been developing Sharepoint 2013 ribbon extension (CustomAction).
An extra button within the ribbon which is enabled based on certain conditions (e.g. privileges).
We implemented these conditions within a separate js file which implements a method. EnableDisable().
We declare the function within the elements.xml as

    EnabledScript="javascript:EnableDisable();"

The script is declared as

     ScriptSrc="/_layouts/15/Scripts/enable.js"

via an separate custom action with Loctation="ScriptLink"

When I test the functionality all works fine within Chrome and Firefox, but the code is not triggered from IE (tested with IE 8, 9 and 10). To test I simple added an alert to the first line of the js method but I never see this alert in IE, so it seems the code is never called.

Does someone have an idea of this issue?

Regards

Maurice Martin


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>