- Screen name: borismus
borismus's Profile
4 Posts
4 Responses
0
Followers
Show:
- Expanded view
- List view
Private Message
- Just add a <div class="ui-li-accordion"></div> to a <li> and it turns the list item into an accordion fold.
- Discrete filter plugin for listviews implemented as a dropdown at the top of the list, which selects only <li> with a certain data-category attribute.
- I'm working on a jQuery Mobile-based application, and have written a couple of plugins that I'd like to package up for wider consumption. I couldn't find an official way of doing this, so thought it might be best to put into experimental.So I looked there, and all of the files come with sample index.html files which don't run properly in my cloned repo. They do this weird thing though, which I have never seen before:<link rel="stylesheet" href="../../themes/default" /> and <script src="../../js"></script>,which I assume is supposed to load all files in the dir, but it only seems to happen for the JS. No CSS is loaded. I'm probably doing something wrong, though, since the experiments work online (like at http://jquerymobile.com/test/experiments/scrollview/).
I'm attempting to pass parameters from one page (ex. with a list view of items, each with an id) to the sub-page corresponding to each item. I need to pass the id to the sub-page. I'm attempting to do this with get-style parameters resulting in the following URL:
.../index.html#item.html?id=1898432
I have a pageshow callback: $('[data-role=page]').live('pageshow') which triggers when the page is loaded. However, when this event fires, the window.location isn't updated to have the extra parameters in it.
I think there are two possibilities:
1. I'm doing it wrong. Perhaps sub-hash URLs are the way to do what I'm trying to do:
http://jquerymobile.com/demos/1.0a2/#docs/pages/docs-navmodel.html2. The event should fire after window.location is updated to reflect the URL with parameters.
- «Prev
- Next »
Moderate user : borismus
© 2012 jQuery Foundation
Sponsored by
and others.


