Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to share the data between two web pages ?

 
Ravi C Kota
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • 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 ?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64848
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thanks Bear,

Will do some research on "opener"
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64848
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a child window, opener will refer to the window object of the window that created the page,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic