Jump to content

Archived

This topic is now archived and is closed to further replies.

oslo

Need an advice in web-app designing

Recommended Posts

hi all,

 

Which is the best way (cacheing, threads or javascript-ajax) using in online application form or online exam to avoid different problems (internet connection)?

 

Thank u!

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

im working on online exam app. I have read about api cache(localstorage and sessionstorage) and cookies but I`m yet a little bit confused.

I will appreciate Any suggestion or advice.

 

Thank you for your time!

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

thank you all of you.
I got a tutorial about this and find the answers.

Share this post


Link to post
Share on other sites

×
×
  • 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.