Can you post some code you are currently using on the client side to catch the data received from inlinepush?
I just wrote a simple example that should help you : http://pastebin.com/m337e9e22 crusherdestroyer wrote: > Nicolas, > > Again, thanks for your help. But you are correct below. All I want > to have happen is when the data is updated using inlinepush, to > trigger a javascript function to run each time. The javascript > function is called test(). Where do I call this? > > On Feb 16, 12:15 pm, Nicolas Trani <[email protected]> wrote: > >> Hi, >> >> i'am not sure to understand exactly what you want to do. If i understand >> right, when you catch on the client side the data you receive with >> client.onRaw(); just fire a Javascript function. If you want to know if >> the value of lotstatus changed just check when you receive a new value >> that is different from the previous value. >> >> I hope I made myself clear. >> >> Cheers. >> >> >> >> >> >> crusherdestroyer wrote: >> >>> Hi. I'm using inlinepush and it works fantastic so far. Is there any >>> way to pass a value using inline push, that will trigger a javascript >>> function on the user's side? For example, I am currently passing >>> values like this using inline push: >>> >>> document.getElementById('lotstatus').innerHTML = >>> decodeURIComponent(raw.data.lotstatus); >>> document.getElementById('message').innerHTML = >>> decodeURIComponent(raw.data.message); >>> document.getElementById('title').innerHTML = >>> decodeURIComponent(raw.data.title); >>> >>> I need to run a javascript function on the clients side when the >>> "lotstatus" value changes. How would I do this? Any help would be >>> appreciated. thank you. >>> >>> Ryan >>> >> -- >> Nicolas Trani - Web engineer >> Weelya - Improve the web >> 32 rue du faubourg boutonnet >> 34090 Montpellier >> Tel: 04 67 169 778 - Fax: 09 57 91 99 >> 91http://www.weelya.comhttp://www.ape-project.org >> > > -- Nicolas Trani - Web engineer Weelya - Improve the web 32 rue du faubourg boutonnet 34090 Montpellier Tel: 04 67 169 778 - Fax: 09 57 91 99 91 http://www.weelya.com http://www.ape-project.org -- You received this message because you are subscribed to the Google Groups "APE Project" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/
