Win a copy of Fixing your Scrum this week in the Agile 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

How to share the data between two web pages ?

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Hello All,

I'm working on a sample project, where in upon clicking a button or hyperlink, a popup window is opened and some values entered on that popup are required to be updated back on the original page. To put it simple,

for eg, If I click a button on page A, a popup page B. I entered some values on page B and it goes to server for some processing and the results are returned back. However, I need that response to be updated back on page A.

My gut feeling is it is NOT possible. However, since I saw similar prefill kind of applications in Banks, I'm thinking that it is possible but with some tweaks. How can this be done?

Does Spring provide any built in features for this kind of usecase?

For now, to mimic it, the server is rendering the page A after processing, so that way I see that PageA is displayed. But that PageA is not the same PageA originally the request is sent. I see both pages in separate browser windows...


or Am I sounding stupid ?
 
Sheriff
Posts: 67579
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ravi C Kota wrote:My gut feeling is it is NOT possible.


Of course it is. The child window has access to the parent via the opener JavaScript variable.
 
Ravi C Kota
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Bear,

Will do some research on "opener"
 
Bear Bibeault
Sheriff
Posts: 67579
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In a child window, opener will refer to the window object of the window that created the page,
 
A wop bop a lu bob a womp bam boom. Tutti frutti ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic