Re: [SMARTY] Poll now working :-)

From: Date: Thu, 25 Apr 2002 01:54:31 +0000
Subject: Re: [SMARTY] Poll now working :-)
References: 1 2 3 4 5  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3880@lists.php.net to get a copy of this message
It sounds like your poll might be doing prints or echo's instead of returning a value to be used in the template. You might try wrapping your insert function that calls the poll code inside of output buffering: i.e. function insert_new() { ob_start(); old_poll_function(); $output = ob_get_contents(); ob_end_clean(); return $output; } ----- Original Message ----- From: "MishY" <mishy@cybertechhelp.com> To: <smarty-general@lists.php.net> Sent: Wednesday, April 24, 2002 5:37 PM Subject: [SMARTY] Poll now working :-) > And the caching is working perfectly - the poll updates etc. even with > caching on etc. - apart from one problem !! > > With caching turned off the poll stays in the table (middle left hand side > of the page). > > With the caching turned on the poll stays in the table UNTIL you hit refresh > or change page and then for some very strange reason the poll jumps to the > top of the page ABOVE all html infact even above the html DOCTYPE > declaration. > > Any ideas why this is happening ? > > Thanks > > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.smarty.general (#3880) next »