Results 1 to 3 of 3

Thread: Url history

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    104
    Answers
    4
    Vote Rating
    0
      0  

    Default Answered: Url history

    Hi everybody, I wanna know how I can get the url in my view, I have this:

    Code:
    {
    xtype: 'button',
    text: 'Url',
    handler: function() {
        var a = new Ext.Application({
        });
        console.log(a);
    }
    And i see this:

    Screenshot_1.png

    When I try to get "a.historyForm.dom.baseURI", the console show "undefined".

    Why is that?
    Thanks in advance!

  2. To get the whole uri:

    Code:
    location.href
    There are other strings the browser gives you if you inspect what location is.

  3. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    To get the whole uri:

    Code:
    location.href
    There are other strings the browser gives you if you inspect what location is.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    104
    Answers
    4
    Vote Rating
    0
      0  

    Default

    Thank you so much! And you're right, I'm seeing many things in location.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •