Hello,
I am developing an IE vertical explorer bar. I have created a hidden
WebBrowser control on my explorer bar that opens a channel to a
backend APE server. Using this channel the server pushes JSON data
into the browser. I have the code already developed for Firefox, but I
don't know how to achieve the same for IE.
Here is the code for Mozilla:
let hiddenDoc = Cc["@mozilla.org/appshell/appShellService;1"].
getService(Ci.nsIAppShellService).hiddenDOMWindow.document;
this._listener =
hiddenDoc.createElementNS("http://www.mozilla.org/keymaster/
gatekeeper/there.is.only.xul", "browser");
this._listener.setAttribute("type", "content");
hiddenDoc.documentElement.appendChild(this._listener);
let t = this;
hiddenDoc.addEventListener("MessageReceived", function(aEvent)
{ t.onMessageReceived(aEvent); }, false, true);
And I am trying to do something like this for IE:
public void BrowserHidden_DocumentCompleted(Object sender,
WebBrowserDocumentCompletedEventArgs e)
{
BrowserHidden.Document.AttachEventHandler("MessageReceived", new
EventHandler(onMessageReceived));
}
public void onMessageReceived(Object sender, EventArgs e)
{
}
But I don't receive any events in my event handler and even if I
receive the event I don't know how to extract the JSON data from the
document or EventArgs?
Thanks
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/