I'm trying to include a fluid-like header in a panel. What I mean is the that the header of the orignal page and the panel look similar (color scheme + height).
The difference I need is to put a header on the panel with a close item.
I've used the technique of the listview, but (and this the important part) I want the panel only to be closed with the close button not with clicking the title (= list item).
If I understand correctly setting both linkBindingEnabled and hashListeningEnabled to false should prevent clicking links to actually navigate. This to use e.g. a framework like Backbone for routing.
In 1.2.0 this works as expected but in 1.3.0-beta.1 not.
My requirements are to create a Google+/Facebook like menu navigation control.
Basically what I want is a navigation page and whatever choice you make is that another page will side over the menu.
From these pages there will left header button which will open the menu page again.
I looked into the current slide transitions and they can help a lot already.
For showing the menu page I can use data-transition="reverse slide" >> slide right
And for showing the other pages I can use data-transition="slide" << slide left
However the only thing that I don't how to implement is that basically the menu page it self should not slide, so creating the effect that the 'other' pages only slide.
Basically this craeted the effect that when you click the menu that the page will slide to right and menu page become available as it would sit under the page.
And when clicking a link in the menu, that particular page will slide in from the right over the menu (without the menu moving itself).
I wonder if this is possible with tweaking the transition css or not.
The default css gives the label 20% width and the input 60%. The other 20% seems not to be used.
I tried to change the width for inputs and selects to 80% but that's to wide which make the field to be displayed on the next line. I also tried something like 77% which seems to work on my desktop, but depending on the width of my browser it is again displayed on the next line. This actually never happens with the default 60% width.
I wonder if somebody bumped against this as well and has an idea how to solve it best?
I'm building a jQuery Mobile application with Backbone behind it using it's view and router technology.
This works great, the only problem I have is showing the loading message.
I'm searched this forum and more uses have problems with showing the loading message (even without Backbone) but there is no real explanation how the loading message works and why it not behaves simply as a on/off.
Part of my coffeescript code:
class Router extends Backbone.Router
routes: {
'customer-list': 'customerList'
}
customerList: ->
# $.mobile.showPageLoadingMsg()
setTimeout($.mobile.showPageLoadingMsg, 5)
app.views.customerListView ?= new CustomerListView()
app.views.customerListView.render()
# $.mobile.hidePageLoadingMsg()
setTimeout($.mobile.hidePageLoadingMsg, 5)
class CustomerListView extends Backbone.View
el: '#customer-list-listview'
collection: new CustomerList()
template: _.template '<li><a href="#customer-show?id=<%= id %>"><%= name %></a></li>'
Basically it's a simple list view. While building the page a loading the collection of customer it would be nice to show a loading message.
But with above setup it's not displaying.
I also removed the hidePageLoadingMsg and than after page is displayed the loading message is displayed (and is not hidden). But that timing is way to late, after requesting the json data from the server.
Hopefully somebody can shed some ligh on this as it's rather frustrating (and should be basic functionality).
I'm using a single page template where new pages are loaded via Ajax.
One part of the app is some CRUD functionality to create customers.
After submitting a form to create a new contact I end up on the contact list page.
This list page is just a complete html fragment containing the data-role="page" so it's not loaded using json.
What I would like to to is add a disappearing message to the list page noting 'Contact has been created' just like a message is displayed in case of a loading error.
Is this possible, and maybe even including html markup in the list page?