GithubHelp home page GithubHelp logo

redking / chosen-dojo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vafada/chosen-dojo

4.0 4.0 5.0 1.2 MB

Dojo Port of Chosen (https://github.com/harvesthq/chosen)

Home Page: http://vafada.github.com/chosen-dojo/

License: Other

JavaScript 70.10% CSS 29.90%

chosen-dojo's People

Contributors

aziz avatar binarycode avatar dchest avatar grandall avatar h3adache avatar hkdobrev avatar jcsrb avatar jerrett avatar lcamel avatar malixsys avatar marknadig avatar mikefrey avatar mixonic avatar nagyman avatar ndbroadbent avatar nikosd avatar parshap avatar paulredmond avatar peteruhnak avatar pfiller avatar redking avatar rk avatar sd avatar seutje avatar stubben avatar thomasf avatar tjschuck avatar toots avatar tupton avatar vafada avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

chosen-dojo's Issues

Updating Chosen Dynamically

Thanks for your working in porting this to DOJO.

The original ChosenUI instructions state:

Updating Chosen Dynamically
If you need to update the options in your select field and want Chosen to pick up the changes, you'll need to trigger the "liszt:updated" event on the field. Chosen will re-build itself based on the updated content.

MooTools Version: $("form_field").fireEvent("liszt:updated");
jQuery Version: $("#form_field").trigger("liszt:updated");
Prototype Version: Event.fire($("form_field"), "liszt:updated");

Looking through the code, it looks like this version uses topic.publish?

Is this correct, if so, how should it be formatted? I've tried topic.publish('liszt:updated'); and a number of variations around topic.publish('liszt:updated', mySelect); but am having no luck.

Thanks!

Vulnerable to XSS Attacks

This lib is vulnerable to XSS attacks if html/javascript is entered as a search term. The lib has many instances of innerHTML replacements where textContent should be used.

Steps to reproduce:

  1. Enter <iframe src=javascript:alert(1)> into the search box
  2. Notice the javascript is executed because it's inserted into the DOM as html

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.