- This topic has 4 replies, 3 voices, and was last updated 11 years, 1 month ago by support-michael.
-
AuthorPosts
-
jailbirdMemberwhy does not work jQueryMobile in Mobione ?
I added jQueryMobile to JavaScript libraries and CSS.
On first page work OK but if i go to next page is any problem .And any error : :Error: Syntax error, unrecognized expression: unsupported pseudo: jquery-1.8.3.min.js:2
DEFAULTphoneui.prePageTransition = function(currentScreenId,targetScreenId) { return true; } phoneui.postPageTransition = function(newScreenId) { if (newScreenId == "#m1-tablet1") { $("#m1-tablet1-panel1-scroller").html(""); pageFirst(); } if (newScreenId == "#m1-tablet2"){ $("#m1-tablet2-panel1-scroller").html(""); pageTwo(); } } phoneui.postOrientationChange = function(newOrientation) { } phoneui.documentReadyHandler = function() { pageFirst(); } function pageFirst(){ qw = document.createElement('input'); qw.setAttribute('name','slider'); qw.setAttribute('id','slider'); qw.setAttribute('min','0'); qw.setAttribute('max','100'); qw.setAttribute('value','50'); qw.setAttribute('type','range'); document.getElementById('m1-tablet1-panel1-scroller').appendChild(qw); } function pageTwo(){ qw = document.createElement('input'); qw.setAttribute('name','slider'); qw.setAttribute('id','slider'); qw.setAttribute('min','0'); qw.setAttribute('max','100'); qw.setAttribute('value','50'); qw.setAttribute('type','range'); document.getElementById('m1-tablet2-panel1-scroller').appendChild(qw); }
support-octavioMemberHi jailbird,
I have escalated your question to the dev team, will follow up with you tomorrow when I get more information.
support-michaelKeymasterIn general we do not support integration of 3rd party UI frameworks. Most mobile ui frameworks employ their own conventions and event handling model which can interact negatively with other frameworks when mixed together. Thus we are not able to investigate this.
Having said this I have worked with JQM some. My 1st thought when I saw your snippet and explanation that the 2nd page does not work is that JQM is encountering an issue either processing the dynamically generated input element. The first page is subject to JQM’s initial code-gen phase during the loading and startup process. The 2nd page is not part of that process; thus the root of the problem. This is my guess at what’s goofed.
jailbirdMemberFor better example is here this simple project with problems . 🙁
Attachments:
You must be logged in to view attached files.
support-michaelKeymasterAs I shared earlier, at this time there is no plan for mobione to work with jqm or any other widget library. Given that it is out of scope for our team. Perhaps others in the community may be able to assist.
-
AuthorPosts