oslo Posted January 27, 2014 Share Posted January 27, 2014 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! Quote Link to comment https://forums.phpfreaks.com/topic/285710-need-an-advice-in-web-app-designing/ Share on other sites More sharing options...
DenRomano Posted January 27, 2014 Share Posted January 27, 2014 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? Quote Link to comment https://forums.phpfreaks.com/topic/285710-need-an-advice-in-web-app-designing/#findComment-1466801 Share on other sites More sharing options...
oslo Posted January 28, 2014 Author Share Posted January 28, 2014 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! Quote Link to comment https://forums.phpfreaks.com/topic/285710-need-an-advice-in-web-app-designing/#findComment-1466838 Share on other sites More sharing options...
DenRomano Posted January 28, 2014 Share Posted January 28, 2014 Can you tell me what you are confused about in particular? Quote Link to comment https://forums.phpfreaks.com/topic/285710-need-an-advice-in-web-app-designing/#findComment-1466864 Share on other sites More sharing options...
Psycho Posted January 28, 2014 Share Posted January 28, 2014 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. Quote Link to comment https://forums.phpfreaks.com/topic/285710-need-an-advice-in-web-app-designing/#findComment-1466865 Share on other sites More sharing options...
oslo Posted January 29, 2014 Author Share Posted January 29, 2014 thank you all of you.I got a tutorial about this and find the answers. Quote Link to comment https://forums.phpfreaks.com/topic/285710-need-an-advice-in-web-app-designing/#findComment-1466906 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.