To show poll results on same submission page

Author Message

Romeo Antony

Friday 06 August 2010 11:55:00 pm

I have searched through the whole ez forums to get how to show poll results in same page .Can anyone please give me an idea how to do this ? How to set the url of from action in poll template.

Romeo Antony

Saturday 07 August 2010 1:33:05 am

I will explain my idea,

I want to show the poll in homepage , as a block.when visitor submit the poll , poll results will be shown in the same block without going to anyother page like contentnfo/poll.tpl.

For that I will include a custom template in same (block/poll.tpl )that fetch poll result when submission take place .So that page will be same .No need to go to result page.

Is it wrong or can i go ahead with this idea?

Anyone please give me a suggestion. Thanks in advance Romeo

Romeo Antony

Sunday 08 August 2010 6:23:30 am

Please anyone give me a two sentence suggestions.,

Robin Muilwijk

Sunday 08 August 2010 11:43:59 am

Hi Romeo,

I had the same thought as someone else on IRC suggested; use Ajax via ezjscore. Don't ask me for development details though, no exprt ;) Maybe someone else can chime in?

-- Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

Romeo Antony

Sunday 08 August 2010 1:08:59 pm

Thank you for your suggestion Robin. I am trying it for the last 4 days .But no luck . Anyway thanks a lot for your time and willingness to help me Robin.

Robin Muilwijk

Monday 09 August 2010 11:41:59 am

Hi Romeo,

You probably read this already, but just in case you haven't, see http://share.ez.no/articles/ez-publish/ezjscore-ez-publish-javascript-and-ajax-framework/(language)/eng-GB. Maybe you can find some info in there.

-- Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 29 2025 23:45:06
Script start
Timing: Jan 29 2025 23:45:07
Module start 'layout'
Timing: Jan 29 2025 23:45:07
Module start 'content'
Timing: Jan 29 2025 23:45:07
Module end 'content'
Timing: Jan 29 2025 23:45:07
Script end

Main resources:

Total runtime0.0146 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.2656151.2266
Module start 'layout' 0.00540.0025 739.492236.6797
Module start 'content' 0.00790.0054 776.171998.1875
Module end 'content' 0.01330.0013 874.359437.9922
Script end 0.0146  912.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002416.6127140.0002
Check MTime0.00117.3367140.0001
Mysql Total
Database connection0.00074.692510.0007
Mysqli_queries0.002416.558930.0008
Looping result0.00000.081410.0000
Template Total0.00107.110.0010
Template load0.00085.689010.0008
Template processing0.00021.408410.0002
Override
Cache load0.00063.886510.0006
General
dbfile0.00106.856480.0001
String conversion0.00000.048840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs