Hi Mika, Have you tried simply retunrning the jQuery string. I have some ajax calles in my projects and it is working fine for me. There are two difference I don't use: return false; when calling ajax and return the jQuery command not a variable
I hope I could help Regargds Greg On Friday, 10 May 2013 07:10:31 UTC+2, Mika Sjöman wrote: > > Hi > > I am trying to close a window title dialog with JQUERY after sucessuflly > updating a clients phone number. The problem is that after I successfully > update the data I send this as a response to the browser: > > .... > message = "jQuery('#windowTitleDialog').toggle('slow');" > return message > > > But the script just loads it as text in a DIV instead of executing the > Jquery :( > > The way I call it is like this from the webbrowser: > > <script> > jQuery('#update_phone_number').submit(function() { > ajax('{{=URL('update_phone_number')}}', ['phone',], > 'phone_updated_div'); > return false; > }); > </script> > > Anyone has an idea on how to run the JQUERY instead of just loding it as > text inside the phone_updated_div ? > > cheerio > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.