given that you fixed 'echo' with something like '/app/default/echo' the 
problem may be that in your controller, echo() is restricted.

It make *Total Sense* (titlecase, yes :-P) that a @auth.requires_signature 
wouldn't let you access that function without the _signature parameter 
attached to the URL (and with the correct value) .

On Friday, January 18, 2013 5:56:45 PM UTC+1, Ramos wrote:
>
> yes i know 
> i´m just confused because of the error.
> That is why i went to the console to test it
>
> the ajax function does not work if it is get called by a view that has a 
> controller with @auth.requires_signature()  
>
> Its that right?
>
> Thank you
> António
>
>
> 2013/1/18 Niphlod <nip...@gmail.com <javascript:>>
>
>> 'echo' is the url you're trying to call ...... usually is 
>> /app/controller/function . 'echo' alone gets evaluated depending on the 
>> page you're on, appending to (or replacing the last bit of) the current 
>> url. 
>>
>> On Friday, January 18, 2013 5:06:01 PM UTC+1, Ramos wrote:
>>>
>>> hello
>>>
>>> i made this simple test
>>>
>>> in javascript chrome console i typed
>>>
>>> ajax('echo', ['name'], 'target')
>>> to call my function
>>>
>>> and it returns
>>> GET 
>>> http://192.168.1.167:8000/**empre2/default/user/not_**authorized<http://192.168.1.167:8000/empre2/default/user/not_authorized>403
>>>  (FORBIDDEN) 
>>>
>>>
>>> thank you
>>> António
>>>
>>  -- 
>>  
>>  
>>  
>>
>
>

-- 



Reply via email to