views:

35

answers:

1
+1  A: 

Your problem is that Drupal caches pages which is a good thing since you would probably get a huge performance hit otherwise.

A solution, though not so pretty is to let a js post the data with Ajax. Since Drupal don't cache post requests this could be a solution. It is however js dependant and makes an extra request which requires extra system resources. But atleast it is better than disBling the page cache.

Edit:

After giving it some thought, I think a better solution would be to create a custom block. Since Drupal blocks has their own caching system you should be able to get the functionality you want. Custom blocks is created with the use of hook_block

googletorp
Hi Googletorp. Could you possibly show me an example of what you mean?Thanks.
lokust
Many thanks for your help! - I'll look into implementing this in a block.
lokust