Updating the parent page from the child page using javascript, is a very straight process. I have outlined very simply the steps below:
In this example, I am going to post data back to the parent from the child page.
In order to set the post parameters you would like posted to the page, set your variables first like so
window.opener.document['formName'].variableName.value=theValue
This bit of code basically sets the variableName with a specific value on the parent window. Once you have done this for all the variables you need to post to the page, you want to submit the variables. This can be accomplished with:
window.opener.document.formName.submit();
If you need to refresh the parent window from the child, just use window.opener.reload().
A very simple way to post data to the parent.
I don’t get it
What don’t you get and I will be very happy to explain?
hi??
Hi, how can I help you?