This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp or javascript  RSS feed

 
GUBAL
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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.
 
Sagar B
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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.
 
kvk kishore
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • 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 .

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!