Comments (8)
I think this issue is not related to the router because it can't do anything to "harm" pages or application layouts. Popups don't even trigger page events.
The issue may reside in jquery mobile itself (but it's not likely) or in some event handler used in your code.
If you provide a tgz or a zip file of the source code, I'll try and see if the issue can be tracked down in a short amount of time.
Cheers,
Andrea
from jquerymobile-router.
It turns out I was wrong.
The router was forcing a useless changePage that, under normal circumstances, is harmless.
In this specific case, jQuery Mobile was failing, probably due to a bug, during the page transition.
@bardu found out that the issue could be partially solved by disabling the slide effect.
However, I've patched the router to avoid the forced changePage when the popup is closed.
from jquerymobile-router.
I have a new use case where I need to initialize and open a popup programmatically like:
$('#popupLogin').popup();
$('#popupLogin').popup('open');
Then I see the same issue as of before your patch, could you please check?
from jquerymobile-router.
$('#popupLogin').popup({ history: false });
didn't help either.
from jquerymobile-router.
Hi bardu,
unfortunately the popup api and implementation seem way too inconsistent to build something on them.
The .popup("open") call don't even trigger a pagebeforechange event, nor popup events.
Writing a patch without these hook points is impossible.
I've noticed, however, that if you have a link such as:
<a href="#popupMap" id="mylink123" data-rel="popup">Open Popup</a>
Calling:
$("#mylink123").trigger("click");
produces the expected results (jQM fires the right events and the router can perform its task).
from jquerymobile-router.
Hi Andrea,
I have tried your suggestion before, but it didn't work in my use case, and I run into more issues with the popup widget not related to routing.
I find the popup widget pretty useful, but as you said, it isn't mature enough to build something on it.
So, for now I will revert to a dialog widget for my latest use case and will see what jQM 1,2,1 has to offer regarding popup.
from jquerymobile-router.
Il 18/10/2012 18:33, bardu ha scritto:
I find the popup widget pretty useful, but as you said, it isn't mature
enough to build something on it.So, for now I will revert to a dialog widget for my latest use case and
will see what jQM 1,2,1 has to offer regarding popup.
If you don't mind, I'll email you a popup widget I've been using for the
last year in my jQM projects.
It's a small backbone view with a couple of methods, but you can easily
revert it to a standard function if you want.
from jquerymobile-router.
Much appreciated, I'm using backbone anyway!
from jquerymobile-router.
Related Issues (20)
- Not an issue actually but the request to provide more advanced example HOT 3
- jQM 1.3.0 HOT 8
- Examples don't work HOT 2
- default handler not called HOT 3
- Routing issues with JQM 1.3.1 and knockout.js HOT 3
- Early Router - Too late for first page? HOT 2
- Debugging snippet gets in the way HOT 4
- URI parameters are striped out when using new pagebeforechange event HOT 4
- Loading the first page via bc handler HOT 6
- handler getting called twice even when step "url" selected HOT 1
- With requireJs, router initialises after jQuery Mobile page events trigger HOT 2
- How does one access the data object resultant from a $.mobile.navigate('#target',{}) invocation HOT 1
- production ready? HOT 1
- e.preventDefault() on a re-routing system HOT 1
- Are urls like this "#category/:id/items" possible? HOT 1
- Can this be used using two different html files? HOT 4
- Back Problem HOT 2
- Bower support HOT 1
- defaultHandler is not invoked when customer handlers are not specified
- Am I right that this plugin doesnt work in jqmobile 1.4.5 HOT 3
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 jquerymobile-router.