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] Beginner trying to adapt the Chapter 11 ajax function 'echo' example

2012-09-17 Thread Bruno Rocha
you need to use # on id selectors $("#selector_id") function parse_my_data(data){ $('*#*target').append(data); $('*#*target').append(P('', XML('world'))); } --

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

2012-09-17 Thread AnnG
Hi, thanks for your post. I tried your suggestion, but still can't get it to work, here is my new code: * {{extend 'layout.html'}} $(function(){ $('.myactions li').click(function(){ elem = $(this); url = elem.attr('data-url');

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

2012-09-13 Thread Bruno Rocha
The ajax function: ajax( url, # here you set a string to a complete url, it can include args and vars [], # form inputs, if you have a form on the page you can set ['name', 'email'] if you do not have a form set it to null target, # an id of any html element where you want the re