This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes page refresh , have to use ajax Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "page refresh , have to use ajax" Watch "page refresh , have to use ajax" New topic
Author

page refresh , have to use ajax

Sekhar Chand
Ranch Hand

Joined: Apr 05, 2006
Posts: 73
hai friends,
in one jsp page after 40 fieldswill be there .After entering 4 fields one link(add new client) will be there , by clickng that link one pop up window will opens , after submitting form in that popup window that window closes and in the parent window, the result must be added into the list box .

here i am not getting idea to refresh that parent wiondow after closing the window and the 4 fields that which i entered before clicking the link must be there only after refreshing that page.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Moved from JSP to HTML/Javascript where client side issues are discussed.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Originally posted by Ratna sekhar Kamireddy:

here i am not getting idea to refresh that parent wiondow after closing the window and the 4 fields that which i entered before clicking the link must be there only after refreshing that page.


That makes no sense, but I will try to make sense of it.

You can refresh the page with one line in the child

window.opener.location.reload();

You can send a new value from the pop up window to the parent

window.opener.formName.elementName.value = parseInt(window.opener.formName.elementName.value) + myVariable;

Eric
 
GeeCON Prague 2014
 
subject: page refresh , have to use ajax