Method | Description | |
---|---|---|
AddEventListener ( string Type, EventHandler |
Add a C# listner to the xpcom listner. This is done by wrappinig the xpcom event.
|
|
RemoveEventListener ( string Type, EventHandler |
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.
|
Method | Description | |
---|---|---|
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 |
public AddEventListener ( string Type, EventHandler |
||
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 |
return | void |
public RemoveEventListener ( string Type, EventHandler |
||
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 |
return | void |
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. |
return | void |