Hello there,
My question is the following:
I am trying to make the following poll work inside my Silverstripe website:
http://net.tutsplus.com/tutorials/javascript-ajax/creating-a-dynamic-poll-with-jquery-and-php/
The page on which I've tried to test this is:
www.astruggleforpeace.nl/polltest/
Obviously, the poll is not working. I tried the same thing on a simple HTML-page and it did work there:
http://www.crovax.net/
The portion of the page containing the poll is actually an included Sidebar. My guess is that the problem is that the php/javascript knows not where to write the results page to... but I'm not at all sure... I have no intimate knowledge of either php or javascript. I have told the PHP file: define('HTML_FILE', 'http://www.astruggleforpeace.nl/polltest/'); I have noticed that when I try to vote not only does nothing happen to the page, there are no results written to the .txt files that should hold the vote tally.
Oh, and in case anyone wonders: I've spent lots of time trying to make the Poll Extension for Silverstripe work. It wouldn't function at all... I wanted to have a poll functioning asap, so I figured there must be a faster way than trying to wrestle my way through the hard times the framework was giving me. Though I guess this might turn out equally troublesome... you'd think putting a decent poll on one's site should be simple enough. :-/
I realize this is not strictly a silverstripe question, but I guess you guys should be best equipped to explain how the whole framework using php and .SS files might prevent this poll from functioning... Thank you very much in advance for your time and trouble, have a nice day!
Kind regards,
Ronnie