you can make it shorter with

var button = "Anmelden";
            console.log(button);
            $.ajax({ url: "{{=URL('user')}}",button: button });

but are you sure you want to call the 'user' action?


On Dec 10, 7:49 am, pk <[email protected]> wrote:
> my js:
> var button = "Anmelden";
>             console.log(button);
>             $.ajax({ url: "{{=URL(r=request,c='default',f='user')}}",
> button: button });
>
> my default-controller:
> return(request.vars.button)
>
> but why is the return value: none ??
>
> thanks

Reply via email to