Interacting with a dataTable initialised by iFrame from parent document
Interacting with a dataTable initialised by iFrame from parent document
enigmaclough
Posts: 8Questions: 3Answers: 0
I have a page which loads a FancyBox iFrame. Within the iFrame through interaction a table is created from an Ajax request and the iFrame document applies dataTables to the table.
If I try to interact with this dataTable from the iFrame parent the requests fail. I believe that this is because the dataTable was created within the iFrame and therefore the parent document has no reference to the dataTable.
What I am trying to achieve is to use the fnDestroy() function on the dataTable within the iFrame. Any suggestions as to how this can be achieved?
By the way, everything is on the same domain, just to clarify.
If I try to interact with this dataTable from the iFrame parent the requests fail. I believe that this is because the dataTable was created within the iFrame and therefore the parent document has no reference to the dataTable.
What I am trying to achieve is to use the fnDestroy() function on the dataTable within the iFrame. Any suggestions as to how this can be achieved?
By the way, everything is on the same domain, just to clarify.
This discussion has been closed.