Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Java script

Java script

Scheduled Pinned Locked Moved ASP.NET
helpjavajavascriptsysadmintools
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    ybasha
    wrote on last edited by
    #1

    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

    C 1 Reply Last reply
    0
    • Y 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

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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 )

      Y 1 Reply Last reply
      0
      • C Christian Graus

        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 )

        Y Offline
        Y Offline
        ybasha
        wrote on last edited by
        #3

        No the script is in the application which deployed in server B which in turn am calling through server A main application.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups