The Calendar item is not getting popup

Hi,

I have migrated my site from SP2010 to SP2013.Everything is fine and while I click the calendar item in the following  javascript error is coming

'SP.UI.ModalDialog' is null or not an object


.Now i click the other list item to view then click the calendar item now it is working good.

         I tried the method

"ExecuteOrDelayUntilScriptLoaded (<method>, "sp.js");"

 but there is no use and i added manually the reference for the following files in my master page but the error list getting extended.

 <script type="text/ecmascript" src="/_Layouts/MicrosoftAjax.js"></script>
 <script type="text/ecmascript" src="/_layouts/sp.core.js"></script>
 <script type="text/ecmascript" src="/_layouts/SP.js"></script>
 <script type="text/ecmascript" src="/_layouts/SP.UI.Dialog.js"></script>

could you guide me please? 

Thanks.





November 11th, 2013 1:43am

Hi,

Pls try using "ScriptLink" of OOTB SharePoint for loading the Javascript as shown below.

<SharePoint:Scriptlink runat="server" Name="SP.js" Language="javascript" />

Regards,

Free Windows Admin Tool Kit Click here and download it now
November 11th, 2013 1:57am

Thanks Partner,

I added all files but no use...Any other idea...

<SharePoint:Scriptlink runat="server" Name="SP.UI.Dialog.js" Language="javascript" />
<SharePoint:Scriptlink runat="server" Name="SP.CORE.js" Language="javascript" />
<SharePoint:Scriptlink runat="server" Name="MicrosoftAjax.js" Language="javascript" />
Thanks.

November 11th, 2013 4:56am

I Think this problem is because since you have migrated the site from SP 2010 to SP 2013 the layouts path would have go changed form 14 Hive to 15 Hive. In SP 2013 you will have both the folders (14 & 15). I think the layouts path is not getting referenced properly in the master page. Can you pls try this. If this works then its definitely the path issue.

<script type="text/javascript" src="/15/_Layouts/MicrosoftAjax.js"></script>
 <script type="text/javascript" src="/15/_layouts/sp.core.js"></script>
 <script type="text/javascript" src="/15/_layouts/SP.js"></script>
 <script type="text/javascript" src="/15/_layouts/SP.UI.Dialog.js"></script>

Re

Free Windows Admin Tool Kit Click here and download it now
November 11th, 2013 5:24am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics