1. #1
    Sencha User
    Join Date
    Nov 2014
    Posts
    37
    Vote Rating
    2
    Answers
    2
    lourdhumca is on a distinguished road

      0  

    Default Unanswered: Sencha Touch 2.4 - Ext.get - id contains dot does not fire the events to listeners

    Sencha touch 2.4.0
    iOS: 7, Cordova: 3.6

    My application contains some dynamic html comes from server.
    Which ids is like below,

    assume table id is --- form1.table1 --- dot is present in the id

    HTML Code:
    <table id="form1.table1" class=" dynamicTable flex"></table>
    We are tying to listener the touchstart and touchmove events for this id.

    Code:
    tempId = "form1.table1";
    dtable = Ext.get(tempId);
    dtable.removeListener();
    /** Register Touch Move Events for Table **/
    dtable.addListener('touchstart', function(event){
          startX = event.pageX;
          startY = event.pageY;
     });
    dtable.addListener('touchmove', function(event){
            var posY = event.pageY;
           var posX = event.pageX;
          // handle div move logic
         ..
    }
    The touchstart and touchmove events are not triggered on iPad.

    But If the id doesn't contain dot then the touchstart and touchmove events firing properly.

    Can someone please help me to resolve this issue.

  2. #2
    Sencha User lumberjack's Avatar
    Join Date
    Nov 2014
    Location
    Kansas
    Posts
    776
    Vote Rating
    32
    Answers
    101
    lumberjack has a spectacular aura about lumberjack has a spectacular aura about

      0  

    Default

    Observable components/elements need to provide an id that satisfies the validIdRegex: /^([\w\-]+)$/

    Regards,
    Brian


  3. #3
    Sencha User
    Join Date
    Nov 2014
    Posts
    37
    Vote Rating
    2
    Answers
    2
    lourdhumca is on a distinguished road

      0  

    Default

    So, we can't provide an id as 'my.id'.
    But actually jQuery observe these types by \\ i.e my\\.id

    Is there a way forward to allow my.id?

Thread Participants: 1

Tags for this Thread