1. #11
    Ext JS Premium Member SimonFlack's Avatar
    Join Date
    Jul 2010
    Location
    Norway
    Posts
    241
    Vote Rating
    3
    SimonFlack is on a distinguished road

      0  

    Default


    I will test it on a phone asap. Do you know a good solution for opening external links in a new browser window from a sencha button in a standalone app?
    Simon Flack
    CEO and UX Designer
    WhiteFox AS, Norway

    Web: www.whitefox.no

    Facebook: www.facebook.com/WhiteFoxAS

    Twitter: @WhiteFoxAS

  2. #12
    Sencha User
    Join Date
    Mar 2011
    Location
    Lincoln, UK
    Posts
    27
    Vote Rating
    0
    BenMajor is on a distinguished road

      0  

    Default


    Sorry for the late response chaps. When I tried to use window.location.href in combination with the button handler in app mode, it didn't seem to intercept, even though I was passing a valid telephone number and the tel: prefix.

    As far as I can tell, the only solution for now is that posted by Simon.

    Thanks,
    Ben.

  3. #13
    Ext JS Premium Member SimonFlack's Avatar
    Join Date
    Jul 2010
    Location
    Norway
    Posts
    241
    Vote Rating
    3
    SimonFlack is on a distinguished road

      0  

    Default


    btw @SimonFlack, the link to your editableList demo is broken
    Our servers crashed over the weekend... I am restoring everything now :-(

    Update: Should be up again now.
    Simon Flack
    CEO and UX Designer
    WhiteFox AS, Norway

    Web: www.whitefox.no

    Facebook: www.facebook.com/WhiteFoxAS

    Twitter: @WhiteFoxAS

  4. #14
    Ext JS Premium Member SimonFlack's Avatar
    Join Date
    Jul 2010
    Location
    Norway
    Posts
    241
    Vote Rating
    3
    SimonFlack is on a distinguished road

      0  

    Default


    Hey Ben.

    I created a little plugin to do this for you. Just tested it on my phone in standalone mode and everything worked.

    demo: http://www.whitefox.no/plugins/linkbutton/

    plugin: http://www.whitefox.no/plugins/linkb....linkButton.js

    Usage:
    Code:
    {
                        xtype: 'button',
                        linkId: 'myLink3',
                        url: 'tel:+4790992724',
                        text: 'Call: Simon Flack',
                        plugins: [ new simfla.ux.plugins.linkButton() ]
                    }
    I am going to use this for opening external links but it will also work for tel and mailto links.

    Hope this helps.
    Simon Flack
    CEO and UX Designer
    WhiteFox AS, Norway

    Web: www.whitefox.no

    Facebook: www.facebook.com/WhiteFoxAS

    Twitter: @WhiteFoxAS

  5. #15
    Sencha User
    Join Date
    Mar 2011
    Location
    Lincoln, UK
    Posts
    27
    Vote Rating
    0
    BenMajor is on a distinguished road

      0  

    Default


    Thanks Simon, that's fantastic!

  6. #16
    Sencha User
    Join Date
    Sep 2010
    Location
    Netherlands
    Posts
    190
    Vote Rating
    0
    kevinv1990 is on a distinguished road

      0  

    Default great

    great


    Great solution, but I want to change the url dynamicly (when the panel becomes active) is this possible? Let's say the new url link comes from a record in a store. example you got a list with different music bands, and every music band has it's own number, so on the detailpage I want to give each music band his own phone number in the button.

    Kevin

  7. #17
    Ext JS Premium Member SimonFlack's Avatar
    Join Date
    Jul 2010
    Location
    Norway
    Posts
    241
    Vote Rating
    3
    SimonFlack is on a distinguished road

      0  

    Default


    Hey Kevin..

    I have added a setUrl() function to set the url dynamically after render.

    http://www.sencha.com/forum/showthre...l=1#post606020

    Hope this helps.

    Simon
    Simon Flack
    CEO and UX Designer
    WhiteFox AS, Norway

    Web: www.whitefox.no

    Facebook: www.facebook.com/WhiteFoxAS

    Twitter: @WhiteFoxAS

  8. #18
    Sencha User
    Join Date
    Sep 2010
    Location
    Netherlands
    Posts
    190
    Vote Rating
    0
    kevinv1990 is on a distinguished road

      0  

    Default


    You're the best, i found a similar solution myself 5 minutes ago. Than I checked the forum and saw your post. Thanks a lot, it's a great plugin, I wonder why sencha didn't make this before, since it's a mobile platform you would say that calling with your phone should not be that far off ^^.

  9. #19
    Touch Premium Member
    Join Date
    Mar 2011
    Location
    Portland, OR
    Posts
    133
    Vote Rating
    5
    markwyner is on a distinguished road

      0  

    Default


    Hey, all.

    There's a really simple solution to this which I successfully use in my builds. Either of the following will work for mailto links:

    Code:
    handler: function() {
    	location = "mailto:someone@somewhere.com";
    }
    handler: function() {
    	location.href = "mailto:someone@somewhere.com";
    }
    I haven't tried this for a tel link but I have to assume it will work?
    -------------------------------------------
    Mark Wyner, Partner, Bunker
    http://bunkercollective.com/

  10. #20
    Sencha User
    Join Date
    Dec 2011
    Posts
    4
    Vote Rating
    0
    mrVinh is on a distinguished road

      0  

    Default


    Thanks for your help, Simon. I guess that's the only option to implement it at the moment, unless any of the Sencha Touch developers can help?

    For a mobile framework, I would have expected this to be more of a common issue than it appears to be, to be honest.

    Thanks

Similar Threads

  1. Link Button or Hyper link
    By nikhilwalker in forum Ext 2.x: Help & Discussion
    Replies: 69
    Last Post: 24 May 2013, 5:13 AM
  2. Id of ExtJs button firing an event
    By mayhem in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 21 Sep 2010, 1:13 AM
  3. Firing a scroll gesture from a button tap
    By DaveC426913 in forum Sencha Touch 1.x: Discussion
    Replies: 8
    Last Post: 2 Sep 2010, 11:46 AM
  4. Link Ext.Button with HTML button
    By artnum in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 11 Apr 2008, 1:44 AM

Thread Participants: 6

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