Re: [web2py] Beginner trying to adapt the Chapter 11 ajax function 'echo' example

2012-09-17 Thread Ann Gledson
That works. THANKS! On Mon, Sep 17, 2012 at 8:16 PM, Bruno Rocha wrote: > > you need to use # on id selectors $("#selector_id") > > function parse_my_data(data){ >$('*#*target').append(data); >$('*#*target').append(P('', XML('world'))); > } > > -- > > > > --

Re: [web2py] Re: Cannot get a to update, once form inputs have been successfully processed and Ajax used.

2013-02-19 Thread Ann Gledson
Thanks. Sorry about the delay in response. In answer to your question, the .load function does not get called, that is, the body of the function(response) does not appear to get called. I tried just the line: $('#scan_info_previous').hide; and the div element with that ID does not become hidden.

Re: [web2py] Re: Cannot get a to update, once form inputs have been successfully processed and Ajax used.

2013-02-20 Thread Ann Gledson
Hi No it would appear that the $.post is not fired. I replaced the code with $form.submit(function(){ alert("Hello - the form.submit ran"); $.post($(this).attr('action'), $(this).serialize(), function(response){ alert("Hello - the post ran"); },'json'); return fa