If you do this in FireFox 4 you have a decent chance of crashing the browser (the bug has been logged, but not yet fixed). It's not a good idea to set the type of the object tag before injecting it into the DOM; you'll get different behavior on each browser. Wait until you've put the object into the dom and then inject it.
If you do this in FireFox 4 you have a decent chance of crashing the browser (the bug has been logged, but not yet fixed). It's not a good idea to set the type of the object tag before injecting it into the DOM; you'll get different behavior on each browser. Wait until you've put the object into the dom and then inject it.
Another possible problem is that it sometimes takes the browser some time after injecting it into the DOM before the plugin is accessible, so if you use a setTimeout to wait for a half second or so it might start working at that point.
There already is some a timeout. I think it's a security issue: extension's JS code cannot use NPAPI plugin injected into the page's html. But I'm not sure and I didn't tested it yet.
– Kentzo Apr 17 at 3:53.
I solved the problem by extending script which make a call of the SomeFunc: if (window.content.document. GetElementById("rondyoHookMessageElement") == null) { var element = window.content.document. CreateElement("object"); element.
Type = "application/x-hook-msg"; element. Id = "rondyoHookMessageElement"; element. Width = 0; element.
Height = 0; window.content.document.body. AppendChild(element); var script = doc. CreateElement("script"); script.
Type = "text/javascript"; script. InnerHTML = 'function f(doc, messageId, data) { document. GetElementById("rondyoHookMessageElement").
SomeFunc(doc, messageId, data); };'; doc.body. AppendChild(script); } When I need to call this function from the extension I do: window.content.document.defaultView.wrappedJSObject. F(null, mes, false).
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.