What is the mystery of this Web Server issue.
Here is my code its work well on local server, but in the Web Server it's doesn't work:
$.ajax({
url: "/flask/templates/table.html",
type: "get",
data: {jsdata: $( "#select option:selected" ).text()},
success: function(response) {
$("#place_for_suggestions").html(response);
},
error: function(xhr) {
// handle error
}
});
The flask side:
@FlaskApp2.route('/flask/templates/table.html', methods=['GET', 'POST'])
def table():
modid = request.args.get('jsdata')
print "Hello!!!!!!!!!!!!!!!!", modid
return render_template('table.html')
I try to see any activity in @FlaskApp2.route but I see only silent !
What is wrong with this code?