1. #1
    Sencha User
    Join Date
    Nov 2010
    Posts
    22
    Vote Rating
    0
    lexer is on a distinguished road

      0  

    Default Could I create "Call" button that will cause Iphone to make a call?

    Could I create "Call" button that will cause Iphone to make a call?


    Could I create "Call" button that will cause Iphone to make a call?

  2. #2
    Touch Premium Member
    Join Date
    May 2010
    Location
    The Netherlands
    Posts
    46
    Vote Rating
    0
    axxerion is on a distinguished road

      0  

    Default


    The trick is on creating a "tel" anchor...
    Code:
    Ext.form.PhoneField = Ext.extend(Ext.form.Text, {
    	inputType : 'tel',
    	phoneClss: 'axx-telephone',
    	initComponent : function() {
    		Ext.form.PhoneField.superclass.initComponent.call(this);
    	},
    	afterRender : function(ct, position) {
                var me = this;
                Ext.form.PhoneField.superclass.afterRender.call(me, ct, position);
            
                if (this.getValue()!=null && this.getValue().length > 0){
    			if (!me.arrowEl) {
    				
    				me.phone = me.arrowEl = me.el.createChild({
    					tag: 'a',
    					href: 'tel:' + this.getValue() 
    				});
    				me.arrowEl = me.phone.createChild({
    					tag: 'div',
    					cls: me.phoneClss,
    					scope: me,
    				});
    			}
                 }
        }
    });
    On my css i have

    Code:
    .axx-telephone
    {
    background-image: url(../../images/mobile/phone-icon.png);
    background-repeat:no-repeat;	width: 26px;	height: 26px;	position:absolute;	top: 3px;right: 3px; z-index: 10000;
    }

  3. #3
    Ext User xnakxx's Avatar
    Join Date
    Sep 2010
    Location
    Central Valley Ca
    Posts
    84
    Vote Rating
    0
    xnakxx is on a distinguished road

      0  

    Default


    you can also call window.location to a tel:\\ link. and assign it as the button handler

Similar Threads

  1. Does J Garcia still call Ext.Element "the heart of ExtJS"
    By deskwideweb in forum Community Discussion
    Replies: 18
    Last Post: 19 Oct 2010, 4:11 PM
  2. Double call to "active" listener with tab panel
    By pieter333 in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 13 May 2009, 10:35 PM
  3. How to call a jsp file from "tbar button"
    By ajax&me in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 13 Dec 2007, 9:24 PM
  4. Replies: 17
    Last Post: 28 Jun 2007, 7:03 PM
  5. Button handler call a class method - "this" ?
    By mattajlsm in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 11 May 2007, 8:00 AM

Thread Participants: 2

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi