Frank Goenninger wrote:
Found something:
Am 11.04.2008 um 17:53 schrieb Frank Goenninger:
+function send_text (obj, e) { var request = {}; switch(e.type) { case "keyup": @@ -29,8 +38,11 @@ $(document).ready(function(){ // $(":input").keyup(function(e) { // send(this, e); // });
- $(":input").change(function(e) {
send(this, e);
- $(":input[type='text'").change(function(e) {
send_text(this, e);
});
- $(":input[type='checkbox']").change(function(e) {
});send_checkbox(this, e);
});
Oh - now I see the potential problem: These "//" ... I will test...
And right there it is:
$(document).ready(function(){ // $(":input").keyup(function(e) { // send(this, e); // }); $(":input[type='text']").keyup(function(e) { send_text(this, e); }); $(":input[type='checkbox']").change(function(e) { send_checkbox(this, e); }); });
Two things:
1.) I had to change the line
$(":input[type='text']").keyup(function(e) {
the "]" was missing after 'text' ...
Hunh, did you have the latest openair.js? Mine looks OK in that regard.
2.) I had to change the event type to "keyup" for the text input in order to really get every key stroke sent over to the server.
I tried with no luck:
$(document).ready(function(){ // $(":input").keyup(function(e) { // send(this, e); // }); $(":input[type='text']").keyup(function(e) { // kt: keyup was change send_text(this, e); }); $(":input[type='checkbox']").change(function(e) { send_checkbox(this, e); }); $("select").change(function(e) { send_select(this,e); }); });
I did a reload from the browser as well, I am just not sure that means the browser thinks to get a new openair.js as well. Or did I miss something else? I will be bouncing things over here trying to get my browser's attention....
kt