Hi I am using this piece of code to pull a data source from a webservice but it keeps coming up empty. Funny thing is that I actually just copy and pasted the exact code from elsewhere in my site where it was working perfectly and just changed the variables. Anyone know why this would be happening.
Code:
searchInit is being called from document.ready.
Here is the url for the webservice: http://itracdev.com/scripts/db/partners.php?task=select&subtask=getContacts&EEID=1&ClientID=1
The console.log(searchPartnerSource) and empty data object.
Code:
searchInit is being called from document.ready.
Here is the url for the webservice: http://itracdev.com/scripts/db/partners.php?task=select&subtask=getContacts&EEID=1&ClientID=1
The console.log(searchPartnerSource) and empty data object.
function
searchInit(){
console.log(
'ClientID = '
+clientID);
var
searchPartnerSource =
new
kendo.data.DataSource({
transport: {
read:
"/scripts/db/partners.php?task=select&subtask=getContacts&EEID="
+eeMemberID+
"&ClientID="
+clientID
},
schema: {
data:
"data"
},
pageSize: 5
});
console.log(searchPartnerSource);
}