Results 1 to 8 of 8

Thread: how to open URL into Window ExtJs

  1. #1
    Sencha User
    Join Date
    May 2011
    Posts
    1

    Exclamation how to open URL into Window ExtJs

    how to open URL into Window ExtJs
    thanks

  2. #2
    Sencha User paul parker's Avatar
    Join Date
    May 2011
    Location
    Uk,London
    Posts
    1

    Default

    I have the same question.Did someone found anything?

  3. #3
    Sencha User friend's Avatar
    Join Date
    Apr 2011
    Posts
    895

    Default

    Window inherits the autoLoad config option from Panel. Note that I included all config options below, where most are optional:

    Code:
    var w = new Ext.Window({
      autoLoad: {
        url: "someApplicationURL",
        params: {
          firstName: "Shuman", 
          lastName: "Human"
        },
        callback: someCallbackFuncion,
        scope: someObjectObject,
        discardUrl: true,
        nocache: true,
        text: "Loading...",
        timeout: 60,
        scripts: false 
      },
      height: 300,
      width: 600
    });
    Keep in mind that this only supports URLs which are in the context of your application's domain, i.e. you can't plug in a URL of 'http://www.google.com' and expect it to work.

  4. #4

    Default

    I was looking this few days and at last find it here thanks for sharing.....

  5. #5

    Default

    can anyone explain above code?

  6. #6
    Sencha User
    Join Date
    Sep 2014
    Posts
    1

    Default

    xtype: 'button',
    text: 'NameButton',
    handler: function () {
    window.location = "http://www.sencha.com/";
    }

  7. #7

    Default

    Quote Originally Posted by friend View Post
    Window inherits the autoLoad config option from Panel. Note that I included all config options below, where most are optional:

    Code:
    var w = new Ext.Window({
      autoLoad: {
        url: "someApplicationURL",
        params: {
          firstName: "Shuman", 
          lastName: "Human"
        },
        callback: someCallbackFuncion,
        scope: someObjectObject,
        discardUrl: true,
        nocache: true,
        text: "Loading...",
        timeout: 60,
        scripts: false 
      },
      height: 300,
      width: 600
    });
    Keep in mind that this only supports URLs which are in the context of your application's domain, i.e. you can't plug in a URL of 'http://www.google.com' and expect it to work.


    The above one works well in EXTJS 4.2 But not working in EXTJS-5.1

  8. #8

Posting Permissions

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