[jQuery] mod_python and ajax - no Hello world examples exist
Im trying to implement Ajax under mod_python.
Mod_python works fine for normal pages, but i cant get a Ajax
response.
Does somebody know of a "hello world" example for Ajax and mod_python
and jQuery?
My test is something like this, HTML client:
$("#test_form").submit(function() {
var nmval = $("#username").val();
var pwval = $("#password").val();
$.post("/test/ajax101", { username: nmval, password: pwval },
function(data) {
alert(data);
$("#response").html(data);
});
});
With the Ajax submit of #test_form i get a small amount of (disk)
activity, but "/test/ajax101.py" never seems to get anything back to
the the browser (I tried an alert and write to a dom object)
Any pointers appreciated