RE: Request Script: Facebook Chat Plugin
The problem with that library is that the library needs to be ran in a browser where the "window" and "document" objects are available, which is not the case in a Plus! Live script.
If you look through the code, you'll see that the script manipulates the HTML DOM in order to load the other necessary scripts. This is done by creating a new <script> tag in the page's <head> section. The reason why this won't work in a Plus! script is that JScript runs completely on its own (it is only extended by Plus! with objects such as MsgPlus and Messenger) whereas JavaScript runs in a browser (it comes with the capability to manipulate the loaded web page). A very simple example: in order for the user to log onto Facebook, a pop-up window has to be opened with window.open() and this functionality does not exist natively in the Plus! scripting environment.
|