Questions tagged [zepto]

Zepto.js is a minimalist JavaScript framework for modern browsers, with a jQuery-compatible syntax.

From the project-site: http://zeptojs.com/

"Zepto is a minimalist JavaScript library for modern browsers with a largely jQuery-compatible API. If you use jQuery, you already know how to use Zepto.

While 100% jQuery coverage is not a design goal, the APIs provided match their jQuery counterparts. The ultimate goal is to have a ~5-10k library that downloads and executes fast, with a familiar and versatile API, so you can concentrate on getting stuff done."

Source code: https://github.com/madrobby/zepto

319 questions
0
votes
1 answer

Use Zepto method on jQuery collection

I am using both jQuery and Zepto. I want to conditionally invoke Zepto methods on a jQuery collection. Anyone have an eloquent solution? My code currently looks something like this: // Obtain jQuery Object var $selector = jQuery('.selector'); //…
Globalz
  • 4,474
  • 6
  • 34
  • 43
0
votes
1 answer

zepto $.type() function

I'm currently trying to make the jquery tokeninput plugin zepto compatible. according to the zepto documentation in version 1.0 there should be a function called $.type() (i'm using the latest 1.0rc) but whenever i try to call this function i…
Horst
  • 407
  • 5
  • 17
0
votes
1 answer

Backbone events not firing?

So I have this simple backbone setup: $(function() { var chooser = Backbone.View.extend({ el: $('#content'), events: { 'mouseenter .class': 'showInfo' }, showInfo: function(evt) { console.log('YEAH!'); } }); …
Richard Key
  • 103
  • 5
0
votes
2 answers

Changing background without sliding effect

I'm working on iphone like slider. It is tag with button for sliding. When I'm moving the button to the end lock picture on the button must be changed to unlock picture. For this I'm changing background of the button from…
udar_molota
  • 273
  • 6
  • 15
0
votes
1 answer

Required mobile / tablet touch Slider with elastic easing for Ios 4 -5, android and blackberry

Currently we are facing an issue with one project developed with Zepto framework. There is a need of content slider same as carousel with next previous buttons and touch slide option. Client refuses to use any jQuery. All plugins we've seen are not…
Parag Gajjar
  • 700
  • 1
  • 11
  • 25
0
votes
1 answer

Abort AJAX Request ZeptoJS

I was wondering if there is way to abort an AJAX call in ZeptoJS the same I would use .abort() in jQuery. I've tried it but I keep getting this error : Uncaught TypeError: Object # has no method 'abort' This is what the AJAX call looks like…
Roland
  • 9,321
  • 17
  • 79
  • 135
0
votes
1 answer

Keeping vertical swiping scrolling the page in horizontal flickable slider

In my mobile webapp I have a flickable imageslider which allows you to swipe through the items horizontally, using flickable.js (http://blog.kojo.com.au/flickable-zepto-plugin/) Something like this This promo takes up a quite significant space on a…
Daniel Hallqvist
  • 822
  • 5
  • 15
0
votes
1 answer

Javascript Module Pattern confusion

I am trying to use the Javascript Module pattern. I want my module to have a public method that can be called when a json file is loaded. In this simple example, the module loads the json on init and (should) load an image into a DOM element when…
Regis Zaleman
  • 3,182
  • 6
  • 29
  • 30
0
votes
1 answer

Multiple accordions on a page using zepto js

I've written a simple accordion using zepto js lib. How can I prevent the page from jumping when I click on the empty anchor tags? Also Looking for advice on how to improve this better. HTML
calebo
  • 3,312
  • 10
  • 44
  • 66
0
votes
2 answers

Phonegap / Cordova JS Framework and design

I want to make my first Phonegap App. It will be one container, that at the end will call an API and display results. Nothing complex. But because I have read about the problems, what phonegap has especially in the iOS world of not so smooth…
Mutatos
  • 1,675
  • 4
  • 25
  • 55
0
votes
2 answers

Zepto longClick

I have been looking for a Zepto plugin for a longClick event. Zepto supports longTap which is great for mobile, but I want to switch in a longClick event when my page is visited on a desktop. I would also require that 'longClick' interferes with…
Tyler Buchea
  • 1,642
  • 3
  • 17
  • 25
0
votes
1 answer

Mask input field for Zepto

Looking to mask the input field, along the lines of what this jQuery plugin does: http://digitalbush.com/projects/masked-input-plugin/ I tried converting it to Zepto by changing: $.fn.extend({ to $.extend({ and })(jQuery); to })(Zepto); Now I'm…
user240993
0
votes
0 answers

Using Backbone.js with Zepto as an alternative to jQuery

Possible Duplicate: Backbone.js + Zepto.js examples How do I setup backbone.js to use Zepto instead of jQuery?
Henry Rusted
  • 379
  • 6
  • 15
0
votes
1 answer

jQuery prevent default of links inside a targeted parent DIV

I have the following markup:
.... ....
I am using Zepto to target the "target-class" to apply a double tap, but I don't want the link to be fired. This is my JS…
gregavola
  • 2,519
  • 5
  • 30
  • 47
0
votes
1 answer

Animations with Backbone.js/Zepto.js

I am currently working on a mobile app in Backbone.js using Zepto.js for animations, and during page transition there is a noticible white flicker, and it's quite visually displeasing. I can't seem to figure it, anyone have an idea why this might be…
flaiks
  • 269
  • 3
  • 13