Hi!!!
In this manner, works the link:
links = [lambda row: A('Club call',_onclick="if(confirm('Do you want to
club this call?')) document.location='%s'; return false;" %
URL("","Incident",args=[row.id]))]
Regards.
El lunes, 13 de mayo de 2013, 9:11:10 (UTC-3), Pawan Jha escribió:
>
> not working frnd i have done changes as per you are given me its not
> working
>
>
> On Mon, May 13, 2013 at 5:18 PM, Massimo Di Pierro <[email protected]
> <javascript:>> wrote:
>
>> links = [lambda row: A('Club call',_onclick="if(confirm('Do you want to
>> club this call')) document.location='%s'; return false;' % URL("","
>> Incident",args=[row.id])]
>>
>> On Monday, 13 May 2013 00:56:27 UTC-5, Pawan Jha wrote:
>>>
>>> Hi all
>>>
>>> I am using this in SQLFORM.grid
>>>
>>> here is confirm message but on clicking this Message is coming but when
>>> i am clicking on no the its refresh the pages
>>>
>>> so please tell me how will i prevent this
>>>
>>> links = [lambda row: A('Club call',_onclick="confirm('Do you want to
>>> club this call')",_href=URL("","Incident",args=[row.id]))]
>>>
>> --
>>
>> ---
>> 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 [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
>
> --
>
>
>
> * Thanks & Regards Pawan Kr.
> Pankaj91-9968831967/9540773888**Software
> Engineer (DOT .Net)*
> pawan.p <javascript:>[email protected] <javascript:>
>
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.