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. JavaScript
  4. showmodaldialog return value undefined across domain

showmodaldialog return value undefined across domain

Scheduled Pinned Locked Moved JavaScript
javascripthelp
5 Posts 3 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.
  • A Offline
    A Offline
    Amr M K
    wrote on last edited by
    #1

    Dear All, I have problem , I am trying to use showmodaldialog javascript. it always return undefined if you call page from out of domain,while if try to call page inside domain will return result

    Yes. CreatiVity withOuT limiTs

    J B 2 Replies Last reply
    0
    • A Amr M K

      Dear All, I have problem , I am trying to use showmodaldialog javascript. it always return undefined if you call page from out of domain,while if try to call page inside domain will return result

      Yes. CreatiVity withOuT limiTs

      J Offline
      J Offline
      jkirkerx
      wrote on last edited by
      #2

      Some Javascript and Jquery in same domain only, like $.AJAX You would have to post code for a better anwser

      A 1 Reply Last reply
      0
      • A Amr M K

        Dear All, I have problem , I am trying to use showmodaldialog javascript. it always return undefined if you call page from out of domain,while if try to call page inside domain will return result

        Yes. CreatiVity withOuT limiTs

        B Offline
        B Offline
        BobJanova
        wrote on last edited by
        #3

        You can't use AJAX across domains. If this script is using AJAX under the covers then it won't work with a cross-domain URL.

        A 1 Reply Last reply
        0
        • B BobJanova

          You can't use AJAX across domains. If this script is using AJAX under the covers then it won't work with a cross-domain URL.

          A Offline
          A Offline
          Amr M K
          wrote on last edited by
          #4

          No I am just call from site ZZZ var dlgResult = showModalDialog("YYYYY.aspx", '', "dialogWidth:880px;dialogHeight:400px;status:1"); In site YYYYY YYYYY.aspx return

          function ExitPage(UserName,CardSerial)
          {
          var dlgResult = new Array();

                 dlgResult\["UserName"\] = UserName;
                        window.returnValue = dlgResult;
          
                 window.close();
             }
          

          but alway return undefined I test same procedure in pages in save domain ZZZ ,and return correct result

          Yes. CreatiVity withOuT limiTs

          1 Reply Last reply
          0
          • J jkirkerx

            Some Javascript and Jquery in same domain only, like $.AJAX You would have to post code for a better anwser

            A Offline
            A Offline
            Amr M K
            wrote on last edited by
            #5

            could u check next reply

            Yes. CreatiVity withOuT limiTs

            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