Jump to content

Need an advice in web-app designing


oslo

Recommended Posts

We now use ajax for any post that results in a database write. We take plan this year to take it one step further.  If there is more then 1 database write when we will do a ajax send for each write (i.e. step)

 

For example lets say you are asking for a credit card number and need to charge it.  

 

1. We would ajax send the credit card number and the server would update the database

2. Send the command to charge it

 

This way we solve an issue we have where if the reply never comes we do not know what processes completed.  This way if we get a reply from the step 1 but now reply from step 2 we now we need to only resend the command to charge again

 

What kind of app are you writing?

Link to comment
Share on other sites

You really need to be more specific as to what your concern is. Your request is way too broad to really answer. You state you want to " . . . avoid different problems (internet connection)".

 

How are you storing the results as the user takes the exam? Is the user answering one or a few questions at a time? If so, just save their responses on each page. Then if they lose connectivity and come back you know where to take them in the process. If, however, you have the exam all on one page, then you could use AJAX to submit the user's response as they answer each question. Basically, there is no one solution. The best solution can only be determined by understanding the specific workflow and needs.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.