3.2.0

putting the aw.ui.input into aw.ui.group

Hi,

i'm trying to put couple of AW.UI.Input elements into a AW.UI.Group with followed code; but i guess there is something wrong that i do...

actually i moved the objects into a groupBox, but i cant focus into the object typed "AW.UI.Input"

please tell me what is the wrong ?



<html>
    <head>
        <script src="shared/aw/lib/aw.js"></script>
        <link href="shared/aw/styles/xp/aw.css" rel="stylesheet"></link>
        <style>
            #SearchFrame {width:100%}
        </style>
    </head>

    <body scroll="no">
        <table width=100% height=100% >
            <tr><td>
                <span id="SearchFrame">
                    <span id="SearchFrameTable">
                    <Table cellspacing=5>
                        <Tr><Td>Dc Code          <Td><span id="Txt_Cod"></Span>
                         <Td>Contract Type    <Td><span id="Txt_Typ"></Span>
                         <Td>Vendor           <Td><span id="Txt_Vnd"></Span>
                        <Tr><Td>Currency         <Td><span id="Txt_Cry"></Span>
                         <Td>Legal Check No   <Td><span id="Txt_Lno"></Span>
                         <Td>Status           <Td><span id="Txt_Sta"></Span>
                        <Tr><Td>Possiblle Agent  <Td><span id="Txt_Agt"></Span>
                    </Table>
                    </Span>
                </Span><br>
        </table>

        <Script>
            function createElement(Type, Name, Text, Image, ToolTip){
                var Obj;
                switch (Type){
                    case 'BTN':    Obj = new AW.UI.Button;     break;
                    case 'LBL':    Obj = new AW.UI.Label;      break;
                    case 'CHK':    Obj = new AW.UI.CheckBox;   break;
                    case 'TXT':    Obj = new AW.UI.Input;      break;
                    case 'PWD':    Obj = new AW.UI.Password;   break;
                    default:    return false;
                }
                with(Obj){
                    setId(Name);
                    setControlText(Text);
                    setControlImage(Image);
                    if ((ToolTip!='') && (ToolTip!=undefined)) {setControlTooltip(ToolTip);}
                    refresh();
                }
                return Obj;
            }

            var Txt_Cod = createElement('TXT', 'Txt_Cod','');
            var Txt_Typ = createElement('TXT', 'Txt_Typ','');
            var Txt_Vnd = createElement('TXT', 'Txt_Vnd','');
            var Txt_Cry = createElement('TXT', 'Txt_Cry','');
            var Txt_Lno = createElement('TXT', 'Txt_Lno','');
            var Txt_Sta = createElement('TXT', 'Txt_Sta','');
            var Txt_Agt = createElement('TXT', 'Txt_Agt','');

            var innerHTML = document.getElementById("SearchFrameTable").innerHTML;
            var group1 = new AW.UI.Group;
                group1.setId("SearchFrame");
                group1.setControlText("Search Criteries");
                group1.element().innerHTML += innerHTML;
        </Script>
    </body>
</html>
Serkan Eksi
June 13,
the same code works in firefox but does not in IE7 !!!
Serkan Eksi
June 14,

This topic is archived.

See also:


Back to support forum