We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33962
    • 13 Posts
    Wow, thanks for this fast answer.
    I think the XHR Class (used in EasyPollAjax.js) isn’t any longer supported by mootools 1.2
    I can use EasyPoll with option &noajax=`1` and it works, but it would be nice to use it the ajax way.

    Thanks for your help.
      • 2734
      • 165 Posts
      Quote from: raffy at Dec 29, 2008, 10:47 AM

      Wow, thanks for this fast answer.
      I think the XHR Class (used in EasyPollAjax.js) isn’t any longer supported by mootools 1.2
      I can use EasyPoll with option  &noajax=`1` and it works, but it would be nice to use it the ajax way.

      Thanks for your help.
      Hm yeah. I guess the XHR class should be replaced with the new Request class (http://mootools.net/docs/Request/Request.HTML).
      As far as i know, the current version of MODx doesn’t bundle mootools 1.2 and should work with the current implementation. I’m a bit short of time atm. but maybe i can implement an updated ajax handler script next year smiley
        • 27228
        • 18 Posts
        Has there been any progress regarding:

        could the "Internal Title" default to the default language string if empty ? The way I use it I don’t need to have an internal title different from the default language...

        My poll is always in the same language and it’s kind of annoying having to enter in the field value twice.

        Also, a nice feature would be a duplicate poll option. The site I’m working on has a new poll everyday with about 30-40 options per poll.. Often there are only 5-10 items that change. So rather than have to retype the other 30 options, it’d be cool to duplicate and modify as needed.

        Thanks.
          • 25483
          • 741 Posts
          I started to use EasyPoll on my new site, but I have 1 problem;

          I use jQuery on my site and it breaks the ajax power of EasyPoll! How can I get rid of this conflict between mootools and jQeury? I already run jQuery in noconflict mode.
            with regards,

            Ronald Lokers
            'Front-end developer' @ h2o Media

            • 2734
            • 165 Posts
            Quote from: MediaGuy at Jan 19, 2009, 08:47 AM

            I started to use EasyPoll on my new site, but I have 1 problem;

            I use jQuery on my site and it breaks the ajax power of EasyPoll! How can I get rid of this conflict between mootools and jQeury? I already run jQuery in noconflict mode.

            Hi MediaGuy

            I’m surprised to hear that it doesn’t work when you use the no-conflict mode. Are you using Plugins from the jQuery Plugin repository? I know of a few that don’t really work when jQuery runs in no-conflict mode (bad programming).
            If that’s not the source of the problems, one would have to port the ajax poll handling to jQuery... I can’t do it for now, since I have no time to spare at the moment :/
              • 16545
              • 358 Posts
              validator.w3.org found one error in this snippet:

              # Error Line xx, Column xx: value of attribute "method" cannot be "POST"; must be one of "get", "post".

              …lform" id="easypollform" method="POST" action="xxxxxxxxx"

              --------
              easypollclass.php contain "POST", must be changed to "post"
                • 10067
                • 1 Posts
                May be you should make a little tweak on you’re awesome snippet try to use labels around the choices!
                But it’s a very nice module.


                  • 2734
                  • 165 Posts
                  Quote from: frankieboy at Feb 05, 2009, 04:33 PM

                  May be you should make a little tweak on you’re awesome snippet try to use labels around the choices!
                  But it’s a very nice module.
                  HTML Output for EasyPoll is completely customizable. You’re right, a label should probably be there in the default output, but it’s easy to add your own code for output if you really need the label...
                  http://bummzack.ch/easypoll-snippet-documentation/#templates

                    • 10534
                    • 40 Posts
                    banal, many thanks for this nice little module!

                    For those with the same request as I’ve had: I’ve updated the module (actually the snippet part) with the option of using the internal titles as values instead of always having to enter an extra language if you just want to use one language.

                    Files updated:
                    assets/snippets/EasyPoll/easypoll.class.php
                    assets/snippets/EasyPoll/snippet.php (snippet call code)

                    If you leave out the easylang param, or enter it like this: &easylang=``, then the snippet call will run customized DBqueries, omitting the lang table joins.

                    Good luck and have fun!

                    Download is available in this post (version bumped to 0.3.4)!
                      • 29076
                      • 615 Posts
                      Does this module work in MODx 0.9.6.3.? For my part it won’t write to the database, and I also "feel" that it’s something more that’s wrong. smiley
                        I think, thererfor I am! But what I am, and why...?