ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

ajax form in EE

October 25, 2014 9:02am

Subscribe [3]
  • #1 / Oct 25, 2014 9:02am

    Ralph123

    26 posts

    Hi Guys,
    I’d like to create the functionality whereby users can add scores to a table and for those scores to be added up in real time so to speak. Probably would need Ajax to achieve it.

    In the attached I’d like the daily totals to be calculated in real time (not after a submit) after the user adds a value in one of the columns.

    I’d expect to use channel forms but I get lost when deriving the totals with ajax and the db being updated with total values
    Any ideas or addons to achieve this?
    Thanks

  • #2 / Oct 27, 2014 5:24pm

    USC Chan

    81 posts

    It’s not clear why you’re talking about using Ajax here. This sort of modification of dynamic content can be done pretty simply in the browser with basic Javascript, and then you can submit the final values at the end if they need to wind up in a server-side database.

  • #3 / Oct 27, 2014 11:13pm

    Jeremy S.

    353 posts

    I think what paulbailey is getting at is, do you need the progress recorded in the DB as the user proceeds (using ajax) or can the entry and calculations remain client-side until all scores have been entered and totalled (ie. with a single submit process).

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases