• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Refresh Browser then Open a Popup

 
Ranch Hand
Posts: 150
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Roses are red, violets are blue. Some poems rhyme and some don't. And some poems are a tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic