That alert returns "null" right before the function errors out. I'm using Chrome (newest) and have some experience writing and debugging JavaScript, although it has been a while since I have. The error is the same (although reported differently) in IE11.
DOM Ready: Yes, the code is wrapped in "$(document).ready(function() {" and it WAS working for over a year on SP1 of SharePoint 2010. This only started happening after upgrading to SP2. ,,_ My code that calls "$().SPServices.SPCascadeDropdowns".
In fact, here is my code:
DOM Ready: Yes, the code is wrapped in "$(document).ready(function() {" and it WAS working for over a year on SP1 of SharePoint 2010. This only started happening after upgrading to SP2. ,,_ My code that calls "$().SPServices.SPCascadeDropdowns".
In fact, here is my code:
<script type="text/javascript">
$(document).ready(function() {
$().SPServices.SPCascadeDropdowns({
relationshipList: "{902421AC-9B8C-41D5-9452-EA2B71EB43E8}",
relationshipListParentColumn: "Department",
relationshipListChildColumn: "Title",
parentColumn: "Department_",
childColumn: "Category_",
simpleChild: true,
debug: true
});
$().SPServices.SPCascadeDropdowns({
relationshipList: "{7CFFAF21-F75F-4D6B-897B-A1B461B47389}",
relationshipListParentColumn: "Category",
relationshipListChildColumn: "Title",
parentColumn: "Category_",
childColumn: "Sub-Category_",
simpleChild: true,
debug: true
});
// alert("jQuery loaded");
});
</script>