Click to See Complete Forum and Search --> : parent Page reload (urgent)


sayfrndship
09-04-2008, 05:09 AM
Hi,

I need to reload a parent page, that opens a page in new window using javascript. Scenerio is following

I have websitepage, there is dropdown list of components(each component has own .asp), when i click on edit component. A new window opens. for each component there is one asp file that opens all of component into that file named(edit_comp_frame.asp), it contains a iframe that has file(edit_comp.asp), from that file the actual file of compnent is executed(e.g componet clander has file calendar.asp)
There is user interface tab in that file(component file), and it has various field element, at last it has update Button,
I need to refresh my parent window when update button is clicked.
Can any one tell me how to do ?

The main problem is taht the component file doesnot know the previous files like edit_comp.asp or edit_comp_frame.asp or even parent file.

sstalder
09-04-2008, 12:35 PM
Look up the javascript DOM call window.opener - should get you started.

i.e. window.opener.reload();

sayfrndship
09-04-2008, 11:18 PM
I need to do refresh my parent window only after update button in component file is submitted.
While window.opener.reload() will get reload on opening popup window[event].

sstalder
09-04-2008, 11:26 PM
Exactly, so you use a function to open the window with window.open then use window.opener.reload to reload the page from your pop-up window once your button is submitted.