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. How to call java script function after getting result from the server

How to call java script function after getting result from the server

Scheduled Pinned Locked Moved ASP.NET
csharpjavaasp-netsysadmintools
4 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.
  • P Offline
    P Offline
    progahmed
    wrote on last edited by
    #1

    I want to change the content of popup according to the label value after clicking show PopUp Button (I Means after geeting result from the server ) As the follwing if (Label value == 0) PopUp value should be ( you must register From the follwing link Register Now) if (Label value == 1) PopUp value should be (Congratulations You subscriped) if (Label value == 2) PopUp value should be ( Already subscriped, Thank You) you can see exactly what i want to do from the follwing link http://user472.netfx45lab.discountasp.net/testpopup/[^] And to download the source code from here http://user472.netfx45lab.discountasp.net/testpopup/TestJquery.rar[^] Help me Please Thank you

    S 1 Reply Last reply
    0
    • P progahmed

      I want to change the content of popup according to the label value after clicking show PopUp Button (I Means after geeting result from the server ) As the follwing if (Label value == 0) PopUp value should be ( you must register From the follwing link Register Now) if (Label value == 1) PopUp value should be (Congratulations You subscriped) if (Label value == 2) PopUp value should be ( Already subscriped, Thank You) you can see exactly what i want to do from the follwing link http://user472.netfx45lab.discountasp.net/testpopup/[^] And to download the source code from here http://user472.netfx45lab.discountasp.net/testpopup/TestJquery.rar[^] Help me Please Thank you

      S Offline
      S Offline
      Sandeep Mewara
      wrote on last edited by
      #2

      There are few ways to talk to server and then update client side. On what you ask is updating client side via JS, following articles should help: XMLHTTPRequest with Sample[^] Client Side Validation Using the XMLHTTPRequest Object[^]

      Sandeep Mewara [My last tip/trick]: Server side Delimiters in ASP.NET[^]

      P 1 Reply Last reply
      0
      • S Sandeep Mewara

        There are few ways to talk to server and then update client side. On what you ask is updating client side via JS, following articles should help: XMLHTTPRequest with Sample[^] Client Side Validation Using the XMLHTTPRequest Object[^]

        Sandeep Mewara [My last tip/trick]: Server side Delimiters in ASP.NET[^]

        P Offline
        P Offline
        progahmed
        wrote on last edited by
        #3

        thak you for your help But i didn't understand how this can solve my problem problem still exist Any one can help me ?

        J 1 Reply Last reply
        0
        • P progahmed

          thak you for your help But i didn't understand how this can solve my problem problem still exist Any one can help me ?

          J Offline
          J Offline
          Joshua Omundson
          wrote on last edited by
          #4

          Instead of trying to call the JavaScript function after you get the server results, you should be using AJAX to take care of everything.

          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