I am developing a website using Java/Servlet and Ajax, with some libraries of D3.js The problem when I access the website from different PC or phones, I submitted the data successfully using the HTML form and it gives me the results as I want, BUT the problem when I use the form to submit new data using the same machine (Iphone or PC), the showing results still for the old query, when I check the server I see the new files created for the new query but in my phone or PC the results still showing the old query data.
Any help or ideas.
// form submit and validation
$("input,textarea").jqBootstrapValidation({
preventSubmit: true,
submitError: function($form, event, errors) {
// additional error messages or events
},
submitSuccess: function($form, event) {
event.preventDefault(); // prevent default submit behaviour
// get values from FORM
var vendor = $("input#vendor").val();
var product = $("input#product").val();
var version = $("input#version").val();
var checkbox_value = "";
$(":checkbox").each(function () {
var ischecked = $(this).is(":checked");
if (ischecked) {
checkbox_value += $(this).val();
}
});
$.ajax({
url: "servletname",
type: "GET",
data: {
vendor: vendor,
product: product,
version: version,
dependency: checkbox_value
},
cache: false,
success: function(responseText) {
....
}
Aucun commentaire:
Enregistrer un commentaire