How does the generated form look like.
Perhaps ('#kvk_number') should be ('input[name=kvk_number]') and
('#subdossiernumber') should be ('input[name=subdossiernumber]')
On Jan 4, 9:19 am, annet <[email protected]> wrote:
> Massimo,
>
> Thanks for your reply. I tried:
>
> form[0][2][2].insert(0,A('already in
> database?',_onmouseover="this.style.cursor='pointer';",_onclick="javascript:details('%s/'+
> $('#kvk_number').val()+'/'+$
> ('#subdossiernumber').val())"%URL(r=request,f='retrieve')))
>
> In the view this is rendered as follows:
>
> <a onclick="javascript:details('/mock/crud_company/retrieve/'+$
> ('#kvk_number').val()+'/'+$('#subdossiernumber').val())"
> onmouseover="this.style.cursor='pointer';" style="cursor: pointer;
> ">already in database?</a>
>
> When I click the 'already in database? link it produces the following
> URL:http://127.0.0.1:8000/mock/crud_company/retrieve/undefined/undefined
>
> I hope I provided you with enough information to help me solve the
> problem.
>
> Kind regards,
>
> Annet.