2013年10月21日星期一

Through the open window showModalDialog how to jump to the previous window ?

Using struts1

first window through window.showModalDialog (url, obj, various parameters ) to open a second window

second window will form submitted to the background function () {form.submit ();}

action

action(){

   msgs.add("all", new ActionMessage("MsgC012", "保存"));
saveMessages(request.getSession(), msgs);
return mapping.findForward("list");
   }
 


form after the submission of the second window shows the contents of a window
How can I make after the submission of the second window to jump to the first window , and the message is displayed ?

first window display message content using struts

<html:messages id="msgs" message="true">
<bean:write name="msgs" />
</html:messages>




------ Solution ------------------------------------ --------
child window and parent window with JS communications , window.returnValue not used ?

child window submit , jump back to a blank page , empty page onload method with the return value returnValue , turning themselves off ,
------ For reference only --------- ------------------------------
need to dynamically refresh the next page , and do not refresh the new data is certainly not right < br> ------ For reference only ---------------------------------------

Moderators mean, in the first page with location.reload ();?
so that the data is out of the background save the message , but do not show the
------ For reference only ------------ ---------------------------
heroes hero monsters are out of it this thing out for a few days < br> ------ For reference only ---------------------------------------


thank yourself to see that done before Gaolebantian have someone responds to my poor 40 points

没有评论:

发表评论