Message from JavaScript discussions

June 2019

— Anyone online

— 

Hi,
When I call this with clicking on the checkbox at the client side the page will reload why? I want to prevent this refreshing

— $.get('http://localhost:8000/indexes/'+ indexes, function(e){ //e.preventDefault();

— Indexes: regard to each value of the checkbox

— By default, ticking a checkbox does not reload a page, then you have done that in your code ;) do you have a more complete test-case or what piece of code is else associated with that checkbox?

Message permanent page

— Jjust this

— Asynchronous HTTP should not lead to have your page reloaded.

— It will send the value of each checkbox to the server side django, and will pass this value at a function to give me 2 images saved in a special directory

Message permanent page

— What is the function body?

— Maybe the problem are in the server side?

— Sorry, I was busy

— Get_index(inputObj):
var indexes = input.value;