{{=A("CLICK ME!!", callback=URL('http://mysite.com/foo.html'
<http://mysite.com/foo.html'>),
target='hater')}}

should be

{{=A("CLICK ME!!", callback='http://mysite.com/foo.html'
<http://mysite.com/foo.html'>,target='hater')}}

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".


Tobiah

which would produce:

<a href="#null"
onclick="ajax(&#x27;http://mysite.com/foo.html&#x27;,[],&#x27;hater&#x27;);return
false">CLICK ME!!</a>

and that is what is expected. Perhaps I misunderstand the question.


On Tuesday, 24 July 2012 16:21:59 UTC-5, Toby Shepard wrote:

    Working through the html helper docs,
    I decided to try the callback parameter
    to the anchor tag:


    {{=A("CLICK ME!!", callback=URL('http://mysite.com/foo.html'
    <http://mysite.com/foo.html'>),
    target='hater')}}
    {{=DIV(_id = 'hater')}}

    foo.html delivers a bit of content. This did not work.
    Viewing the source, I see that the tag was rendered like this:

    <a href="#null"
    onclick="ajax(&#x27;/css/edit/http://register.rcsreg.com/foo.html&#x27
    <http://register.rcsreg.com/foo.html&#x27>;,[],&#x27;hater&#x27;);return

    false;">CLICK ME!!</a>

    That doesn't so good. Am I doing something wrong?

    Thanks,

    Tobiah

--




--



Reply via email to