How to create an event listener across varied devices?
Posted on 2011-05-08
I'm trying to submit a simple jQuery Mobile contact form on my iPhone then on my iPad be able to be notified in real time that the form has been submitted and show the new submission in a list. So the iPhone is using the 'user' interface and the iPad is using the 'admin' interface of the same app.
I can have the iPad refresh the page every 30 seconds and then see the updated list that way but wanted it to be a real-time thing. I just need a pointer in the right direction as can't get my head around how to do it.
I figure it must require an event listener or maybe a database trigger or something? Not sure...am a noob to jQuery so learning as I go. Any help greatly appreciated!! Thanks in advance :)