Giter VIP home page Giter VIP logo

Comments (6)

azicchetti avatar azicchetti commented on August 26, 2024

Ciao,
uhm, not yet, but I'd like to add one soon.
If you're willing to try and write something, I'll happily add it to the repository.

A presto,
Andrea

from jquerymobile-router.

grigio avatar grigio commented on August 26, 2024

Grazie per la risposta,
unfortunatly am not a so js ninja.

I tried built a basic app via hem/nodejs but it is very clear to me the correct lib loading

from jquerymobile-router.

grigio avatar grigio commented on August 26, 2024

This is a basic Spine Loading, which libraries does your routing replace? I think manager and router, but I don't know how to integrate it. Any tips?

require('json2ify')
require('es5-shimify')
require('jqueryify')

require('spine')
require('spine/lib/local')
require('spine/lib/ajax')
require('spine/lib/manager')
require('spine/lib/route')
require('spine/lib/tmpl')

Do I need to disable something? https://gist.github.com/2044082

from jquerymobile-router.

azicchetti avatar azicchetti commented on August 26, 2024

I think it replaces route (as a consequence, manager becomes useless).
As long as you use spine for its models and views and react to jquery mobile events through the jqm router, you should be fine.

You don't have to disable anything in the mobileinit event, default settings are fine

from jquerymobile-router.

sukima avatar sukima commented on August 26, 2024

So I'm am very interested in also integrating Spine with JQM. I would be more then happy to make a sample app if not a tutorial and share it when complete. However, I would need some help getting started. Maybe a quick overview between JQM design and Spine design and their differing conflicts.

If anyone is interested in chatting or offering some guidance on where to get started I can at least finish with a working example you can add to the documentation.

from jquerymobile-router.

azicchetti avatar azicchetti commented on August 26, 2024

Hi @sukima
although I don't know much about spine, I'm quite used to jQM and backbone.js and I know the problems you have to solve to successfully integrate them.

The biggest issue is that jQM has a built-in routing system based on hashes (pushState is also supported) that conflicts with the one provided by backbone and spine.

In addition, jQM provides a lot of useful page-related events that cannot be exploited using a standard hashchange router.

Some folks prefer to disable jQM routing completely and use it as a mobile UI library: this is fine, some things will be probably prove a little more difficult since you have to do a lot of things "by hand".

Alternatively you can keep jQM internal routing and do away with backbone/spine routing plugins.
The only requisite is a perfect understanding of the events exposed by jQM ( http://jquerymobile.com/demos/1.2.0/docs/api/events.html ).
To tap into jQM routing you have to use events; unfortunately, manually binding handlers to page divs or to the document object is somehow difficult, error prone and time consuming.
Some plugins were written to simplify this task and this project is one of them.

To sum everything up, plugins such as the jquerymobile router try to provide the same functionality (or a big subset) of backbone and spine routers by using jQM events, exposing them to the developer in the process.

from jquerymobile-router.

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.