facebook

jQuery Mobile in MobiOne: community Q

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #343068 Reply

    jailbird
    Member

    why 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
    DEFAULT

    phoneui.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);
        }
    #343110 Reply

    Hi jailbird,

    I have escalated your question to the dev team, will follow up with you tomorrow when I get more information.

    #343133 Reply

    support-michael
    Keymaster

    @jailbird

    In 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.

    #343153 Reply

    jailbird
    Member

    For better example is here this simple project with problems . 🙁

    Attachments:
    You must be logged in to view attached files.
    #343157 Reply

    support-michael
    Keymaster

    As 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.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: jQuery Mobile in MobiOne: community Q

You must be logged in to post in the forum log in