| || |
dom webtable obj
I'm trying to test a table on a page. When you upload a file to this table, the page keeps on refreshing until the file finishes loading. I'm grabbing the table dom objects and continuing to check if the upload is done. However, as soon as the page reloads (which happens every 20 secs during file upload) I get <Permission denied> error when trying to access the same table dom object that I grabbed earlier. I looked at other posts dealing with refreshing and tried myTable.refresh, but still get the same error. Is there a way to make this obj reference NOT the live dom obj on the refreshed page, but rather the old one that I grabbed before the refresh?
Re: dom webtable obj
This happens because the page is refreshing and you are trying to access the DOM during that loading interval. You need to put a logic to wait for the page to load and then access those elements