Coder Social home page Coder Social logo

Comments (3)

ehynds avatar ehynds commented on May 21, 2024

Thanks, I will check it out. I cannot add the name attribute because otherwise the values will be submitted twice. Once for the radio/checkbook, and once for the original underlying select. Only the values from the original select should be submitted; multiselect is really just a new interface to select them.

from jquery-ui-multiselect-widget.

mpjura avatar mpjura commented on May 21, 2024

Right, I didn't even think of that. I'm catching the form submit, scraping the values with getChecked and sending it off in an ajax request so I didn't run into it.

I'll look into another solution and post if I find anything.

from jquery-ui-multiselect-widget.

ehynds avatar ehynds commented on May 21, 2024

OK, I landed a fix for all single select and associated IE problems: 7a6258a

As it turns out, IE6/7 require the name attr for inputs to work correctly, so as much as I didn't want to include it, there's no other work around without bloating the code base severely.

Users just need to be aware that the values will come through from the original select box under the original select box's name, as well as a name generated by multiselect. So if you have a select control with the name and id "foo", and you select the "bar" option, serialization will look like this:

foo=bar&multiselect_foo=bar

This goes for single selects and multiple selects. If folks really dislike this then they can setup a submit handler that'll remove the name attr from all the inputs so they won't be transmitted. Seems like a good compromise to receive full IE compatibility.

from jquery-ui-multiselect-widget.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.