I have to call jquery in the parent window after reload completes,so i need this ans...thanks.
A:
You can do this:
- in parent window, you write this code
<script>
window.open('child.html','child','width=800,height=640');
</script>
Don't forget to add your code in your parent window too
<script>
function doWhatYouWant() { alert('hi!'); }
</script>
- in child window, you just add this code
<script>
$(document).ready(function(){
window.opener.doWhatYouWant();
});
</script>
Is that like you want?
Jef
2009-12-10 07:06:56
i want to know the parent window reloading completion status when i reloading it from a popup window. I am able to call as you said here, but i want to call it after parent window reloads,for that i need help...
Kumar
2009-12-10 07:25:08
can you do like below:in window.opener.doWhatYouWant() change to$(window.opener).ready(function() {window.opener.doWhatYouWant();});"ready" refer to jQuery documentation, http://www.electrictoolbox.com/jquery-document-ready-initialization/ or http://think2loud.com/jquery-document-ready-howto/
Jef
2009-12-11 05:19:28