graceup / openfire-websockets

Automatically exported from code.google.com/p/openfire-websockets
0 stars 1 forks source link

Errors in JS #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
simply copy the following in a blank html page:

<html lang="en">
<head>
<script src="javascript/thirdparty.js" type="text/javascript"></script>
<script src="javascript/yui.js" type="text/javascript"></script>
<script src="javascript/spank.js" type="text/javascript"></script>
<script src="javascript/sparkweb.js" type="text/javascript"></script>
<script src="javascript/xmpp-ws.js" type="text/javascript"></script>
</head>
<body>
</body>
</html>

sorry about the lack of indentation ... 

What is the expected output? What do you see instead?
I shouldn't be receiving any errors instead I get this from the console:

Uncaught TypeError: Cannot call method 'addListener' of null sparkweb.js:1
com.jive.sparkweb.control.init sparkweb.js:1
wrappedFn yui.js:845
wrappedFn yui.js:25

What version of the product are you using? On what operating system?
Latest version downloaded from trunk, on windows 7 Ultimate 64bit

Please provide any additional information below.
all I wanted to do i create a xmpp websocket client for an app I am writing.  I 
know enough about the XMPP protocol, but having to go through JS files without 
any documentation I think It's crazy.  I have resorted looking at the sparkweb 
app to understand how to make a simple xmpp javascript client, however the 
sheer size of js code makes it virtually impossible.  Is IgniteRealtime 
responsible for the missing docs? will it be produced at some point ? The 
protocol itself is very well documented ... Many thanks

Original issue reported on code.google.com by thewildp...@gmail.com on 18 Aug 2013 at 6:49