I have some text alignment problem with inset lists.
Here is my example:
<ul data-role="listview" data-inset="true"> <li data-role="fieldcontain"> <label for="name">Text Input:</label> <input type="text" name="name" id="name" value="" /> </li> <li data-role="fieldcontain"> <label>Text to read:</label> This is bad aligned text </li> </ul>
The string "This is bad aligned text" will not be placed aligned with the input text above it, it will be next to the label. Is there any <> that I need to surround my text so jquery mobile will try to align the text correctly, if possible? I simply want to render text. If I type <select>, <textarea> or <input> it is correctly aligned.
If yes, what is it?
Here is a demo of my problem: https://tinker.io/71d3c/1 The text is bold and not aligned with the above input text.
I have been using the $.ajax() call from JQuery and I think it is very nice. However I have a question. When I load my page, it will load my ajax call and it works perfectly. However, while the ajax call is loading (it takes about 2 sec to complete) if I press the browser "refresh" button, their is an error. Well, the "error: function()" is called.
I will provide my code here, and I hope you guys will be able to help me. If you need something else, please ask. I would provide the http link, but this is an Intranet project at my job...
// http://api.jquery.com/jQuery.ajax/ $.ajax({ type: 'GET', url: 'ajax.php', data: 'getassignmentgroupticket='+AsgGroup+'&ascdesc='+ascdesc+'&orderby='+orderby+'&ms='+new Date().getTime(), success: function(data) { if(data == '') { // nothing to do } else { document.title = "("+data+") "+AsgGroup+" ToDo List - SM Tools"; } }, error: function(){alert("Error t101 loading your to do list...");} });
So as you see, if I press "refresh", the alert() function is called everytime. But I do remind that my other websites using ajax (without jQuery) don't do that.