[CLOSED] Calling the javascript function in aspx page within ext:Panel after loading

  1. #1

    [CLOSED] Calling the javascript function in aspx page within ext:Panel after loading

    Hi

    I have a main page with a ext:Panel. In this ext:Panel, I'm loading a child aspx page within. I wish a listener to call a javascript function after the aspx page is completely loaded in ext:Panel.

    The listener 'Load' in tag 'Loader' appears triggered before completely load page.

    Thanks for any help.
    Last edited by Daniil; Apr 09, 2012 at 3:01 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Well, the Load event is fired after a successful load.
    http://docs.sencha.com/ext-js/4-0/#!...der-event-load

    And it's completely loaded, i.e. a browser has already got a response.

    But ComponentLoader knows nothing about a response. For example, you load a page with Ext.NET controls. They take some time for rendering and it happens the moment when a page is loaded. ComponentLoader can't know how much time they will take to be rendered.

    So, the following is wrong:
    The listener 'Load' in tag 'Loader' appears triggered before completely load page.
    Probably, you should use the AfterRender event of a top level widget within a child page.
  3. #3
    Ok ,thanks Daniil... I will do what you suggest.
    If you want, you can close this thead.
  4. #4
    Ok, I will mark as closed.

    Please feel free to update the thread if you will be in trouble further.
  5. #5

    How can get the value of one render function for another

    <script type="text/javascript">
            var template = '<span style="color:{0};">{1}</span>';
            var date1 = "";
            var RenderDateswise = function (value) {
          
                var date = new Date(value);
                var userdate = date.getMonth().toString() + '-' + date.getDate().toString() + '-' + date.getFullYear().toString();
                date1 = date.getDate().toString();
                return userdate;
               
            };
            var RenderOpportunityNumber = function (value, p, record) {
              
                var date2 = date1;
            
                var d = new Date();
    
                var todaydate = "6";
                if (date1 == todaydate)
                 {
                     return String.format(template, "green", value);
                             
                  }
                 else 
                   {
                       return String.format(template, "red", value);
                    }
    
                   var RenderOpportunityNumber = function (value, p, record) {
                       if (value.substr(0, 1) == "S") {
                           return String.format('<b><a href=#")\'>{0}</a></b>', value);
                       } else {
                           return String.format('<b><a href=#")\'>{0}</a></b>', value);
                       }
                   };
    
              
            };
          
    
        </script>
    Last edited by Daniil; Oct 23, 2012 at 2:17 PM. Reason: Please use [CODE] tags
  6. #6
    Hi @kripanand,

    Welcome to the Ext.NET forums!

    Please start a new forum thread. If you feel the threads are related, please feel free to cross link between the two.

Similar Threads

  1. Replies: 7
    Last Post: Jul 31, 2012, 8:31 PM
  2. calling aspx page in tabpanel
    By hsmukunda in forum 1.x Help
    Replies: 1
    Last Post: Oct 04, 2011, 4:29 PM
  3. [CLOSED] Calling a code-behind function from my aspx page
    By Bert76 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 08, 2011, 3:53 PM
  4. [CLOSED] Calling a Javascript function of Child page from Popup (inside Frame)
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 27, 2011, 6:00 AM
  5. Replies: 13
    Last Post: Feb 24, 2010, 5:34 PM

Posting Permissions