Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Conflict between two scripts inside content editors placed on the same page while using sp.js in 2010

$
0
0

Hi,

Currently I have two scripts that are placed inside content editors in the same page.

Both the Scripts have "$(document).ready();" functions inside which

SP.SOD.executeFunc('sp.js', 'SP.ClientContext', function-name);  is placed.

But only one script gets executed but the other throws an error stating "SP.ClientContext.get_current" is undefined or null.

Any help would be appreciated.

Thank you,

Sachin



Viewing all articles
Browse latest Browse all 11571

Trending Articles



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