SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Apr 2007
    Posts
    211
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need form to "remember" which boxes are ticked between ajax refreshes

    I have a form that uses ajax to load some of the elements. If the database says a checkbox has been previously ticked then the box itself is unavailable in the form. Ajax continuously checks and updates the form accordingly. The problem I'm having is when I check an available box ajax unchecks it the next time it refreshes. I just need the form to "remember" which boxes I've checked after an ajax update. Does anyone know how to retain new form entries between ajax refreshes?

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    Perhaps by passing the form information to the server, and having the server return the required state of the checkboxes?
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •