treehouse : what would you like to learn today?
Web Design Web Development iOS Development

@chris about your poll

  • Hello chris,

    I see u still have issues with your poll system, that shows the results in a new page.
    I have been using simulair techniques for a while my self now. And i thought ill share my
    experiance..

    Its not a huge fix, its just something u need to know :) if u add:

    onsubmit=\"return false;\"


    to your

    <form>


    It should fix all your issues. It should work for u, I tested it at your site by hacking up your DOM through FB and add it to the form, and submitted with out any issues ^_^.

    So hopes this helps ;)
  • Wow! That would be really cool if that could be the thing that fixes this dumb error once and for all. It took a bit of digging around through the plugin files to figure out how it was building that <form>, but I think I found it. If you could take a look and see if it's working for you with this new addition?
  • after submitting your vote u cant see / use the poll anymore. But it should work. Else u should capture the even and use preventDefault().

    So either-way.. it should get / be fixed.
  • Alright well I did exactly what you suggested and it sounds like it's worse now... So I think I'm gonna pull that out for now. Perhaps a future version of the plugin will fix this properly.
  • What went wrong than? In firefox it did fix the issue when i add onsubmit="return false" to the form.