These event args will contain the javascript event that was raised along with its JSONString.
Inheritance: System.EventArgs
Exemplo n.º 1
0
        void nsIDOMEventListener.HandleEvent(nsIDOMEvent e)
        {
            nsAString jsEventName = new nsAString();
            nsAString attribute = new nsAString(JS_ELEMENT_NAME);
            nsAString value = new nsAString();

            nsIDOMElement target = e.GetTargetAttribute() as nsIDOMElement;

            target.GetAttribute(attribute, value);
            e.GetTypeAttribute(jsEventName);

            DOMJSONStringEventArgs eArgs = new DOMJSONStringEventArgs(jsEventName, value);
            if (this.handler != null)
                this.handler(target, eArgs);

            jsEventName.Dispose();
            attribute.Dispose();
            value.Dispose();
        }
Exemplo n.º 2
0
        void nsIDOMEventListener.HandleEvent(nsIDOMEvent e)
        {
            nsAString jsEventName = new nsAString();
            nsAString attribute   = new nsAString(JS_ELEMENT_NAME);
            nsAString value       = new nsAString();

            nsIDOMElement target = e.GetTargetAttribute() as nsIDOMElement;

            target.GetAttribute(attribute, value);
            e.GetTypeAttribute(jsEventName);


            DOMJSONStringEventArgs eArgs = new DOMJSONStringEventArgs(jsEventName, value);

            if (this.handler != null)
            {
                this.handler(target, eArgs);
            }

            jsEventName.Dispose();
            attribute.Dispose();
            value.Dispose();
        }