Which way to update?

Discussion in 'Programming' started by Triexa, Nov 2, 2006.

  1. #1
    Okay I am designing an application where you are essentially building something with various elements. You can adjust elements in various ways.

    Should I send an ajax request upon each update and build the result as it is created, or should I store it all in javascript and submit the entire thing upon completion?
     
    Triexa, Nov 2, 2006 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    I would go with the second solution, cause AJAX might be too slow when the user is adjusting various elements. Plus it's more cross-browser compatible.
     
    nico_swd, Nov 2, 2006 IP
  3. thedark

    thedark Well-Known Member

    Messages:
    1,346
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    168
    Digital Goods:
    1
    #3
    i would go with ajax, it is more attractive.
     
    thedark, Nov 2, 2006 IP
  4. Triexa

    Triexa Active Member

    Messages:
    580
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #4
    ajax WILL be used to save the final result either way, but I'm wondering if I should update as it goes or only at the end and save the data through javascript client-side in the meantime...
     
    Triexa, Nov 2, 2006 IP
  5. streety

    streety Peon

    Messages:
    321
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I'll sit on the fence on this one and say store the data on the client side but have an auto-save function which sends the adjustment to your server every 5 minutes or so.
     
    streety, Nov 2, 2006 IP