[CLOSED] "missing } after property list" error

  1. #1

    [CLOSED] "missing } after property list" error

    Could be a 0.4.6 question as in that's the version i'm on but hopefully not. I've got a modal window that collects some parameters and i want to pass these to another pop up webpage on the Ok click. Sooo i've got another script function to open another page and what i want to do is add that to the Ok button.

    however the following code gives me an error of "missing } after property list"

            <Buttons>
                <ext:Button runat="server" ID="GetReport" Text="Ok"  >
                <Listeners> <Click Handler="OpenViewReport();" /></Listeners></ext:Button>
            </Buttons>
  2. #2

    RE: [CLOSED] "missing } after property list" error

    This one might be a tough one for us to test.*

    Are you positive the missing "}" is not being trigger somewhere within the OpenViewReport() function/logic?


    Do you get the error if you replace the Handler with the following?


    Hander="alert('testing...');"

    Hope this helps.


    Geoffrey McGill
    Founder
  3. #3

    RE: [CLOSED] "missing } after property list" error

    hi geoffrey,

    yep, appreciate the difficulty in reviewing/testing.

    Same error when i use the alert as below...

            <Buttons>
                <ext:Button runat="server" ID="GetReport" Text="Ok"  >
                <Listeners> <Click Handler="alert('testing...');" /></Listeners></ext:Button>
            </Buttons>
  4. #4

    RE: [CLOSED] "missing } after property list" error

    Any chance you could upgrade to the latest version? or the code in SVN would be best.

    Could you view the html source (View > Source) rendered to the browser and copy/paste the <script> block that contains all the configuration code. The block of code would contain, or maybe start with, "Ext.onReady".


    As well, if you create a simple page and add the sample <ext:Button> with Listener, does the JavaScript error still occur?


    Geoffrey McGill
    Founder
  5. #5

    RE: [CLOSED] "missing } after property list" error



    i can't upgrade as i need to get this working under runtime 2.0 and version 0.4.6 is the last version that is 2.0 compatable.

    i've created the a simple example that does give the error

    <%@ Page Language="C#" Debug="true" %>
    
    
    <%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
    
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
          
        }
    </script>
    
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>Window with BorderLayout</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <ext:ScriptManager ID="ScriptManager1" runat="server" />
    
    
            <ext:ViewPort ID="ViewPort1" runat="server">
                <Content>
                    <ext:BorderLayout runat="server">
    
    
                        <Center>
                            <ext:Panel ID="Panel1" runat="server" Title="Center">
                                <Content>
    
    
            <ext:Window runat="server" ID="WindowParams" Modal="true" Width="550px" height="450px" >
                <content>
                    some content
                </content>
                <Buttons>
                    <ext:Button runat="server" ID="GetReport" Text="Ok"  >
                    <Listeners> <Click Handler="alert('testing...');" /></Listeners>
                    </ext:Button>
                </Buttons>
            </ext:Window>    
    
    
                                </Content>
                            </ext:Panel>
                        </Center>
                    </ext:BorderLayout>
                </Content>
            </ext:ViewPort>
    
    
        </form>
    </body>
    </html>
  6. #6

    RE: [CLOSED] "missing } after property list" error

    Thanks for the sample. I'll test this out with v0.4.6 and see if I can reproduce, locate and fix the error.*

    Geoffrey McGill
    Founder
  7. #7

    RE: [CLOSED] "missing } after property list" error

    also, here is the script from the page aboce

    
    ATA[
    19 Ext.onReady(function(){Ext.QuickTips.init();this.GetReport=new Ext.Button({listeners:{click:alert('testing...');},text:"Ok",id:"GetReport"});this.WindowParams=new Ext.Window({renderTo:"form1",height:450,width:550,modal:true,contentEl:"WindowParams_Content",buttons:[GetReport],title:"WindowParams",id:"WindowParams"});this.WindowParams.alignTo(Ext.getBody(), "c-c");this.WindowParams.show();this.Panel1=new Ext.Panel({contentEl:"Panel1_Content",title:"Center",id:"Panel1",region:"center"});this.ViewPort1=new Ext.FormViewport({contentEl:"ViewPort1Content",layout:"border",items:Panel1,id:"ViewPort1"});});Ext.BLANK_IMAGE_URL="/GemsSite/extjs/resources/images/default/s-gif/coolite.axd";
    20 //]]>
  8. #8

    RE: [CLOSED] "missing } after property list" error

    Hi Steve,

    It looks like the .Handler property did not automatically wrap it's value with a function(){} template in v0.4.6.


    You should be able to fix the error by changing your code to the following.


    Handler="function(){OpenViewReport();}"

    Hope this helps solve the problem.


    Geoffrey McGill
    Founder
  9. #9

    RE: [CLOSED] "missing } after property list" error

    good man geoffrey, threw me for 10mins but i needed to drop the final ; in your solution to get it to work, tested against the "alert" example just fine.

    thanks.
  10. #10

    RE: [CLOSED] "missing } after property list" error

    oops. Sorry about that.

    For future reference, here's the correct code...


    Handler="function(){OpenViewReport();}"



    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] window AutoLoadIFrame property missing
    By digitek in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 01, 2012, 12:05 PM
  2. [CLOSED] missing } after property list with JsonReader
    By krzak in forum 1.x Legacy Premium Help
    Replies: 26
    Last Post: May 19, 2011, 3:40 PM
  3. [CLOSED] something is missing. Grid not loading data from List<>
    By alexp in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 14, 2009, 11:57 AM
  4. BADRESPONSE: missing } after property list
    By designworxz in forum 1.x Help
    Replies: 7
    Last Post: Feb 17, 2009, 8:47 PM
  5. CardLayout missing property!
    By EzaBlade in forum 1.x Help
    Replies: 1
    Last Post: Feb 11, 2009, 1:01 PM

Posting Permissions