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

Refresh Browser then Open a Popup

 
Lou Pelagalli
Ranch Hand
Posts: 150
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Using Struts 1.1.

Does anyone have suggestions as to how I can accomplish the following?

1) User submits form.
2) Database is updated.
3) Current browser is refreshed to show database changes.
4) A popup window is opened.

I have working all but step 3 at this time.

Thank You in Advance for Your Help,

Lou
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
3 should be cake. When the page is submitted, they're taken to a page that presents the new db info. What's so difficult.
 
Lou Pelagalli
Ranch Hand
Posts: 150
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Marc,

Thank you for checking out my post.

I'm glad to know that you think this is not difficult.

I'm new to this and I'm needing help to accomplish my task.

I am having difficulty with is how to refresh the current browser and then open a popup from the same for submit. That is, one submit does both actions.

Any suggestions?

Lou
[ June 28, 2004: Message edited by: Lou Pe ]
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ooooh... I understand your problem now.

You currently have the pop-up set as the target of your submission.

Well, this will be a tad tricky.

My hunch is that you could have the submission be for the same window and this will take care of the refresh. (Prob 3 solved)
But now number 4 is a problem...
I would then include some javascript so that a new window is opened when entering the new page OR the javascript could open the new window upon submission. The first might be better if the pop-up is to display info pertaining to the submission.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic