Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Improved Jquery Mobile support #63

Closed
icetbr opened this Issue Jun 20, 2012 · 4 comments

Comments

Projects
None yet
2 participants

icetbr commented Jun 20, 2012

I tried other template engines, such as PURE, and they have the same problem. Elements such as the select and checkbox gets duplicated after render.

http://jsfiddle.net/dxCua/1/

I tried to debug this, but could not figure it out the problem.

Thanks

Owner

pyykkis commented Jul 9, 2012

I couldn't understand what you're trying to achieve. Could you elaborate the issue by adding

  1. The template you would like to use
  2. The data you'd like to render
  3. The result you're expecting

icetbr commented Jul 10, 2012

I'm sorry, I swear the the jsfiddle was NOT WORKING when I posted it :-)

The thing is this:

  1. Run with "onLoad" code wrap (choose on the left column). This does not duplicate the widget, but transparency does not work

  2. Run with "no wrap (body)". Transparency works, and the select is duplicated. BTW, the $(document).on("pageinit"... is the jQuery Mobile equivalent of document.onLoad.

All I want is to have an alert window show up on loading, and only ONE select html element, with the second option selected

Owner

pyykkis commented Jan 24, 2013

I took a look on this. jQueryMobile is just batshit crazy, I'm not gonna supoort it. It fakes select elements by using divs and does all kind of magic with classes. Here's how you'd set selected option with native components http://jsfiddle.net/dxCua/4/

@pyykkis pyykkis closed this Jan 24, 2013

icetbr commented Jan 25, 2013

Agreed! Thanks for the effort. Will take a look at your example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment