Christopher Fernandes wrote:
The ParentFunction() is declared within the $(document).ready() function on the List.aspx page.
So you have something that looks like this?
$(document).ready(function(){
function ParentFunction(){
...
}
});
If that's the case, the
ParentFunction
is only available to other code in the same scope. Anything outside of that
$(document).ready(...)
block won't be able to call the function.
If you need the function to be available from the global scope, then you need to either move the declaration outside of the
$(document).ready(...)
block, or explicitly declare it in the global scope:
$(document).ready(function(){
window.ParentFunction = function ParentFunction(){
...
}
});