How to call function on parent page from iframe using jQuery?

Your stopUpload() function is scoped to the anonymous function you pass to $(document).ready().

Your stopUpload() function is scoped to the anonymous function you pass to $(document).ready(). You will need to ensure its scope is visible to the iframe. One way to do that would be to assign the function to window, the global object in a browser.

Another method would be to create the function in the global code, outside of that anonymous function.

Try this: var myGlobalObject = {}; myGlobalObject. StopUpload = function(success){ if (success == 1){ /*...*/} //... }; $(document). Ready(function() { //... }); From your iframe: $(document).

Ready(function() { parent.myGlobalObject.stopUpload(); }).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions