Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

parent window refresh

 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Requirement: I have a html page(say Browser1) which opens a small window on click of a button.
I enter few info., in the child window and then click submit. The parent window(Browser1) should get refreshed.
The javascript (onSubmit) i have written in child window for the same looks like this...

This works properly..
Problem:
But if I have another browser window(say Browser 2) open then open the child window from it.. Click on submit of child window.
The "Content_Frame" of Browswer Window 1 is getting refreshed.. which is not acceptable.
The "Content_Frame" of Browser Window 2 should get refreshed since that is the parent of the child window.
Please let me know if you have some inputs.
Thanks in Advance,
Nijeesh.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try putting opener.refresh(); in the child window window.
 
Here. Have a potato. I grew it in my armpit. And from my other armpit, this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic