Comments (5)
Are you sure that his is generating the same HTML as expected by jQuery mobile?
from jquery.dform.
David,
I think it's correct, look at the html code generated in the example (using Firebug):
*********** this is the html generated by dform (this doesn't work) **********************
< div data-role="controlgroup" id="myDataRoleControlgroup" class="ui-dform-DivDataRoleControlgroup">
< a href="#" data-role="button" id="BtnStartForm2" class="ui-dform-ADataRoleButton">ITEM MENU 1< / a >
< a href="#" data-role="button" id="BtnMenu1" class="ui-dform-ADataRoleButton">ITEM MENU 2< / a >
< /div >
*********** this is the html in html file (this works) **********************
< div data-role="controlgroup" >
< a href="#" data-role="button">ITEM MENU 3< / a >
< a href="#" data-role="button">ITEM MENU 4< / a >
< a href="#" data-role="button">ITEM MENU 5< / a >
< /div >
I think that the problem could be page events...
In this example the dform-html is probably generated after jquery mobile js is loaded.
from jquery.dform.
David,
did you try dform and jquery mobile?
Do you have any suggestion?
Thanks
Luca (Italy)
from jquery.dform.
I don't think it's a dForm issue. You have to just treat dForm content the same as any other dynamically created content. Taken from this Stackoverflow answer I got this working (see in this Fiddle):
<div id="home" data-role="page">
</div>
$("#home").dform({
"type": "div",
"data-role": "content",
"class": "content",
"html": {
"type": "ul",
"data-role": "listview",
"data-inset": "true",
"html": {
"type": "li",
"html": {
"type": "a",
"href": "#",
"html": "Testing dForm"
}
}
}
});
$.mobile.page("#home", {transition: "none"});
$.mobile.activePage.trigger('create');
from jquery.dform.
thanx
from jquery.dform.
Related Issues (20)
- Validation on Checkboxes and Radios cause the form to fail HOT 2
- Appending mutliple items to form with dform function HOT 5
- plugin validation method HOT 1
- Issue in type date and checkbox
- Help to implement feature to set Values HOT 1
- Dynamic label links HOT 2
- How to make different name of checkbox? HOT 1
- jQuery plugin structure HOT 1
- When using with AngularJS Submit button does not do anything HOT 2
- add validate remote on pre subscribe HOT 1
- It seems the validation is not working... HOT 3
- How can I don't use the 'form' tag? HOT 2
- any other ways to dynamic set the default values in dform?
- IE8 dform not supported HOT 2
- dForm plugin add time picker widget
- non-obvious how to implement ajax subscriber HOT 4
- dform tabular look HOT 1
- value for radiobuttons and checkboxes
- multiple doesn't work
- Custom select not inserting options HOT 6
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 jquery.dform.