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
5
votes
1 answer

What features of Zepto do not work on ie9?

On the zepto project website i see no version of IE as being supported, not even 9. I am considering using zepto in a webapp (not mobile) but i want to support IE 9+ Is that possible? What features / methods of zepto do not work on IE9?
alexandru.topliceanu
  • 2,364
  • 2
  • 27
  • 38
4
votes
5 answers

Which javascript framework excels at handling internationalization?

Suppose I'm building a fairly large browser-based interactive media application, and I have these requirements: Webkit-only (let's assume chrome on the desktop) Tablet & Desktop versions, probably with minor differences in the UI Completely…
Joshua Smith
  • 3,689
  • 4
  • 32
  • 45
4
votes
5 answers

:selected in Zepto.js

I'm getting errors when doing .find("option:selected") in Zepto.js. Is ":selected" even supported in Zepto? If not, is there an equivalent way to make that work, without reverting to jQuery?
andi
  • 6,442
  • 1
  • 18
  • 43
4
votes
1 answer

How can you stop a Zepto animation?

I am working with Zepto and Phonegap to create a target that moves over the page. When it's touched, I want the animation to end. I can't find any command that stops the animation. Changing opacity to 0 and starting a new animation don't work…
CSturgess
  • 1,547
  • 2
  • 13
  • 29
4
votes
2 answers

using zepto, is it possible to queue animations?

zepto.js has an API to animate elements, which allows to include a "done" callback function. animate source however jquery type queue API doesn't seem to be supported. I was wondering if there's a built-in approach for creating animation sequences…
yatayata
  • 81
  • 2
4
votes
2 answers

Is Zepto just a subset of jQuery?

I was amazed that backbone.js can use either jQuery or Zepto as its "helper library". How did the Zepto people manage to have a syntax compatible with jQuery's? Is Zepto just a subset of jQuery?
Randomblue
  • 112,777
  • 145
  • 353
  • 547
4
votes
3 answers

ICanHaz.js - Possible to put a while loop in template?

Let's say I have a element, and inside it want to put an indefinite number of items (based on the user's choices). Is there a way to create an ICanHaz template that allows for some sort of while loop. For instance:
    for(i = 0; i <…
Danny Anges
  • 237
  • 5
  • 10
4
votes
2 answers

Do Backbone.js views require jQuery or Zepto? (Or: why am I getting “Uncaught TypeError: undefined is not a function”?)

I’m just starting out with Backbone.js. I’ve subclassed Backbone.Model and Backbone.View: var Message = Backbone.Model.extend(); var MessageView = Backbone.View.extend({ tagName: 'div', className: 'message', template: _.template('{{…
Paul D. Waite
  • 96,640
  • 56
  • 199
  • 270
4
votes
4 answers

'Access-Control-Allow-Origin' error in Spring MVC + Zepto POST

I'm trying to POST a JSON object to my Spring MVC controller, but I only receive an Access-Control-Allow-Origin error. My controller: @RequestMapping(value= "/add", method = RequestMethod.POST, headers = {"content-type=application/json"}) public…
Lombric
  • 830
  • 2
  • 11
  • 23
4
votes
1 answer

What are the advantages of PhoneJS over a regular backbonejs/HTML5 app?

I tried using PhoneJS - it's pretty easy to get started, and seems to provide a good framework. However, I usual prefer to avoid pre-built framework as they limit my flexibly. My main 2 concerns are: PhoneJs uses Jquery, while a lot of people…
EugeneMi
  • 3,475
  • 3
  • 38
  • 57
4
votes
1 answer

emberjs and foundation4

i am trying to use emberjs and foundation 4 which is now using the zepto framework, though as soon as i added the emberjs includes into my application.js the foundation code stops working. is there something wrong with the order of the includes? //=…
Boss Nass
  • 3,384
  • 9
  • 48
  • 90
4
votes
4 answers

window.jQuery or jQuery?

(function($) { // plugin code })(window.jQuery); Seems this code almost the same effect, as: (function($) { // plugin code })(jQuery); Should I use window.jQuery or jQuery for function argument? Does it make sense? Same for Zepto, I've seen lots…
Mark
  • 235
  • 3
  • 9
4
votes
1 answer

How to run multiple versions of Zepto.js on one page?

Can somebody please explain me how could I make different builds for Zepto.js (in order to include touch support) in a noob-friendly way, because I cannot find detailed instructions anywhere on the Internet.
drelkata
  • 347
  • 1
  • 3
  • 11
4
votes
2 answers

errors when building zepto

when I try to build zepto I get the following error: MODULES="zepto event polyfill detect fx fx_methods ajax form selector touch gesture" ./make dist Error: Cannot find module 'shelljs/make' at Function.Module._resolveFilename…
Kev
  • 705
  • 1
  • 5
  • 10
4
votes
1 answer

jQuery library optimized for Gecko engine

Is there any jQuery library that's optimized/minimized only for use it with Gecko engine? There's no need to support trident, webkit and so on if they're not gonna be used! I wasn't successful in searching except zepto.js. Is it good enough and…
swolfish
  • 771
  • 1
  • 9
  • 25
1 2
3
21 22