You want an event on the server (form submit) trigger an event in the 
client (reload a page). This is not how http work. It cannot be done with 
http. It must be done using websockets. I.e. Both pages must open a web 
socket (using for example gluon/contrib/websocket_messaging.py) and the 
server must pass a message to the websocket server which is sent to the 
client (page B) and triggers JS execution to reload the page.

On Thursday, 1 August 2013 16:26:46 UTC-5, lyn2py wrote:
>
> Ok, I have an idea how I want to do this, but no idea if it is possible to 
> do it in web2py or code-wise. Any input will greatly help me.
>
> I have 2 webpages: A and B
> -> A has a form
> -> B is a separate display in another room, example, boss's room.
>
> I would want to achieve:
> -> When the form in A submits,
> -> the display in B auto reloads to reflect the updates
>
> Can this be done? How can I do this? Thank you!!
>

-- 

--- 
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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to