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. client side code to update field (javascript)

client side code to update field (javascript)

Scheduled Pinned Locked Moved ASP.NET
javascriptdatabasehelpannouncement
2 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.
  • F Offline
    F Offline
    ferronrsmith
    wrote on last edited by
    #1

    i am creating a appraisal form and i need to right a client side code that will auto-update on the client side to reflect changes before saving it to the database, i know it can be done using javascript. here my fields kra_value agreed_target_dist weighted_target rating kra_score weighted_target = kra_value * agreed_target_dist kra_score = weighted_target * rating the two fields being calculated should be read-only and values should be reflected before being saved to the database. Any help as soon as possible will be greatly appreciated, thanks in advance

    Ferron

    Y 1 Reply Last reply
    0
    • F ferronrsmith

      i am creating a appraisal form and i need to right a client side code that will auto-update on the client side to reflect changes before saving it to the database, i know it can be done using javascript. here my fields kra_value agreed_target_dist weighted_target rating kra_score weighted_target = kra_value * agreed_target_dist kra_score = weighted_target * rating the two fields being calculated should be read-only and values should be reflected before being saved to the database. Any help as soon as possible will be greatly appreciated, thanks in advance

      Ferron

      Y Offline
      Y Offline
      Yusuf
      wrote on last edited by
      #2

      What you need to do is have some event handler. The auto-updating will be fired by some event (click of button, entry into text field, getting or losing focus...) then in the event handler calculate what you need and update the page accoringly. Here is some more help ^

      Yusuf

      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