Hi,

I'm not sure if it's the long hours I've been working, but I can't
figure out how to make a simple javascript alert work in a web2py
response.

def test():
    response.js = 'alert("test")'
    return dict(message='test')

What am I doing wrong above?.

I have no test view, so the default one is being used.

I just downloaded and tested in the latest version: 1.89.4.

I want the page to execute the javascript code (in this case an alert)
but nothing so far.

Can you please enlighten me?.

Thanks,

   Carlos

Reply via email to