solved
"jQuery('#sel_curr').get(0).reload();
and target= in LOAD
среда, 21 января 2015 г., 8:49:27 UTC+3 пользователь Dmitry Ermolaev
написал:
>
> I use helper LOAD:
>
> DIV(LOAD('bill', 'show_update', args=[so_secr_id], ajax=True,
> times = UPD_TIMES, timeout=UPD_TIMEOUT),
> _class='row', _id='sel_curr')
>
> and helper BUTTON:
> BUTTON(TAG.i(_class='fa fa-refresh'), _name='want_pay',
> _class='btn btn-primary', _id='want_pay_go',
> _onclick="ajax('%s', ['want_pay'], 'sel_curr'); \
> $('#want_pay_go').html('<i class=\"fa fa-spin
> fa-refresh\" />'); \
> $('#sel_curr').animate({ height: 'hide', opacity:
> 'hide' }, 'fast'); "
> % URL('bill','set_want_pay', args=[shop_order_id])
> )
>
> on same page
>
> after looading page - ajax work correctly
> but when I try reload DIV by clicking on BUTTON - ajax reloading is stoped
> How reload ajax div on click button?
>
> как перегрузить LOAD один раз по нажатию кнопки так, чтобы он потом так же
> перегружался?
>
> see http://lite.cash/bill/show/1
>
>
>
--
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.