1) in the form page:
$("#first_select").click(function(){
var dat_game = $('#first_select option:selected').text();
$.post("a_new_page_template", { dat_game: dat_game},
function(data){
var $response=$(data);
var res = $response.filter('#whatiwant').html();
$('#second_select').append(res);
});
return false;
});
2) in the 'a_new_page_template':
<html>
<body tal:define="results here/sql_select_value;
start request/start|python:0;
batch python:modules['ZTUtils'].Batch(results,
size=50,
start=start)">
<span id="whatiwant">
<tal:x repeat="result batch">
<option><tal:x replace="result/value">value goes here</tal:x></option>
</tal:x>
</span>
</body>
</html>
Thanks to me :)