[CLOSED] javascript errors with the latest

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] javascript errors with the latest

    I am getting 2 javascript errors on the same page:

    Ext.util.DelayedTask(functi....script.length>0){eval(result.script);}\n</a>
    cbDocType exists in the winDocumentDetails user control which is inside ContentPlaceHolder1.

    I am not getting any server side error and that is what I find most strange. The web app builds fine but then the control is not found.
    Last edited by geoffrey.mcgill; Feb 22, 2011 at 4:45 AM.
  2. #2

    RE: [CLOSED] javascript errors with the latest

    Hi,

    We need test example to resolve the issue
  3. #3

    RE: [CLOSED] javascript errors with the latest

    can I send by email?
    it is quite large and I don't want to publish it on the forum.


  4. #4

    RE: [CLOSED] javascript errors with the latest

    Hi,

    Yes, please send to the support@object.net
  5. #5

    RE: [CLOSED] javascript errors with the latest

    sent
  6. #6

    RE: [CLOSED] javascript errors with the latest

    Hi,

    Placing Panel inside MultiField may be causing issues in this scenario. Can you provide more information re why MultiField is configured this way in your sample?


  7. #7

    RE: [CLOSED] javascript errors with the latest

    ok,the purpose is this:
    I want to have a file upload control and next to it I want to give the user some information about the file uploaded before if any, which is going to be replaced in case the user uploads again.


    I would like to display an icon next to the file upload and some text (the file name)
    I tried using a button but I can't set the icon programmatically in the Page load event.


    any suggestions?
  8. #8

    RE: [CLOSED] javascript errors with the latest

    Hi,

    1. You can use ext:Label and set Icon and Text as required (during AjaxEvent, initial page load or on client side)
    2. What problems do you have with Button icon? Can you demonstrate with example that icon is not updated for button?
  9. #9

    RE: [CLOSED] javascript errors with the latest

    here is an example. In this case the label does not show any icon and neither does the button.
    ( not even the icon I am setting in markup )

    Test.aspx:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="Truvo.Web.AdvertiserLounge.Admin.Test" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title></title>
    </head>
    <body>
        <ext:ScriptManager runat="server" />
        
        <ext:Button runat="server" Text="click here">
            <AjaxEvents>
                <Click OnEvent="ShowWindow"></Click>
            </AjaxEvents>
        </ext:Button>
    
    <ext:Window ID="DocumentDetailsWindow" runat="server" Icon="PageEdit" Title="#Document Details#" Width="700" Height="530" AutoShow="false" Modal="true" Show&#111;nload="false">
        <Body>
            <ext:Hidden ID="DocumentID" runat="server" />
            <ext:Panel ID="Panel1" runat="server" Border="false" BodyStyle="background-color: #E4E4E4">
                <Body>
                    <ext:FormLayout ID="FormLayout1" runat="server" LabelWidth="200">
                        <ext:Anchor>
                                    <ext:Label runat="server" ID="lblDocumentFileType" Icon="PageWhite"></ext:Label>
                        </ext:Anchor>
                    </ext:FormLayout>
                </Body>
            </ext:Panel>
        </Body>
    </ext:Window>
    
    
    </body>
    </html>
    Test.aspx.cs:
    namespace Truvo.Web.AdvertiserLounge.Admin
    {
        public partial class Test : System.Web.UI.Page
        {
            protected void Page_Load(object sender, EventArgs e)
            {
            }
            protected void ShowWindow(object sender, Coolite.Ext.Web.AjaxEventArgs e)
            {
                this.lblDocumentFileType.Icon = UtilLib.GetMimeIcon("application/pdf");
                this.lblDocumentFileType.Text = "somefile.pdf";
                this.DocumentDetailswindow.Show();
            }
        }
    }
    this example is with an ajax event

  10. #10

    RE: [CLOSED] javascript errors with the latest

    Hi,

    If you set Icon during AjaxEvent then you have to register Icon during initial Page_Load

    protected void Page_Load(object sender, EventArgs e)
            {
               if(!Ext.IsAjaxRequest)
               {
                   ScriptManager1.RegisterIcon(Icon.Add);
               }
            }
Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] Help debugging various javascript errors
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 23, 2010, 12:31 PM
  2. [CLOSED] [1.0] ColumnModel JavaScript errors
    By egodoy in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 29, 2010, 11:18 AM
  3. Javascript errors when upgrading to 0.8.2
    By principal_X in forum 1.x Help
    Replies: 4
    Last Post: Jan 07, 2010, 9:06 PM
  4. javascript errors when render
    By nanosassa in forum 1.x Help
    Replies: 2
    Last Post: May 09, 2009, 12:10 PM
  5. [CLOSED] Upgrade from v0.7 to latest with errors
    By jchau in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Feb 13, 2009, 6:51 PM

Posting Permissions