Comments (3)
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.
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.
Not doing this anytime soon. Focusing on other features.
from fries.
Related Issues (20)
- swich on/off and radio button not working HOT 7
- Support for Android versions lower than 4.0 HOT 1
- Navigation logic with back button HOT 3
- Display crash losing css + js
- when we will meet navigation drawer HOT 2
- Onclick function won't run on buttons, and anchor tags. HOT 1
- Examples+Site examples do not work. HOT 1
- Keyboard overlap on field (textbox) of form. HOT 4
- Load next page when clicking HOT 2
- broken on android 4.4.2 ? HOT 2
- Checkboxes in lists HOT 1
- Form elements are not working HOT 3
- Fries as a chrome app HOT 1
- Merged theme branches and examples HOT 9
- Sliding between tabs
- Switching between tabs not working HOT 2
- Material design
- Outdated Documentation Ratchet Link HOT 1
- Deprecated jekyll command line in README.md - Revert 722f50d
- Project websites officially dead!? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fries.