Coder Social home page Coder Social logo

j-ulrich / jquery-sliderbutton Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 2.0 1.13 MB

jQuery UI/Mobile plugin which provides a widget (button) that needs to be slided to be activated

Home Page: https://j-ulrich.github.io/jquery-sliderbutton

License: Other

JavaScript 87.94% CSS 9.38% HTML 2.68%
deprecated

jquery-sliderbutton's People

Contributors

j-ulrich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

yihad thykka

jquery-sliderbutton's Issues

UI version not working with jQuery 1.8.0

The UI version is not working with jQuery 1.8.0. The slider doesn't move and it gives the following error message:

Event thread: mousedown
Uncaught exception: TypeError: Cannot convert 'e' to object
Error thrown at line 374, column 41 in <anonymous function: _mouseCapture>(d) in https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js:
    e.addClass("ui-state-active").focus();
called from line 25, column 277 in <anonymous function: _mouseDown>(c) in https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js:
    if(!g||e||!this._mouseCapture(c))
called from line 24, column 454 in <anonymous function: _mouseInit>(f) in https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js:
    return c._mouseDown(f)
called via Function.prototype.apply() from line 2, column 74842 in <anonymous function: dispatch>(c) in https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js:
    c.data=l.data,c.handleObj=l,h=((p.event.special[l.origType]||{}).handle||l.handler).apply(j.elem,r),h!==b&&(c.result=h,h===!1&&(c.preventDefault(),c.stopPropagation()))
called via Function.prototype.apply() from line 2, column 67588 in <anonymous function: h>(a) in https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js:
    return typeof p!="undefined"&&(!a||p.event.triggered!==a.type)?p.event.dispatch.apply(h.elem,arguments):b

Hold sliderbutton at end will break the button

Hi (again),

I've noticed something else about this plugin that isn't quite right.
When you slide the button all the way to the right (in my case) and you hold it there for a few seconds, the plugin seems to break. Releasing it doesn't do anything anymore. Only tapping on other items on the page will "release" the button and the the event is fired. The most troubling thing is, that the slider button is no longer able to be slidden back to the left.

Any thoughts would be appreciated!

Greetings

Event on release

Hi,

First of all, cool little plugin!
I'm currently using this in a jQuery Mobile project, and was wondering if the functionality as it sits right now could be extended to allow for an option to choose when the "succes" callback is triggered.

Now, it's triggered when you fully slide to the right (pending on the settings you have).
But the slide to unlock functionality on the iphone works somewhat different. There you have to release the button before you unlock.

Could this be implemented as an option or something?

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.