[CLOSED] Error using AutoLoad in panel

  1. #1

    [CLOSED] Error using AutoLoad in panel

    Hi
    I have a Panel inside a Windows that I want to load a different page in, but it generates an error? Visual studio breaks in debug mode and saya "htmlfile: Unknown runtime error" and this code in highlighted in the debugfile.
    Im using version 0.6

    this.dom.innerHTML=html
    This is my code
    
    
    
    <ext:Window ID="wdn1" Width="600" Height="300" Modal="true" runat="server" Showonload="false" Collapsible="false" Icon="Application" 
    
    
    Title="Alter charter" >
    
    
    <Content>
    
    
    <ext:Panel AutoLoad="NewPage.aspx" AutoHeight="true" ID="pnlChangeCharter" runat="server" Collapsible="True" BodyBorder="false" Border="False" Title="Charter" Header="false" AutoScroll="True" Collapsed="false">
    
    
    
    
    
    </ext:Panel>
    
    
    
    
    
    </Content>
    
    
    </ext:Window>
    Any ideas?

    Best regards
    Mikael Jürke

  2. #2

    RE: [CLOSED] Error using AutoLoad in panel

    Hi Mikael,

    try to set full path for AutoLoad property. It forces iframe creation

        Panel1.AutoLoad = new Uri(HttpContext.Current.Request.Url, "NewPage.aspx").ToString();
    Let me know about results

  3. #3

    RE: [CLOSED] Error using AutoLoad in panel

    Hi

    I tried to put the code you suggested in the page load. But it results in an other runtime error, Visual Studio halts on this code:

    
    
    
    setTimeout(function () {
        if (result.script &amp;&amp; result.script.length > 0) {
        eval(result.script); 
        }
    
    
        if (requestConfig.success) { 
        requestConfig.success(response, result, control, type, action, userParams); 
        }
    
    
    }, delay);
    Best regards
    Mikael Jürke
  4. #4

    RE: [CLOSED] Error using AutoLoad in panel

    It seems that you try to set AutoLoad during AjaxEvent. If you no need this please wrap AutoLoad setting to

        if(!Ext.IsAjaxRequest)
        {
          Panel1.AutoLoad = new Uri(HttpContext.Current.Request.Url, "NewPage.aspx").ToString();
        }
    I'll investigate AutoLoad behaivor during AjaxEvent and let you know about results

  5. #5

    RE: [CLOSED] Error using AutoLoad in panel

    Thank you, right on the spot. It now works if I dont do it during AjaxEvent.

    Best regards
    Mikael

Similar Threads

  1. Replies: 1
    Last Post: Jan 12, 2010, 9:30 PM
  2. Replies: 2
    Last Post: Jul 01, 2009, 1:06 PM
  3. AutoLoad Panel Populate Child Page Error
    By camus92 in forum 1.x Help
    Replies: 5
    Last Post: Mar 09, 2009, 4:08 PM
  4. Auto Resize Panel in ViewPort on client-side Panel.AutoLoad
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 13
    Last Post: Dec 03, 2008, 3:27 PM
  5. [CLOSED] Auto Resize of North Panel in ViewPort on Panel.AutoLoad
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 19, 2008, 12:13 AM

Posting Permissions