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?