Skip to content Skip to sidebar Skip to footer

Using A Json File To Store A Small Database Persistently, In Javascript

I am new to the use of JSON. I want my webpage to display, in a table, a small database of a few hundred records. Wanting to avoid the hassle of putting my data in a MySQL databas

Solution 1:

Normal browser JavaScript is single-threaded. Precisely because the infinite while never ends, the JavaScript engine never gets to process the success callback of the $.getJSON call. Your browser's sole JS thread sits looping forever and never moves on to the callback.

Solution: You should eliminate the loop and move code that is currently after the infinite loop into your $.getJSON callback.

Post a Comment for "Using A Json File To Store A Small Database Persistently, In Javascript"