Hello,
I'm having a technical issue in a web project, involving an Ajax file upload.
I'm using the well-known "fake Ajax iFrame technique".
The problem is that it is necessary for the page that calls the upload method to receive the database primary key of the inserted record, made with the upload.
So what happens is : we have a page with a form. On submission, the content is moved to an iframe, a post submit is made by the iframe, wonderful it works. The response is made of HTML, including a very small script that does something like parent.method(primaryKeyAfterRecordInsertion); That way we can manipulate the DOM of the parent later, and display something like "inserted file ID : xxx". But calling the parent method is not working. My guess is that it's not working because the content of the iFrame is not the same (it has been replaced after the response), and for some reason the iFrame cannot call methods on the parent anymore.
Any guess ? I can give more details if needed.
Any help would be greatly appreciated.
Best regards,
Nils