Revision history [back]

click to hide/show revision 1
initial version

asked 2014-04-13 16:15:49 +0800

barrier gravatar image barrier

why can't run under IE browser

<zk>

<script type="text/javascript" defer="true"> </script>

<window &gt;<="" p="">

<groupbox id="pop_group" width="200px">
    <listbox>
        <listitem>
            <listcell id="list_cell">
                <image src="themes/default/imgs/close.png">
                <attribute name="onClick">
                    list_cell.setPopup("mpp,end_after");
                    //mpp.setParent(list_cell);
                    //mpp.open(list_cell,"end_after");
                </attribute>
                </image>
            </listcell>
        </listitem>
    </listbox>
    <menupopup id="mpp" >
        <menuitem label="ff" checkmark="true"></menuitem>
    </menupopup>
</groupbox>

</window> </zk>

why can't run under IE browser

<zk>

> <?page title="test" contentType="text/html;charset=UTF-8"?>
<zk>
<script type="text/javascript" defer="true">
 <![CDATA[
        var ppg = zk.Widget.$('$pop_group');
        ppg.clear();
        var listbox = new zul.sel.Listbox();
        var listitem = new zul.sel.Listitem();
        listbox.appendChild(listitem);

        var listcell = new zul.sel.Listcell();
        var img = new zul.wgt.Image();
        img.setWidth("20px");
        img.setHeight("20px");
        img.setSrc("themes/default/imgs/close.png");
        img.setListeners({
            onClick:function(){
            //alert(0);
            var mpp = new zul.menu.Menupopup();
            var menuitem = new zul.menu.Menuitem();
            menuitem.setLabel("ffffffff");
            mpp.appendChild(menuitem);

            listcell.appendChild(mpp);
            //listcell.setPopup(mpp);
            mpp.open(listcell,"","end_after");
        }
        });
        listcell.appendChild(img);
        listitem.appendChild(listcell);
        ppg.appendChild(listbox);

]]>

</script>
 

<window &gt;<="" p="">

>

    <groupbox id="pop_group" width="200px">
     <listbox>
         <listitem>
             <listcell id="list_cell">
                 <image src="themes/default/imgs/close.png">
                 <attribute name="onClick">
                     list_cell.setPopup("mpp,end_after");
                     //mpp.setParent(list_cell);
                     //mpp.open(list_cell,"end_after");
                 </attribute>
                 </image>
             </listcell>
         </listitem>
     </listbox>
     <menupopup id="mpp" >
         <menuitem label="ff" checkmark="true"></menuitem>
     </menupopup>
 </groupbox>
</window>
</zk>

</window> </zk>

why the menupopup can't run open under IE browser

> <?page title="test" contentType="text/html;charset=UTF-8"?>
<zk>
<script type="text/javascript" defer="true">
<![CDATA[
        var ppg = zk.Widget.$('$pop_group');
        ppg.clear();
        var listbox = new zul.sel.Listbox();
        var listitem = new zul.sel.Listitem();
        listbox.appendChild(listitem);

        var listcell = new zul.sel.Listcell();
        var img = new zul.wgt.Image();
        img.setWidth("20px");
        img.setHeight("20px");
        img.setSrc("themes/default/imgs/close.png");
        img.setListeners({
            onClick:function(){
            //alert(0);
            var mpp = new zul.menu.Menupopup();
            var menuitem = new zul.menu.Menuitem();
            menuitem.setLabel("ffffffff");
            mpp.appendChild(menuitem);

            listcell.appendChild(mpp);
            //listcell.setPopup(mpp);
            mpp.open(listcell,"","end_after");
        }
        });
        listcell.appendChild(img);
        listitem.appendChild(listcell);
        ppg.appendChild(listbox);

]]>

</script>
<window >

    <groupbox id="pop_group" width="200px">
        <listbox>
            <listitem>
                <listcell id="list_cell">
                    <image src="themes/default/imgs/close.png">
                    <attribute name="onClick">
                        list_cell.setPopup("mpp,end_after");
                        //mpp.setParent(list_cell);
                        //mpp.open(list_cell,"end_after");
                    </attribute>
                    </image>
                </listcell>
            </listitem>
        </listbox>
        <menupopup id="mpp" >
            <menuitem label="ff" checkmark="true"></menuitem>
        </menupopup>
    </groupbox>
</window>
</zk>
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More