Esempio n. 1
0
        internal static IHTMLInput InternalConstructor(HTMLInputTypeEnum type, string name, string value)
        {
            IHTMLInput n = null;

            var _radio = HTMLInputTypeEnum.radio;

            if (type == _radio)
            {
                // TODO: escape name and value

                n = (IHTMLInput) new IFunction("e", "/*@cc_on return this.createElement(e); @*/ return null;").apply(Native.Document,
                                                                                                                     "<input type='radio' name='" + name + "' value='" + value + "' />"
                                                                                                                     );
            }

            if (n == null)
            {
                n       = new IHTMLInput();
                n.type  = type;
                n.name  = name;
                n.value = value;
            }

            return(n);
        }
Esempio n. 2
0
        internal static IHTMLInput InternalConstructor(HTMLInputTypeEnum type, string value)
        {
            IHTMLInput n = new IHTMLInput(type);

            n.value = value;

            return(n);
        }
Esempio n. 3
0
        internal static IHTMLInput InternalConstructor(HTMLInputTypeEnum type)
        {
            IHTMLInput n = null;

            var _radio = HTMLInputTypeEnum.radio;

            if (type == _radio)
            {
                n = (IHTMLInput) new IFunction("e", "/*@cc_on return this.createElement(e); @*/ return null;").apply(Native.Document, "<input type='radio' name='' value='' />");
            }

            if (n == null)
            {
                n      = new IHTMLInput();
                n.type = type;
            }

            return(n);
        }
Esempio n. 4
0
 public IHTMLInput(HTMLInputTypeEnum type, string name, string value)
 {
 }
Esempio n. 5
0
 public IHTMLInput(HTMLInputTypeEnum type)
 {
 }