ah I caught it. you are doing this...

http://www.w3schools.com/tags/att_a_target.asp

specifying a target for the 'a' tag. Unless it's _blank, _self, _parent, 
_top, or the name of a frame, that won't work.

I assumed you meant to do something like this:

ajax('echo', ['name'], ':eval')


On Thursday, April 24, 2014 9:46:09 AM UTC-7, Derek wrote:
>
> Are you not returning javascript?
>
> On Thursday, April 24, 2014 9:20:31 AM UTC-7, Ruud Schroen wrote:
>>
>> Al of a sudden my callbacks aren't working. Whenever i specify :eval as 
>> the target, i get this error:
>>
>> Uncaught Error: Syntax error, unrecognized expression: #:eval 
>>
>> which comes from jquery.js
>>
>> This is my callback trigger, returned from a function:
>>
>> return A(T('Send friend request'), callback=URL('default', 'friendship',args
>> =['request', user.id]), _class='button white friendship', _id=
>> 'friendship_button', target=':eval')
>>
>> I am using the web2py.js and jquery.js from the welcome app.
>>
>> What am i doing wrong?
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to