最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Mixing JQuery Mobile & JQuery UI - Stack Overflow

programmeradmin0浏览0评论

We're thinking to bine JQuery UI and Mobile. Does somebody has some experience with this ?

Past experience is proving tricky jquery forum, but it's a bit old.

Any sharing of experience and ideas is weled.

Some experience using the JQuery Mobile virtual events ?

Thanks

We're thinking to bine JQuery UI and Mobile. Does somebody has some experience with this ?

Past experience is proving tricky jquery forum, but it's a bit old.

Any sharing of experience and ideas is weled.

Some experience using the JQuery Mobile virtual events ?

Thanks

Share Improve this question asked Feb 4, 2012 at 7:47 ic3ic3 7,69015 gold badges72 silver badges122 bronze badges 4
  • to help get some meaningful answers, could you explain what you are looking to gain from the jquery UI framework that isn't in the jqm framework? Thanks – shanabus Commented Feb 5, 2012 at 17:39
  • 1 It's the other way around, but : droppable, sortable, dialog, resizable, autoplete... – ic3 Commented Feb 5, 2012 at 18:20
  • That would be pretty large in size for a mobile audience. I've used jQM before but not with jQuery UI on top of it. – Anony372 Commented Mar 2, 2012 at 17:47
  • it's not for mobile phones but for tablets – ic3 Commented Mar 3, 2012 at 9:49
Add a ment  | 

2 Answers 2

Reset to default 5

The current version of jQuery UI 1.10.4 and jQuery Mobile 1.4.2 do not play well together. Styles in Mobile are ruined as soon as you include jQuery UI into your page.

However, if you need only particular functionality from jQuery UI, as in my case I only need Draggable/Droppable/Sortable interactions, you can create custom jQuery UI download at https://jqueryui./download/ and include interactions only. Then you can simply delete everything except js/jquery-ui-1.10.4.custom.min.js file and all works well together again.

I expect you'll run into issues using jQuery UI widgets even using this approach. But, it makes sense to use jQuery Mobile stuff only.

If you are targeting tablets and only tablets then this shouldn't be a problem. Just treat JQM as a Jquery plugin and JQuery UI as another plugin.

Its possible you'll run into some UI errors, but it can be fixed. We've worked on an Enterprise Application for one of our clients using JQM and Jquery UI (for the datagrid and a few goodies) and High-charts. The target platform was iPad.

EDIT: Its not an easy process, but you "can" make it work.

发布评论

评论列表(0)

  1. 暂无评论