Currently, the new pages are tagged by browsers, and the JS scripts of various browsers are also a little incompatible.
It was just a list of employees and then click the link to pop up the modification window function for a long time. Fortunately, I finally got it done. (remember to add <base target = "_ Self"/> to the pop-up page)
There is also the plum blossom rain calendar JS used in the sub-page (the pop-up modification page) will also have problems, when the closure will have problems what causes do not know
It's right if you don't use it.
Home page:
<SCRIPT> function showdialog (depid) {var A = showmodaldialog ("Modify modify. aspx? Depid = "+ depid +" & RDM = "+ math. random (), "", "dialogwidth: 500px; dialogheight: 200px; Status: No; help: No; scrolling = no; scrollbars = No") if () // determine whether the Sub-page is updated or not. replace (location. href)} </SCRIPT> <a onclick = "showdialog (<% # eval (" ID ") %>)"> <% # eval ("region name ") %> </a>
Subpage backgroundCode:
Utils. MessageBox. responsescript (this, "alert ('updated successfully'); window. returnvalue = true; window. Close ();");
Effect (displayed on the windows of Firefox Ie world ):
Click "cancel" to close the mode window. The home page is not refreshed.
Click "Submit" to update the data close mode window and refresh the home page.