I'm new to SharePoint dev and i've implemented SPServices Cascaded dropdown using Jquery.
I managed to get it to work in a subsite of the top level site collection, without problems. But the problem is that i've got some lists and a lib on the top level site collection and i want to implement the Cascaded dropdown there also. And that won't work, i've checked if the scripts are fully loaded with following code;
<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
<script language="javascript" src="//sharepoint/Style%20Library/jquery-1.10.2.min.js"></script>
<script language="javascript" src="//sharepoint/Style%20Library/jquery.SPServices-2013.01.min.js"></script>
<script language="javascript" >
$(document).ready(function() {
alert("jquery");
alert($().SPServices.SPGetCurrentSite());
});
</script>
And indeed, it gives me the two pop-ups, so there's no problem.
But when i render the following code;
<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
<script language="javascript" src="">http://sharepoint/SPServices/jquery-1.10.2.min.js</script>
<script language="javascript" src="">http://sharepoint/SPServices/jquery.SPServices-2013.01.min.js</script>
<script language="javascript" >
$(document).ready(function() {
$().SPServices.SPCascadeDropdowns({
relationshipList: "lookupCountry",
relationshipListParentColumn: "Region",
relationshipListChildColumn: "Title",
parentColumn: "Region",
childColumn: "Country",
debug: true
});
});
</script>
Nothing happens...not even an error.
I've checked the blog of Marc D Anderson, and read the documentation of the SPServices and so many others, but without success.
Could anyone help me please?