javascript with jsp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • skasarla
    New Member
    • Nov 2008
    • 3

    javascript with jsp

    This is santosh
    I have developed a jsp page in that I have used a combobox.When i selected a value(ID) in combo box then it automatically retrieve corresponding value(name) of a employee from database beside the combo box. plz help me to solve this or give me a example program for this.
    ThanQ
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    If the names come from the database then you need to go to the database when that id is selected. The best way would be to do it without posting the whole page i.e using AJAX.

    Comment

    • skasarla
      New Member
      • Nov 2008
      • 3

      #3
      Originally posted by r035198x
      If the names come from the database then you need to go to the database when that id is selected. The best way would be to do it without posting the whole page i.e using AJAX.

      ThanQ for your reply.But i don't know ajax.could please give me an example program for this

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by skasarla
        ThanQ for your reply.But i don't know ajax.could please give me an example program for this
        There should be lots of examples if you look around.

        P.S I'll just move this to the Javascript/AJAX forum.

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          Originally posted by skasarla
          ThanQ for your reply.But i don't know ajax.could please give me an example program for this
          Here's a simple example. Also check out the links in the Off-site Links sticky thread.

          Comment

          Working...