Active
Project:
jQuery Mobile
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
16 Jan 2011 at 01:52 UTC
Updated:
27 Feb 2011 at 15:48 UTC
Hey,
Do you guys want to collaborate on this? I don't want to start another project that's also a jquery_mobile theme.
I think my work is a bit further then yours. I'm also not sure if you are still working on this. If not I'll love to take over this project.
You can see my theme over at https://github.com/ericduran/jam
Thanks.
Comments
Comment #1
Rj-dupe-1 commentedLooking really good Eric.
You might want to merge the work that Mike has done into your tree, so that everyone can continue on a single codebase. From chatting to him via email, Mike's focus is elsewhere at the moment and Vishun appears to be absent so I'm guessing it be more a matter of you incorporating the code that Mike has already written than actively collaborating at this stage. Having said that, it would be great to keep things moving without forking.
We are planning on putting some time and money into this project over the next month or so too, so I'm very interested in your progress and hope we call all collaborate. Our focus is on the user-facing side instead of admin, so hopefully we can work together.
Also, has anyone approached Tim Cosgrove or Brian McMurray? They are planning a presentation for DrupalCon Chicago focused on jQuery Mobile, so presumably they already have some working code hidden away somewhere...
Rj
Comment #2
zirafa commentedEric,
You should ask the module maintainer directly if they can grant you access so this project can grow some legs and so you can contribute back to drupal.org directly.
Thanks for posting your code - I am exploring this framework as well and interested in figuring out the best practices will be to deal with tables, columns, forms, and unpredictable html. Also how to determine when it is appropriate to have multiple "pages" on a single load, and how to split up UI to favor a one column format whenever possible. To get things functionally minimal may mean forcing certain standards and assumptions which I think is an acceptable trade off.
Comment #3
ericduran commented@zirafa, Thanks for the advice but I'll rather not email him directly for this issue. It was just an idea. I'm sure he'll see it eventually.
Comment #4
zirafa commentedHey Eric, I just emailed him and he responded saying he is up for talking more about this and would like to setup a chat with everyone interested on IRC #mobile-webdev (on freenode). Let me know if you are interested and available and I can try and schedule a meeting to try and collaborate and come up with a coordinated game plan.
Comment #5
timcosgrove commentedHi all-
We have a forward-facing D7 theme and accompanying module that we'll be posting shortly. It covers most functionality that an authenticated user would encounter dealing with core. We used some ideas from Eric's Jam theme in it...thanks Eric! It's currently a private repo on BitBucket; we'll be opening it to the public shortly.
Admin has turned out to be a harder problem for us. Much of the theming for admin is buried in core functions and hard to override. Also there are many cases where you want to output in an entirely different format (tables for example are nearly useless on mobile devices; imagine admin/structure/module or admin/people/permissions on a 2 inch square screen) but the markup is simply output with theme_table and no real way to identify it. I think a viable jQuery Mobile admin theme is going to have a corresponding module with massive amounts of menu_alter and rewritten page callbacks.
Honestly not sure what's going on with this theme project (jquery_mobile), but we're happy to contribute to it, or else we'll spin up our own theme project if it's stalled. I'm already going to be contributing a module to support jQuery Mobile theming (akin to jquery_ui.module, though simpler), so that project will be available shortly as well.
Looking forward to hopefully good questions/discussions at the session and good BoFs in Chicago!
-Tim Cosgrove (Treehouse Agency)
Comment #6
Rj-dupe-1 commentedExcellent Tim, I'm looking forward to seeing what you've done; a companion module makes a lot of sense.
It's probably worth emailing Mick (the maintainer) and talking directly. He responds to email quickly and is open to ideas, although he doesn't seem to reply in the task queue. Last time I spoke to him, he was still keep to get this moving forward but his priorities had shifted so he wasn't expecting to work on this theme for a while. That was the same for me, although priorities have shifted again and we've started enhancing Mick's code, so I'm keen to know what is behind door number 3.
Rj
Comment #7
vishun commentedHey there,
Would love to collaborate, sorry for the delay, much of the same story as everyone it seems. Busy busy. I can also commit stuff although I haven't and I really should have committed what I had way back when this project was initiated. If you would like to shoot us/me a link to check out a copy we can definitely get some review going on and get something posted. It's long overdue.
Thanks everyone.
Comment #8
emmeade commentedTim -
This sounds great. How soon is shortly? :) I've been sub-themeing Eric's Jam theme for a project due in April but I'm a Drupal n00b so it would be great to have something done by a pro.
Comment #9
timcosgrove commentedSorry, shortly has become rather lengthy. I had some medical stuff to deal with, and also other work commitments.
I'll at least get the BitBucket repo public by the end of the week, firm. I want to review the code a bit and make sure there's nothing bad in there. I'd like to get some things into D.O. also; the jQM module minimally and possibly my theme, under a different theme project (for the time being) than this one.
It sounds like there are at least four distinct branches of work on the idea jQuery Mobile themes, which will have to merge at some point, or not. Someone would have to take ownership of it, which is a commitment of course. I realize that collaboration is the actual topic of this issue queue, and that's something we'll have to deal with eventually. I don't know how many of the people developing jQM themes are going to be at DrupalCon, but this sounds like an opportunity for an excellent BoF or just discussion over beers. I do also realize that not everyone is going to Chicago.
I think the main issue here, potentially, is that we might all be jumping the gun. jQuery Mobile is currently in alpha. It's cranky. It's buggy. The issue queue is enlightening:
https://github.com/jquery/jquery-mobile/issues/labels/6%20-%20Blocker
https://github.com/jquery/jquery-mobile/issues/labels/5%20-%20Critical
Presumably all of those will need to be closed before there's a beta release, even. This is saying nothing bad against the jQM team at all - they're doing amazing work on an extremely ambitious, complicated project - but that's a lot of issues to close, given that probably everyone all the team also has at least some billable work to be doing.
Until recently, roughly 1000 of the roughly 1200 issues were unread. I'm not sure how those all went away; if someone cleaned up the issue queue or if the public display of issues was changed, or what.
I don't know about the other developers/themes, but I found I had to hack jQM to make it useful. jQM currently doesn't deal with keeping track of scripts you have already loaded. In its normal behavior, if you have AJAX enabled, jQM will only load the portion of the page within data-role="page" (and only the first div with that role at that). This is potentially Bad. If you need to, say, edit a node, and you're doing things strictly within jQM and within AJAX, then you lose all the js and CSS that Drupal is trying to load on a new page, that may not have been included prior. On the other hand, if you include scripts within data-role="page", they reload constantly, which is also Bad.
The hack I wrote (maybe 'fork' is a nicer term) adds a plug-in which keeps track of loaded scripts and stylesheets; and adds use of that plug-in during $.mobile.changePage() so that at least external scripts and styles are not re-loaded. This has its own issues; it doesn't deal with inline scripts or styles, for one. But, doing this gave me jQM as a relatively usable framework.
Simply turning AJAX off had its own problems. I don't currently remember exactly what was going wrong - this was now several weeks ago - but many things did not work as expected with AJAX off. Stepping through the jQM code seemed to reveal/indicate that the jQM developers weren't paying as careful attention to the non-AJAX case. Moreover, I think a fair amount of the benefit of jQM is lost if you turn off AJAX.
But so, the problem here is I had to hack/fork jQM, and I'm not confident that they're paying attention to pull requests or to issues filed by people outside their team. If I have to maintain a fork of jQM to make it work with Drupal, as good as my intentions are, I know that I (or anyone) will fail to keep up with it eventually. So either this particular feature has to be gotten into jQM, or it's not very usable with Drupal, IMO. Working with jQM as-designed currently is far too limiting, especially given the modular nature of Drupal.
I would love to discuss some of these issues here; they will also be talked about in the session Brian and I are giving, in BoF's, etc.
I think bottom line is, to the people who are considering using jQM for time-sensitive production sites, within the next few months: I would say that is ill-advised, mostly because of the stability or lack thereof of jQM itself.
All that said, I will have my forward-facing theme available to the public by the end of the week so if you want to run with it you can.
Comment #10
timcosgrove commentedOn the other hand, I (completely fortuitously) discovered tonight discogs.com is using jQM for their mobile site. They appear to have gone the non-AJAX route, and also appear to be limiting the scope of how they're using jQM. But, that is a working site, data-driven, that is using jQM.
Comment #11
timcosgrove commentedGood morning, people.
https://bitbucket.org/treehouseagency/jquerymobile.module
https://bitbucket.org/treehouseagency/jqm
You can see this in action here, if you like:
http://50.56.67.147/
Note that you can create users and you'll be able to create content immediately; I encourage you to do this.
jQM is a fairly simple theme; it doesn't aim to do much more than deal with core user-facing presentation. You will probably be unhappy if you try to use it as an admin theme. Drupal Admin has its own host of theming problems that require more specific attention. There will be a dev admin theme at the conference.
This is what I have to put public at this time; there will be more by the session. Please note that I don't quite consider these production-ready (nor do I think jQuery Mobile is at this point) but if you're feeling brave you should be able to start running with these a bit.
Looking at getting these into D.O.; with the new Git migration over, that whole process should be easier.
Comment #12
jcisio commentedI make a D6 site with jQuery Mobile http://beta.thongtincongnghe.com (replace "beta" with www for full véion). It's a work in progress, but it already supports Views, Advanced Forum and requires an add-on module to provide a few handy blocks.