Hello,
Why I can't get initialization jquery plugin code to be execute by
view?
# Controller
response.js="""$(".chzn-select").chosen();"""
I already append(pluging file and css) like this :
response.files.append(URL('static','plugin_added/harvesthq-
chosen-ada808d/chosen/chosen.css'))
response.files.append(URL('static','plugin_added/harvesthq-
chosen-ada808d/chosen/chosen.jquery.js'))
I know those works...
In the book at in core chapter is says this :
response.js can contain Javascript Code. This code will be executed if
and only if the response is received by a web2py component as
discussed in Chapter 12.
In chapter 12, there is this example :
response.js = "jQuery('#%s').hide()" % request.cid
Thanks
Richard