GithubHelp home page GithubHelp logo

Comments (3)

jaunesarmiento avatar jaunesarmiento commented on May 3, 2024

Actually, Fries fires a push event whenever you push a new page to the DOM. What you can do for now is to catch this event and attach your event handlers from there.

I really like your second suggestion but I still don't see the need of jQuery style selector module. Let's discuss this further. :)

from fries.

hell03610 avatar hell03610 commented on May 3, 2024

Hi, I'm trying to emulate a page rendered with data from server, thinking in a phonegap app, so i need to know which page is just loaded in dom. I'm attached to push event, but i cannot ask for the page-id as the page is the container and it is not replaced, just its innerhtml. Yes, i could ask for something within, but there is not root tag inside page, page is the perfect candidate...so i chaged a little stack.js so when it trows the event, it has the id of the page that was just pushed. (or maybe stack.js should change the id of the page?, i think jqm does that...)

Back button was not working in that example, so i had to move inside doXHR the cachePush before doing the call, as onSuccess was winning the race and inserting the new id in the cacheBack stack instead of the old one.

Anyone has played to try to have fries pages locally and remote data served by jsons?

You can see an example here: https://github.com/hell03610/fries/tree/serverside
In files master.html and detail.html

FingerBlast is disabled, as I could not managed the up button in details to work properly. I use the "Emulate touch events" from Chrome Dev instead.

from fries.

jaunesarmiento avatar jaunesarmiento commented on May 3, 2024

Not doing this anytime soon. Focusing on other features.

from fries.

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.