• 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

jsp or javascript

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello friends
i have a page wherein i'am getting data from database.i'am giving a link from the page(same) to open new window wherein new details can be feed.
my problem is once details r fed and window is closed the page has to be refreshed and newly added deyails r to be shown .
how can i do ?
ishould have a function where in at once it has to close the window and refresh the page.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The best thing is you can assign the new values to either the hidden form fields or the java script variables in the parent window and close the child window. Once you have assigned the values you can either submit the form and get the page with new values of if you have used the java script variables just just set the location bar url to the new one with the new set of values and generate the new page with new values.
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Gubal ,
My approach for solving the above problem is different .
If you are interested just think in these terms .
1. If you are opening new window to Add new Items WHY CAN'T YOU OPEN ANOTHER WINDOW WHERE YOU CAN FETCH AND GIVE THE USER AN OPTION TO SELECT . This resembles List of Values if you are in touch with Client/S Tech. This will be a reusable component if you build .
B'cause refreshing the page is not a good idea .
If you have further questions Pls go ahead .

 
reply
    Bookmark Topic Watch Topic
  • New Topic