I have two controllers, In the first I wrote a function that allow the user 
to insert data into a database and in the second one I write a function 
that allow the user to see but not edit the data from the database, when 
the first user insert new data I want to notify the second one. I tried to 
do that using a flash message.
when the first user insert data and the data is inserted successfully I 
make ajax call to a controller function like this:

$.ajax('http://127.0.0.1:8000/HERIS/my_second_controller/flash_message?name=' 
+ 'upd');

the function that receive this request is:

def flash_message():
    response.flash=T("Please update your browser!!")

and in the view I added:

<div class="w2p_flash alert alert-dismissable">{{=response.flash or 
''}}</div>

But no message is shown when I tested it. Any help Please??

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/127feae2-ba5f-432b-9c26-bb8c76ea0d36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to