Ended up moving the code into a SCRIPT tag as part of the response.
This is in reply to a web2py LOAD.
Any objections to doing this?.


On Mar 26, 3:35 pm, DenesL <[email protected]> wrote:
> I was just getting there, since I tried adding some comments to the
> code which only made it worse.
> Good to know.
> Thanks.
>
> On Mar 26, 3:24 pm, mdipierro <[email protected]> wrote:
>
> > Yes. response.headers cannot be multi-line.
>
> > Massimo
>
> > On 26 Mar, 14:15, DenesL <[email protected]> wrote:
>
> > > But works fine when typed like this:
>
> > > response.headers['web2py-component-
> > > command']='''jQuery('.DB').click(function(e) {
> > >   $(e.target).removeClass('click2loadTables');} )'''
>
> > > Any ideas?.

-- 
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.

Reply via email to