If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Anchor Poll Results  XML
Forum Index » Support Forum
Author Message
Muonwar
Newbie

Joined: 08/06/2006 00:19:07
Messages: 2
Offline

Tried this in Gen'l forum, no answer.

After voting in poll, voter is returned to the page but not to the poll location. Where do I go to add an anchor tag so it returns them to the poll location?

Thanks.
medusahead
Beginner

Joined: 03/03/2007 04:40:48
Messages: 6
Offline

Hello,

I've been struggling with the same thing & I have a solution. It may not be the best but it is easy & it works fine as far as I can tell.

create a name anchor at each poll, just make it part of your workflow of putting polls on the page. name each of these with a number corresponding with the id# of the poll.

so if it is poll id 7, then your name anchor will look like


Then in the head of your page insert:


What this does is grabs the $poll_ident variable, which has the same number as $poll_id except it is processed GET, so the variable is available to be plugged in after the #...when someone votes, the page refreshes immediately, so there is not much lag to speak of.

Hope that helps
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum