C# 클래스 Skybound.Gecko.SimpleObjectForScripting

파일 보기 프로젝트 열기: tophatmonocle/DirtyGecko 1 사용 예제들

공개 메소드들

메소드 설명
AddEventListener ( string Type, EventHandler Handler ) : void

Add a C# listner to the xpcom listner. This is done by wrappinig the xpcom event.

RemoveEventListener ( string Type, EventHandler Handler ) : void

Remove C# listner from the xpcom listner.

RunRawJavaScriptOnClient ( string strSourceJavaScript, bool wrapTryCatch ) : void

This will run arbitraty javascript on the client. It creates a script block in the DOM tree and the javascript gets executed. The script block is not permanent. It will be removed on the next call to this method, and replaced by new arbitarty code.

비공개 메소드들

메소드 설명
ScriptBuilder ( string strSourceJavaScript ) : void

Appends a script block with the id of CLIENT_SIDE_JAVASCRIPT_ID, adds it to the dom tree

SimpleObjectForScripting ( nsIDOMWindow &DomWindow ) : System

메소드 상세

AddEventListener() 공개 메소드

Add a C# listner to the xpcom listner. This is done by wrappinig the xpcom event.
public AddEventListener ( string Type, EventHandler Handler ) : void
Type string The name of the eventtype, for e.g 'MyCustomEvent'. This must be the same as the EventName in the JavaScript.
Handler EventHandler The handler for this event
리턴 void

RemoveEventListener() 공개 메소드

Remove C# listner from the xpcom listner.
public RemoveEventListener ( string Type, EventHandler Handler ) : void
Type string The name of the eventtype, for e.g 'MyCustomEvent'. This must be the same as the EventName in the JavaScript.
Handler EventHandler The handler for this event
리턴 void

RunRawJavaScriptOnClient() 공개 메소드

This will run arbitraty javascript on the client. It creates a script block in the DOM tree and the javascript gets executed. The script block is not permanent. It will be removed on the next call to this method, and replaced by new arbitarty code.
public RunRawJavaScriptOnClient ( string strSourceJavaScript, bool wrapTryCatch ) : void
strSourceJavaScript string The JavaScript Code
wrapTryCatch bool If true it will att a javascript try/catch block for the incomming code.
리턴 void