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. js problem

js problem

Scheduled Pinned Locked Moved ASP.NET
helpjavascript
5 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.
  • S Offline
    S Offline
    srinandan
    wrote on last edited by
    #1

    hi :) i have a page for image upload and text boxes to along the page using the validator to validate the textboxes. and want to open the my pop window (say successully done - my own page not the ok dialog box). when the image upload successfully. once the user will click ok we need to redirect the parent page another. Any help will really appreciate Regards, Srinandan

    C 1 Reply Last reply
    0
    • S srinandan

      hi :) i have a page for image upload and text boxes to along the page using the validator to validate the textboxes. and want to open the my pop window (say successully done - my own page not the ok dialog box). when the image upload successfully. once the user will click ok we need to redirect the parent page another. Any help will really appreciate Regards, Srinandan

      C Offline
      C Offline
      Chetan Ranpariya
      wrote on last edited by
      #2

      Hi, Set window.parent.location.href = "newlocation" before you close the dialog window in javascript.. I hope this will help you.

      Thanks and Regards, Chetan Ranpariya

      S 1 Reply Last reply
      0
      • C Chetan Ranpariya

        Hi, Set window.parent.location.href = "newlocation" before you close the dialog window in javascript.. I hope this will help you.

        Thanks and Regards, Chetan Ranpariya

        S Offline
        S Offline
        srinandan
        wrote on last edited by
        #3

        thank for response, but first problem is that when we click on the button poup window is appear even the textboxes are blank even i am using the required field validator. once the popup open the then the validator message also appear. i want validate the textboxes if valid then popup should open Thanks in advance. Regards, Srinandan..

        C 1 Reply Last reply
        0
        • S srinandan

          thank for response, but first problem is that when we click on the button poup window is appear even the textboxes are blank even i am using the required field validator. once the popup open the then the validator message also appear. i want validate the textboxes if valid then popup should open Thanks in advance. Regards, Srinandan..

          C Offline
          C Offline
          Chetan Ranpariya
          wrote on last edited by
          #4

          Hi, You should do this validation in javascript before opening the popup. var val1 = document.getElementById("textbox1").value; var val2 = document.getElementById("textbox2").value; if(val1 != null && val2 != null) { window.Open(); } Dont copy and paste my code coz it may have spelling mistakes.

          Thanks and Regards, Chetan Ranpariya

          S 1 Reply Last reply
          0
          • C Chetan Ranpariya

            Hi, You should do this validation in javascript before opening the popup. var val1 = document.getElementById("textbox1").value; var val2 = document.getElementById("textbox2").value; if(val1 != null && val2 != null) { window.Open(); } Dont copy and paste my code coz it may have spelling mistakes.

            Thanks and Regards, Chetan Ranpariya

            S Offline
            S Offline
            srinandan
            wrote on last edited by
            #5

            thanks for trouble with me. but we have need to open the dialog box when the image upload successfully(when server code execeuted successfully) Please help.. Regards, Srinandan..

            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