Re: [web2py] Re: Modifying A helper callback behavior

2015-02-28 Thread Gao V
朋友是中国人吗?交个朋友,有些问题想向你请教。

-- 
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: Modifying A helper callback behavior

2015-02-28 Thread Leonel Câmara
quê?

-- 
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: Modifying A helper callback behavior

2015-02-25 Thread Leonel Câmara
Fix:
https://github.com/web2py/web2py/pull/821

-- 
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: Modifying A helper callback behavior

2015-02-24 Thread Massimo Di Pierro
Can you please open a ticket?

On Wednesday, 4 December 2013 14:49:38 UTC-6, Anthony wrote:

 I think you're supposed to be able to do:

 A(..., data=dict(w2p_disable_with=...))

 but looks like there might be a bug in the A() code that prevents that 
 from working properly right now.

 Anthony

 On Wednesday, December 4, 2013 3:00:49 PM UTC-5, pjryan126 wrote:

 Hi, everyone. I am working on a controller that loads a view into a 
 component when an anchor element is clicked. I am building the anchor using 
 the A helper in a manner similar to the following:

 A(SPAN(_class='span_class'), _class='a_class', _title='a_title', callback 
 = URL(c='default', f='page.load'), target = 'load_page')

 When I click the anchor element, the element is replaced briefly with a 
 Working... message. What I'm wondering is whether there is a way to 
 customize this behavior to display a spinning icon or make no change to the 
 button at all?

 Any help would be greatly appreciated. 

 Thanks,
 Patrick



-- 
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: Modifying A helper callback behavior

2015-02-24 Thread Leonel Câmara
There's also another bug in web2py.js it only tests if it's an input or a 
button. It needs to check if it's an A too and use the same code as for 
the button.

-- 
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: Modifying A helper callback behavior

2015-02-24 Thread 黄祥
done 

ref:
https://github.com/web2py/web2py/issues/819

thanks and 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: Modifying A helper callback behavior

2015-02-23 Thread 黄祥
hi, 

i face the same problem too in web2py 2.9.12-stable in web2py 2.9.11-stable 
didn't found the problem
the button is not back after the user clicked, please see attached file. 
the left square is appear when clicked more than 1 times. the right square 
is appear when clicked one time.
any idea how to solve this?

thanks and 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: Modifying A helper callback behavior

2015-02-23 Thread 黄祥
i found solution from anthony in another discussion :
{{=XML(A(...).xml().replace(' data-w2p_disable_with=default', '') ) }}

it strange in 2.9.11 the same code running well but not in 2.9.12

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: Modifying A helper callback behavior

2013-12-04 Thread Anthony
I think you're supposed to be able to do:

A(..., data=dict(w2p_disable_with=...))

but looks like there might be a bug in the A() code that prevents that from 
working properly right now.

Anthony

On Wednesday, December 4, 2013 3:00:49 PM UTC-5, pjryan126 wrote:

 Hi, everyone. I am working on a controller that loads a view into a 
 component when an anchor element is clicked. I am building the anchor using 
 the A helper in a manner similar to the following:

 A(SPAN(_class='span_class'), _class='a_class', _title='a_title', callback 
 = URL(c='default', f='page.load'), target = 'load_page')

 When I click the anchor element, the element is replaced briefly with a 
 Working... message. What I'm wondering is whether there is a way to 
 customize this behavior to display a spinning icon or make no change to the 
 button at all?

 Any help would be greatly appreciated. 

 Thanks,
 Patrick


-- 
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/groups/opt_out.