chenbp1982 / ijab

Automatically exported from code.google.com/p/ijab
0 stars 0 forks source link

Access iJab API #33

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using ijab-v1.0-beta3-2.zip can connect to ejabberd server and communicate 
fine - thanks
2. seek to access API
3. alert(window.iJab.getStatusText());

What is the expected output? What do you see instead?

Expect to receive the login user's status text.
error: window.iJab is not defined
error: document.iJab is not defined

Unable to access the API despite what is said here: 
http://opensource.ijab.im/node/90

What version of the product are you using? On what operating system?

files from ijab-v1.0-beta3-2.zip 
Linux

Please provide any additional information below.

The core javascript code used in this application has been obfuscated by using 
letters for function names, etc making it almost impossible to follow what you 
are seeking to achieve.  Therefore, it is almost impossible to see what needs 
to be done.

Unfortunately, this may cause us to move on to a competing product because we 
need to be able to exploit the xmpp connection within other elements of our 
system.

Any help you can give here as to how to access the API would be much 
appreciated.

Nick

Original issue reported on code.google.com by nptrai...@gmail.com on 12 Jul 2011 at 9:47