1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    67
    Vote Rating
    0
    santoshsatav is on a distinguished road

      0  

    Question loading web page url in panel containig javascript

    loading web page url in panel containig javascript


    hi
    i have very simple problem , i need to load external url page into my panel, url page may have javascript.
    currently it work for simple page not having any script. i am using autoload

    autoLoad: 'test.htm', -- working (without any script)
    autoLoad: 'http://www.google.co.in/', -- not working

    i am using simple panel
    can any body suggest me solution on this.
    i want functionallity like iframe inside panel.

    thanks in advance.

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    83
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    1. You can use:
    Code:
    autoLoad: {url: 'test.htm', scripts: true}
    2. You can't autoLoad from a different domain. Instead, use an IFRAME, e.g.
    Code:
    bodyCfg: {tag: 'iframe', src: 'http://www.google.co.in/'}

  3. #3
    Sencha User
    Join Date
    May 2010
    Posts
    67
    Vote Rating
    0
    santoshsatav is on a distinguished road

      0  

    Smile thanks for responce

    thanks for responce


    what my actual working is i have web service which generate html web page on another server so response come as url which i want to load in my panel so what is you suggestion to go with, any other way to do it

    can any body suggest me way to refresh panel when url changed or new arived

    thanks for reply

  4. #4
    Sencha User
    Join Date
    May 2010
    Posts
    67
    Vote Rating
    0
    santoshsatav is on a distinguished road

      0  

    Default


    how can i set
    Code:
    bodyCfg: {tag: 'iframe', src: 'http://www.google.co.in/'}
    or
    Code:
    html: "<iframe frameborder='0' src='http://www.google.co.in/' width='100%' height='100%' id='iframe-external'></iframe>",
    on button click event

  5. #5
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    83
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Configure your panel with:
    Code:
    bodyCfg: {tag: 'iframe', src: Ext.SSL_SECURE_URL}
    and in the button use:
    Code:
    panel.body.dom.src = 'http://www.google.co.in/'

  6. #6
    Sencha User
    Join Date
    May 2010
    Posts
    67
    Vote Rating
    0
    santoshsatav is on a distinguished road

      0  

    Default


    thanks you save my time thank you very much

  7. #7
    Sencha User
    Join Date
    Aug 2010
    Posts
    45
    Vote Rating
    0
    pajelawrence is on a distinguished road

      0  

    Post How to get the variables from URL?

    How to get the variables from URL?



  8. #8
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    83
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Code:
    var params = Ext.urlDecode(location.search.substr(1));

  9. #9
    Sencha User
    Join Date
    Aug 2010
    Posts
    45
    Vote Rating
    0
    pajelawrence is on a distinguished road

      0  

    Post


    Quote Originally Posted by Condor View Post
    Code:
    var params = Ext.urlDecode(location.search.substr(1));

    Could you post an example?



    Thanks Condor

  10. #10
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    83
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    ??? That is an exampe!

Similar Threads

  1. How to include javascript file for fast page loading
    By psscommusic in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 29 Oct 2008, 9:43 AM
  2. Loading Web Page from another domain
    By elopez2022 in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 5 May 2008, 6:27 PM
  3. loading new web page in extjs
    By sathishs in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 14 Feb 2008, 8:02 PM
  4. how can i navigate to a new web page in panel
    By leonardzheng in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 21 Jan 2008, 9:32 AM
  5. Javascript code is not executed when loading a page in a Tab
    By maya in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 28 Apr 2007, 10:07 AM

Thread Participants: 3

Tags for this Thread