In my dft controller I have:
response.headers['web2py-component-
command']='''jQuery('.DB').click(function(e) {
$(e.target).removeClass('click2loadTables');
} )'''
response.headers['web2py-component-command'] is correctly set to:
"jQuery('.DB').click(function(e) {\n $
(e.target).removeClass('click2loadTables');\n} )"
but in Firefox 3.6.2 on Win2003 I get:
missing } after function body
http://192.168.0.63:8000/nav3c2/dft/index
Line 69
displaying response headers with Firebug shows:
web2py-component-command
jQuery('.DB').click(function(e) { $
(e.target).removeClass('click2loadTables');
so it is missing the ending: '} )'
Running web2py 1.76.3 from source.
It seems that Cherrypy is cutting this particular response header.
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.