Trying to change parent document from child document - RESOLVED
I saw this in the form in a few places where the child document can access the JQuery of a parent document. I do not have any HTML in the child document. It is only PHP creating mySQL databases and tables. I have this at the end of the document/script. Neither way works but I am showing both of what I did.
<script type="text/javascript">
$("#tabs").parent.tabs( "option", "disabled", [ 0, 1, 3, 4 ] );
$("#tabs").parent.tabs("option", "active", 2);
window.parent.$("#tabs").parent.tabs( "option", "disabled", [ 0, 1, 3, 4 ] );
window.parent.$("#tabs").parent.tabs("option", "active", 2);
</script>
What is the proper way to access the parent from the child? I want to enable the next tab. I have no other way of knowing when the child ends. I could set a cookie and keep testing for it but that is a waste of cycles. Is there some way that i could kick off a function on the parent to execute the scripts to enable the next tab?
As usual, all help is greatly appreciated.
Mike