[web2py] Re: delete on confirmation

2016-04-11 Thread Ron Chatterjee
use text.string. 



On Monday, April 11, 2016 at 8:52:56 AM UTC-4, rajjm...@gmail.com wrote:
>
> If I use the helper function it works. Ran into one issue though.
>
> {{=SPAN(A( IMG(_src=URL('static','images/delete.png')), _href = 
> URL('delete',args=id), _title = 'Delete',  _onclick = "javascript:return 
> confirm('Are you sure you want to process?')", _class = 'Delete') ) }}
>
>
> Now, if I want to style the image it doesn't work. For example. 
>
> 
> .Delete {
>width:40px;
>cursor: pointer;
> }
> 
>
> How do I style my logo to specific size?
>
>
>
>
> On Sunday, April 10, 2016 at 11:19:48 PM UTC-4, 黄祥 wrote:
>>
>> please try
>> {{=SPAN(A(T('Delete'), _href = URL('delete', args = [id] ), _title = 
>> 'Delete', 
>>  _onclick = "javascript:return confirm('Are you sure you want to 
>> process?')", 
>>  _class = 'to-delete') ) }}
>>
>> best regards,
>> stifan
>>
>

-- 
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.


[web2py] Re: delete on confirmation

2016-04-11 Thread rajjmatthur
If I use the helper function it works. Ran into one issue though.

{{=SPAN(A( IMG(_src=URL('static','images/delete.png')), _href = 
URL('delete',args=id), _title = 'Delete',  _onclick = "javascript:return 
confirm('Are you sure you want to process?')", _class = 'Delete') ) }}


Now, if I want to style the image it doesn't work. For example. 


.Delete {
   width:40px;
   cursor: pointer;
}


How do I style my logo to specific size?




On Sunday, April 10, 2016 at 11:19:48 PM UTC-4, 黄祥 wrote:
>
> please try
> {{=SPAN(A(T('Delete'), _href = URL('delete', args = [id] ), _title = 
> 'Delete', 
>  _onclick = "javascript:return confirm('Are you sure you want to 
> process?')", 
>  _class = 'to-delete') ) }}
>
> best regards,
> stifan
>

-- 
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.


[web2py] Re: delete on confirmation

2016-04-10 Thread 黄祥
please try
{{=SPAN(A(T('Delete'), _href = URL('delete', args = [id] ), _title = 
'Delete', 
 _onclick = "javascript:return confirm('Are you sure you want to 
process?')", 
 _class = 'to-delete') ) }}

best regards,
stifan

-- 
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.