Форуми / Cotonti / Extensions / Refresh whole page from Poll plugin

ToM
#1 06.10.2010 22:47
Hello,

i have a question if somebody has an idea how to refresh whole web page when somebody vote a poll?
It always refresh only the space in poll plug-in.
Thank you very much for any advice

ToM
Salvation is the gift but sometimes is to hard for us to acknowledge it.
GHengeveld
#2 07.10.2010 22:00
Disabling jQuery will probably work. In-place refresh is AJAX behavior.
Downside is that it will disable all your jQuery effects. You'd have to modify the poll module to take out the effect only there.

May I ask why you want this? Normally there is no reason to have this behavior.
ToM
#3 09.10.2010 03:19
Hey,

thank you very much for reply. Yes normally it is OK but I made few modification in poll plug-in and use it for various things like elections, registration to tournaments etc. so I want to refresh the list of registered players automatically (without f5) so that they immediately saw them-self in the list. I can PHP, SQL but Unfortunately I'm weak in scripts and this is the case ;) . It would be grateful If you can give me more close hint. I tried the Disabling jQuery with no luck, but I'll try more things with your suggestion,

Thanks
ToM
Salvation is the gift but sometimes is to hard for us to acknowledge it.
urlkiller
#4 12.10.2010 07:22
Hi Tom,

you could refresh also the part with the users on submit the poll form with jQuery.
this would create pretty much the effect you wish.

you would need jQuery for this and some modifications of your additions to the poll plugin.

and this is the jQuery function you probably need for you idea: http://bbm.li/nk/093F76



just start and ask here in the forums we are not so many anymore but we sure help... ;)
URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>
ToM
#5 25.10.2010 23:03
Hi Urlkiller,

thank you very much for advice. Unfortunately I have overloaded with other tasks so I had not chance to tested yet but I'll play with it and teach something about jQuery and then I'll ask something more or post the result here, thank.

ToM
Salvation is the gift but sometimes is to hard for us to acknowledge it.