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. jquery + iframe passing values

jquery + iframe passing values

Scheduled Pinned Locked Moved JavaScript
javascript
5 Posts 2 Posters 1 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.
  • F Offline
    F Offline
    fififlowertot
    wrote on last edited by
    #1

    i have a search on my aspx page and after entering serch text and on click of search button, i open a jquery modal window whioch loads a seperate aspx page in iframe. I have been unable to pass the values to by jquery modal and also which is the best way to get the values back from the modal. I am calling an external service in the popup which returns data. Thanks,

    S 1 Reply Last reply
    0
    • F fififlowertot

      i have a search on my aspx page and after entering serch text and on click of search button, i open a jquery modal window whioch loads a seperate aspx page in iframe. I have been unable to pass the values to by jquery modal and also which is the best way to get the values back from the modal. I am calling an external service in the popup which returns data. Thanks,

      S Offline
      S Offline
      Sunasara Imdadhusen
      wrote on last edited by
      #2

      Do you have to pass value to the Popup and get back to the Main page?

      sunaSaRa Imdadhusen +91 99095 44184 +91 02767 284464

      F 1 Reply Last reply
      0
      • S Sunasara Imdadhusen

        Do you have to pass value to the Popup and get back to the Main page?

        sunaSaRa Imdadhusen +91 99095 44184 +91 02767 284464

        F Offline
        F Offline
        fififlowertot
        wrote on last edited by
        #3

        yes sunasara

        S 1 Reply Last reply
        0
        • F fififlowertot

          yes sunasara

          S Offline
          S Offline
          Sunasara Imdadhusen
          wrote on last edited by
          #4

          You can get Value of Parent page from child like

          var parentTextValue = window.parent.document.forms[0].txtBox.value;

          Now you can send value to the Parent like

          window.parent.document.forms[0].txtBox.value = "Set from child"

          Thanks, Imdadhusen

          sunaSaRa Imdadhusen +91 99095 44184 +91 02767 284464

          F 1 Reply Last reply
          0
          • S Sunasara Imdadhusen

            You can get Value of Parent page from child like

            var parentTextValue = window.parent.document.forms[0].txtBox.value;

            Now you can send value to the Parent like

            window.parent.document.forms[0].txtBox.value = "Set from child"

            Thanks, Imdadhusen

            sunaSaRa Imdadhusen +91 99095 44184 +91 02767 284464

            F Offline
            F Offline
            fififlowertot
            wrote on last edited by
            #5

            window.parent gives an error of null object

            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