Using $.get() to send data to servlet and insert into mysql
Hi, recently I use $.getJSON to send request to flickr api to get some photo info (I got 100 data totally)
and in $.getJSON()'s callback funciton, I use $.each() and $.get('myServlet.do') to send data to servlet then insert into mysql database.
I think it should be no problems, but I found that my database would have duplicated data if I use the method above, does anyone know what is the problem?
the data is duplicated when servlet received, btw.
it would be very appreciated if someone can give me some advice...
thanks for your time.