Java script
-
Hi There, I need your help in the following, i have a web application in server A, which in turn call another application in server B, to upload a file in server B, now the upload part is working fine after upload i have return a Java script to close the window once the upload is completed, the script is not working...below is the script. private void CloseSelf() { //Spit Startup Script to the Page to show the error message Page.RegisterStartupScript( "CloseSelfWindow", @" <!-- var vRecID = document.getElementById('hdnRecID').value; if (top != self) { top.location= remoteSeverAddress + 'Home.aspx?cType=A&DocID=' + vRecID ; } --> ") ; } i even tried another script just in Server B private void closeSelf1() { Page.RegisterStartupScript("PopupScript", "javascript:window.opener='x';window.close();"); } the above script is working when am opening the page in server B but it not working when am opening the page in server A... any suggestion or help, please do the needful...Thank for your time. regards Ybasha
-
Hi There, I need your help in the following, i have a web application in server A, which in turn call another application in server B, to upload a file in server B, now the upload part is working fine after upload i have return a Java script to close the window once the upload is completed, the script is not working...below is the script. private void CloseSelf() { //Spit Startup Script to the Page to show the error message Page.RegisterStartupScript( "CloseSelfWindow", @" <!-- var vRecID = document.getElementById('hdnRecID').value; if (top != self) { top.location= remoteSeverAddress + 'Home.aspx?cType=A&DocID=' + vRecID ; } --> ") ; } i even tried another script just in Server B private void closeSelf1() { Page.RegisterStartupScript("PopupScript", "javascript:window.opener='x';window.close();"); } the above script is working when am opening the page in server B but it not working when am opening the page in server A... any suggestion or help, please do the needful...Thank for your time. regards Ybasha
Sounds like you have a scrpt on serverA and you want it to run on serverB ?
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
Sounds like you have a scrpt on serverA and you want it to run on serverB ?
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )