On 07/25/2012 09:21 AM, Anthony wrote:
    Ok, thanks. Perhaps there is a small problem with the
    manual section on views. I copied my example from the manual:


    {{=A('click me', callback=URL('myaction'), target="t")}}
    <div id="t"><div>

    and the response of the ajax callback will be stored in the DIV with id
    equal to "t".


No, there's no problem with the book. Notice, you didn't copy the
example exactly. The example generates the callback URL using the web2py
URL() function, which generates web2py URLs. In your code, you passed a
fully formed URL (possibly an external URL?) to the URL() function,
which is not how it works.

Anthony

--




Oh, I had thought that 'myaction' stood for a full URL.  So in this
case, is 'myaction' actually the name of a controller, or function?

Thanks,

Toby

--



Reply via email to