What is the best way to repeatedly retrieve data from PHP/MYSQL without using firebase?

209 views
Skip to first unread message

office...@gmail.com

unread,
Mar 11, 2015, 8:59:43 PM3/11/15
to polym...@googlegroups.com
HI,

i have been stuck for a long time with the problem of making notifications on a site that I am building using polymer. Essentially, I have a PHP fiel which retrieves the notifications and serves them in a dropdown when the page loads. Brilliant.

However, I can't seem to be able to make a "true" notification feature, i.e actually refreshing the notifications when there is one. I have tried using setTimeout/setInterval along with the $.go() method in core-ajax, but then the site appears to crash,  and the animations become very sluggish(less than 1 frame a second).

I have tried looking on other places for solutions, but there does not seem to be any examples for making real-time applications with out using polymer. Is setTimeout/setInterval not meant to go with polymer, or am I just using it wrong?
Either way, tell me if you need more clarification or jsbin.

Thanks!

Arthur Evans

unread,
Mar 13, 2015, 2:01:39 PM3/13/15
to office...@gmail.com, polymer-dev
I think your best bet is to post this question on stackoverflow with a link to the code. (jsbin or otherwise). For a question like this, where the answer could be related to Polymer, JavaScript, or PHP, that's your best resource.

For questions like, "How does Polymer do X," "Why does Polymer do X," this mailing list is probably your best resource.

To answer the concrete question -- using setTimeout or setInterval shouldn't cause a problem with Polymer.

Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/2f6d75a6-df6f-401b-b83a-3243b9d11562%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages