1. #1
    Ext User
    Join Date
    Sep 2010
    Posts
    33
    Vote Rating
    0
    Steve Lewis is on a distinguished road

      0  

    Default Best Solution for launching external URL from Button?

    Best Solution for launching external URL from Button?


    Hi,

    I'm looking for the best way to launch an external URL (mailto) to be able to populate an email client with message body from a button within my sencha app. My currently thinking is to add html to a button with the link. Is there a more straight forward way to do this?

    Thanks in Advance,
    Steve

  2. #2
    Sencha User
    Join Date
    Aug 2010
    Posts
    303
    Vote Rating
    3
    steve1964 is on a distinguished road

      0  

    Default


    Hi i use this code:

    Code:
           var googlePanel = new Ext.Panel({
                fullscreen: 'true',
                layout: 'vbox',
                ui: 'dark',
                cls: 'googlemargin',
                html: '<div class="google">Test?</div>',
                items: [{xtype: 'button', text: 'GO', ui: 'decline', handler: function() {location.href='http://m.google.com';} }]
            });

  3. #3
    Ext User
    Join Date
    Sep 2010
    Posts
    33
    Vote Rating
    0
    Steve Lewis is on a distinguished road

      0  

    Default


    Thanks Steve,

    Nice straightforward solution.

  4. #4
    Ext User
    Join Date
    Sep 2010
    Posts
    33
    Vote Rating
    0
    Steve Lewis is on a distinguished road

      0  

    Default


    Hi I actually wanted to load the url in a new browser window. I tried

    var win = window.open('http://myurl');

    which does not seem to work. Any suggestions?

    Thanks,
    Steve

  5. #5
    Sencha User
    Join Date
    Feb 2008
    Location
    HCM, VietNam
    Posts
    23
    Vote Rating
    0
    spidermanit is on a distinguished road

      0  

    Default


    Quote Originally Posted by Steve Lewis View Post
    Hi I actually wanted to load the url in a new browser window. I tried

    var win = window.open('http://myurl');

    which does not seem to work. Any suggestions?

    Thanks,
    Steve
    hi All,
    I got the same problem, window.open doesn't seem to works. Any suggestion?
    Thanks

  6. #6
    Sencha User
    Join Date
    Feb 2008
    Location
    HCM, VietNam
    Posts
    23
    Vote Rating
    0
    spidermanit is on a distinguished road

      0  

    Default


    Nobody can help me? Please.

  7. #7
    Ext User
    Join Date
    Sep 2010
    Posts
    33
    Vote Rating
    0
    Steve Lewis is on a distinguished road

      0  

    Default


    Looks like popup blockers were causing the problem...

    Will probably look at using an Iframe instead.

  8. #8
    Sencha User
    Join Date
    Feb 2008
    Location
    HCM, VietNam
    Posts
    23
    Vote Rating
    0
    spidermanit is on a distinguished road

      0  

    Default


    Quote Originally Posted by Steve Lewis View Post
    Looks like popup blockers were causing the problem...

    Will probably look at using an Iframe instead.
    Thank you. But using Iframe is not good for my design, but i will consider it again. Thanks.

  9. #9
    Sencha User
    Join Date
    May 2014
    Posts
    32
    Vote Rating
    0
    hmp6121990 is on a distinguished road

      0  

    Default URL Config option for button in Sencha Architect?

    URL Config option for button in Sencha Architect?


    Hi

    I am trying to navigate to servlet on a button click in Sencha Architect. But I am not able to find out URL config options for button and textfield. If I can then I can set URL value to a particular servlet.


    So, please help me on this.

Similar Threads

  1. Loading external url in panel?
    By jacstofberg in forum Sencha Touch 1.x: Discussion
    Replies: 34
    Last Post: 10 Aug 2012, 3:49 AM
  2. Form Post To External URL
    By yerajeff in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 28 Jul 2010, 12:02 AM
  3. Ext.data.Connection() Url is not retrieved | Help me to findout the solution
    By sorna_lavanya in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 10 Jul 2009, 5:31 AM
  4. Launching a URL in a Web-Desktop window?
    By binro01 in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 23 Jun 2008, 1:34 PM
  5. Show external URL in a window
    By charlieholder in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 21 Apr 2008, 10:47 AM

Thread Participants: 3

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