Ho yeah!
Thank Anthony, I forgot about .live()
jQuery(document).ready(function () {
jQuery(".icon-calendar").live("click", function()
{$(this).parent().prev().click().focus();});
});
@Niphlod, the other instance of the calendar was hided at the bottom of the
page, so I discover them
Instead of adding two identical click even handlers, maybe it would work to
use the jQuery .live() method to add the handler just once (when the main
page is loaded). The .live() method will handle events even on DOM elements
that are added to the page after the handler is initiated -- see
http
response.js gets executed when you load a component. There is no "scope
separation" that executes the javascript fragment only in the loaded
component.
PS: didn't you asked already and solved the issue with this dreaded
.icon-calendar ?
On Monday, December 3, 2012 4:26:47 PM UTC+1, Richard wro
Hello,
I read in the book that response.js should be use to insert javascript
stuff that should be executed in context of a LOAD component. My
understanding is that the piece of javascript embeded in the component
should be executed only in the component... But under web2py 221 I can get
this
4 matches
Mail list logo