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

JCOM script to invoke sample list data throws "'Type' is undefined" error

$
0
0

Guys,

On a sharepoint 2013 webpart page i am using Script Snippet webpart and using the most basic JCOM script to get list data but the script fails with the error message, can any one tell me what i am doing wrong here :  

Error Message :

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)

Timestamp: Fri, 24 May 2013 16:44:35 UTC

Message: 'Type' is undefined

Line: 2

Char: 1

Code: 0

URI: http://<servername>/sites/Audit/Pages/_layouts/15/sp.runtime.js

Message: 'Type' is undefined

Line: 2

Char: 1

Code: 0

URI: http://<servername>/sites/Audit/Pages/_layouts/15/sp.js

The script that i am using is :

<script type="text/javascript" src="_layouts/15/sp.runtime.js"></script>

<script type="text/javascript" src="_layouts/15/sp.js"></script>

<script type="text/javascript">

var siteUrl = ‘/';

function retrieveAllListProperties() {

               alert('test');

}

function onQuerySucceeded() {

   alert('listInfo');

}

function onQueryFailed(sender, args) {

alert('error');

}

</script>





Viewing all articles
Browse latest Browse all 25064

Trending Articles