Here is the ajax call code in my extension.
Note that I dont have any errors in server I retrieving the data the codes works well but after selecting the values in the List Box
the documents keeps transfering data to server simultaneously you can see the print screen in the attached file.
My work around to that is I added "location.reload" after I select values in the ListBox which works well but I dont need to reload the entire page for that.
$.ajax({
type:"GET",
url:"URL/selection",
success:function( response ){
// split the response by the delimiter
var values = response.split("~");
// select the listbox to select the texts by the values
qva.GetQvObject("ID",function(){
this.Data.SelectTexts(values);
},this);
},
error:function(xhr,ajaxOptions,thrownError){
}
});