aspose file tools
The moose likes Servlets and the fly likes jsp or javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "jsp or javascript" Watch "jsp or javascript" New topic
Author

jsp or javascript

GUBAL
Greenhorn

Joined: Sep 28, 2001
Posts: 2
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.

KUMAR H.D
Sagar B
Greenhorn

Joined: Sep 29, 2001
Posts: 2
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

Joined: Sep 27, 2001
Posts: 12
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 .

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: jsp or javascript
 
Similar Threads
refresh parent window from child window
Opening Pop up WIndow from action class
dealing with caching in IE
Popup to parent communications
Spring DAO Session refresh