Are you using the latest web2py?

On Mar 2, 11:57 am, LB22 <latn.bl...@googlemail.com> wrote:
> Hi there,
>
> I'm having a small problem and am not sure where I'm going wrong. I'm
> familar with javascript and have used query for some basic stuff, but
> this is the first time I've tried to incorporate any ajax.
>
> I have in my controller something like:
>
> def mark():
>     check.marker(request.args[0],request.args[1]) # decides how to
> update db.table
>     return check.chooser(request.args[0],request.args[1]) #  decides
> which icon to display and returns it
>
> In the view I have this:
>
>     <div id='test'>{{=XML(button)}}</div>
>         <span
> onclick="ajax('{{=URL(r=request,f='mark',args=[arg0,arg1])}}', [],
> 'test');">ClickMe</span>
>
> Instead of replacing the existing image (XML(button)) with the
> returned one, it inserts the entire page again overlapped on the
> existing page. Does anyone know where I'm going wrong?
>
> Thanks in advance for any help.
>
> LB22

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to