Commit b9a98fce8b5d1c19056553670dc27589ec99cac4

Authored by Victor Costa
Committed by Rodrigo Souto
1 parent 64f8e3a7

Upgrade strophe.js to 1.1.3

Showing 225 changed files with 23621 additions and 9914 deletions   Show diff stats

Too many changes.

To preserve performance only 100 of 225 files displayed.

app/views/shared/logged_in/xmpp_chat.html.erb
1   - <%= javascript_include_tag 'strophejs-1.0.1/strophe', 'jquery.emoticon', '../designs/icons/pidgin/emoticons.js', 'ba-linkify', 'jquery.ba-hashchange', 'jquery.sound', 'chat', 'perfect-scrollbar.min.js', 'perfect-scrollbar.with-mousewheel.min.js', :cache => 'cache/chat' %>
  1 + <%= javascript_include_tag 'strophejs-1.1.3/strophe.min', 'jquery.emoticon', '../designs/icons/pidgin/emoticons.js', 'ba-linkify', 'jquery.ba-hashchange', 'jquery.sound', 'chat', 'perfect-scrollbar.min.js', 'perfect-scrollbar.with-mousewheel.min.js', :cache => 'cache/chat' %>
2 2 <%= stylesheet_link_tag 'perfect-scrollbar.min.css' %>
3 3  
4 4 <% extend ChatHelper %>
... ...
public/javascripts/strophejs-1.0.1/LICENSE.txt
... ... @@ -1,19 +0,0 @@
1   -Copyright (c) 2006-2009 Collecta, Inc.
2   -
3   -Permission is hereby granted, free of charge, to any person obtaining a copy
4   -of this software and associated documentation files (the "Software"), to deal
5   -in the Software without restriction, including without limitation the rights
6   -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7   -copies of the Software, and to permit persons to whom the Software is
8   -furnished to do so, subject to the following conditions:
9   -
10   -The above copyright notice and this permission notice shall be included in
11   -all copies or substantial portions of the Software.
12   -
13   -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14   -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15   -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16   -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17   -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18   -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19   -THE SOFTWARE.
public/javascripts/strophejs-1.0.1/README.txt
... ... @@ -1,15 +0,0 @@
1   -Strophe.js is a JavaScript library for speaking XMPP via BOSH (XEP 124
2   -and 206). It is licensed under the MIT license, except for the files
3   -base64.js and md5.js, which are licensed as public domain and
4   -BSD (see these files for details).
5   -
6   -It has been tested on Firefox 1.5, 2.x, and 3.x, IE 6, 7, and 8, Safari, Mobile
7   -Safari, Chrome, and it should also work on the mobile Opera browser as
8   -well as the desktop Opera browser.
9   -
10   -The homepage for Strophe is http://code.stanziq.com/strophe.
11   -
12   -The book Professional XMPP Programming with JavaScript and jQuery is
13   -also available, which covers Strophe in detail in the context of web
14   -applications. You can find more information at
15   -http://professionalxmpp.com.
public/javascripts/strophejs-1.0.1/contrib/discojs/README.txt
... ... @@ -1,42 +0,0 @@
1   -Disco Dancing with XMPP
2   -
3   - There are many things one can do via XMPP. The list is
4   - endlist. But one thing that some forget about is discovering
5   - services a XMPP entity or server provides. In most cases a human or
6   - user does not care about this information and should not care. But
7   - you may have a website or web application that needs this
8   - information in order to decide what options to show to your
9   - users. You can do this very easily with JQuery, Strophe, and
10   - Punjab.
11   -
12   - We start with Punjab or a BOSH connection manager. This is
13   - needed so we can connect to a XMPP server. First, lets download
14   - punjab.
15   -
16   - svn co https://code.stanziq.com/svn/punjab/trunk punjab
17   -
18   - After we have punjab go into the directory and install punjab.
19   -
20   - cd punjab
21   - python setup.py install
22   -
23   - Then create a .tac file to configure Punjab.
24   -
25   - See punjab.tac
26   -
27   - Next, we will need Strophe. Lets download thelatest version from
28   - svn too.
29   -
30   - cd /directory/where/you/configured/punjab/html
31   -
32   - svn co https://code.stanziq.com/svn/strophe/trunk/strophejs
33   -
34   - In your html directory you will then begin to create your disco browser.
35   -
36   - Version 1 we take the basic example and modify it to do disco.
37   -
38   - Version 2 we add anonymous login
39   -
40   - Version 3 we make it pretty
41   -
42   - Version 4 we add handlers for different services
public/javascripts/strophejs-1.0.1/contrib/discojs/css/disco.css
... ... @@ -1,16 +0,0 @@
1   -#login .leftinput
2   -{
3   - margin-bottom: .5em;
4   -}
5   -
6   -#login input
7   -{
8   - margin-bottom: 10px;
9   -}
10   -
11   -#log {
12   - width: 100%;
13   - height: 200px;
14   - overflow: auto;
15   -
16   - }
public/javascripts/strophejs-1.0.1/contrib/discojs/index.html
... ... @@ -1,47 +0,0 @@
1   -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2   -<html xmlns="http://www.w3.org/1999/xhtml">
3   -<head>
4   - <title>XMPP Disco Dancing</title>
5   - <script language='javascript'
6   - type='text/javascript'
7   - src='http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js'></script>
8   - <script language='javascript'
9   - type='text/javascript'
10   - src='strophejs/b64.js'></script>
11   - <script language='javascript'
12   - type='text/javascript'
13   - src='strophejs/md5.js'></script>
14   - <script language='javascript'
15   - type='text/javascript'
16   - src='strophejs/sha1.js'></script>
17   - <script language='javascript'
18   - type='text/javascript'
19   - src='strophejs/strophe.js'></script>
20   -<script language='javascript'
21   - type='text/javascript'
22   - src='scripts/basic.js'></script>
23   - <script language='javascript'
24   - type='text/javascript'
25   - src='scripts/disco.js'></script>
26   - <link rel="stylesheet" href="css/disco.css" type="text/css" />
27   -</head>
28   -<body>
29   - <div id='login' style='text-align: center'>
30   - <form id='cred' name='cred'>
31   - <label for='jid'>JID:</label>
32   - <input type='text' class='leftinput' id='jid' />
33   - <label for='pass'>Password:</label>
34   - <input type='password' class='leftinput' id='pass' />
35   - <input type='submit' id='connect' value='connect' />
36   - </form>
37   - <br/>
38   - </div>
39   - <hr />
40   - <div id='disco'>
41   -</div>
42   - <hr />
43   - <div id='log_container'>
44   -<a href='#'>Status Log :</a>
45   -<div id='log'></div></div>
46   -</body>
47   -</html>
public/javascripts/strophejs-1.0.1/contrib/discojs/punjab.tac
... ... @@ -1,18 +0,0 @@
1   -# punjab tac file
2   -from twisted.web import server, resource, static
3   -from twisted.application import service, internet
4   -
5   -from punjab.httpb import Httpb, HttpbService
6   -
7   -root = static.File("./") # This needs to be the directory
8   - # where you will have your html
9   - # and javascript.
10   -
11   -b = resource.IResource(HttpbService(1)) # turn on debug with 1
12   -root.putChild('bosh', b)
13   -
14   -
15   -site = server.Site(root)
16   -
17   -application = service.Application("punjab")
18   -internet.TCPServer(5280, site).setServiceParent(application)
public/javascripts/strophejs-1.0.1/contrib/discojs/scripts/basic.js
... ... @@ -1,102 +0,0 @@
1   -var BOSH_SERVICE = 'http://localhost:5280/bosh';
2   -
3   -var connection = null;
4   -var browser = null;
5   -var show_log = true;
6   -
7   -function log(msg)
8   -{
9   - $('#log').append('<div></div>').append(document.createTextNode(msg));
10   -}
11   -
12   -
13   -function rawInput(data)
14   -{
15   - log('RECV: ' + data);
16   -}
17   -
18   -function rawOutput(data)
19   -{
20   - log('SENT: ' + data);
21   -}
22   -
23   -function onConnect(status)
24   -{
25   - if (status == Strophe.Status.CONNECTING) {
26   - log('Strophe is connecting.');
27   -
28   - } else if (status == Strophe.Status.CONNFAIL) {
29   - log('Strophe failed to connect.');
30   - showConnect();
31   - } else if (status == Strophe.Status.DISCONNECTING) {
32   - log('Strophe is disconnecting.');
33   - } else if (status == Strophe.Status.DISCONNECTED) {
34   - log('Strophe is disconnected.');
35   - showConnect();
36   -
37   - } else if (status == Strophe.Status.CONNECTED) {
38   - log('Strophe is connected.');
39   - // Start up disco browser
40   - browser.showBrowser();
41   - }
42   -}
43   -
44   -function showConnect()
45   -{
46   - var jid = $('#jid');
47   - var pass = $('#pass');
48   - var button = $('#connect').get(0);
49   -
50   - browser.closeBrowser();
51   -
52   - $('label').show();
53   - jid.show();
54   - pass.show();
55   - $('#anon').show();
56   - button.value = 'connect';
57   - return false;
58   -}
59   -
60   -function showDisconnect()
61   -{
62   - var jid = $('#jid');
63   - var pass = $('#pass');
64   - var button = $('#connect').get(0);
65   -
66   - button.value = 'disconnect';
67   - pass.hide();
68   - jid.hide();
69   - $('label').hide();
70   - $('#anon').hide();
71   - return false;
72   -}
73   -
74   -$(document).ready(function () {
75   - connection = new Strophe.Connection(BOSH_SERVICE);
76   - connection.rawInput = rawInput;
77   - connection.rawOutput = rawOutput;
78   -
79   - browser = new Disco();
80   -
81   - $("#log_container").bind('click', function () {
82   - $("#log").toggle();
83   - }
84   - );
85   -
86   - $('#cred').bind('submit', function () {
87   - var button = $('#connect').get(0);
88   - var jid = $('#jid');
89   - var pass = $('#pass');
90   -
91   - if (button.value == 'connect') {
92   - showDisconnect();
93   - connection.connect(jid.get(0).value,
94   - pass.get(0).value,
95   - onConnect);
96   - } else {
97   - connection.disconnect();
98   - showConnect();
99   - }
100   - return false;
101   - });
102   -});
103 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/contrib/discojs/scripts/disco.js
... ... @@ -1,60 +0,0 @@
1   -
2   -var NS_DISCO_INFO = 'http://jabber.org/protocol/disco#info';
3   -var NS_DISCO_ITEM = 'http://jabber.org/protocol/disco#items';
4   -
5   -
6   -// Disco stuff
7   -Disco = function () {
8   - // Class that does nothing
9   -};
10   -
11   -Disco.prototype = {
12   - showBrowser: function() {
13   - // Browser Display
14   - var disco = $('#disco');
15   - var jid = $('#jid');
16   - var server = connection.jid.split('@')[1];
17   -
18   - // display input box
19   - disco.append("<div id='server'><form id='browse' name='browse'>Server : <input type='text' name='server' id='server' value='"+server+"' /><input type='submit' value='browse'/></form></div>");
20   -
21   - // add handler for search form
22   - $("#browse").bind('submit', function () {
23   - this.startBrowse($("#server").get(0).value);
24   - return false;
25   - });
26   -
27   - this.startBrowse(server);
28   - },
29   -
30   - closeBrowser: function() {
31   - var disco = $('#disco');
32   -
33   - disco.empty();
34   - },
35   -
36   - startBrowse: function(server) {
37   - // build iq request
38   - var id = 'startBrowse';
39   -
40   - var discoiq = $iq({'from':connection.jid+"/"+connection.resource,
41   - 'to':server,
42   - 'id':id,
43   - 'type':'get'}
44   - )
45   - .c('query', {'xmlns': NS_DISCO_INFO});
46   -
47   - connection.addHandler(this._cbBrowse, null, 'iq', 'result', id);
48   - connection.send(discoiq.tree());
49   -
50   - },
51   -
52   - _cbBrowse: function(e) {
53   - var elem = $(e); // make this Element a JQuery Element
54   - alert(e);
55   -
56   - return false; // return false to remove the handler
57   - },
58   -
59   -};
60   -
public/javascripts/strophejs-1.0.1/doc/files/core-js.html
... ... @@ -1,189 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><title>strophe.js</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script><script language=JavaScript src="../javascript/searchdata.js"></script></head><body class="ContentPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Content><div class="CFile"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="strophe.js"></a>strophe.js</h1><div class=CBody><p>A JavaScript library for XMPP BOSH.</p><p>This is the JavaScript version of the Strophe library.&nbsp; Since JavaScript has no facilities for persistent TCP connections, this library uses Bidirectional-streams Over Synchronous HTTP (BOSH) to emulate a persistent, stateful, two-way connection to an XMPP server.&nbsp; More information on BOSH can be found in XEP 124.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#strophe.js" >strophe.js</a></td><td class=SDescription>A JavaScript library for XMPP BOSH.</td></tr><tr class="SGroup"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#$build" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">$build</a></td><td class=SDescription>Create a Strophe.Builder. </td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#$msg" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">$msg</a></td><td class=SDescription>Create a Strophe.Builder with a &lt;message/&gt; element as the root.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#$iq" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">$iq</a></td><td class=SDescription>Create a Strophe.Builder with an &lt;iq/&gt; element as the root.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#$pres" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">$pres</a></td><td class=SDescription>Create a Strophe.Builder with a &lt;presence/&gt; element as the root.</td></tr><tr class="SClass"><td class=SEntry><a href="#Strophe" >Strophe</a></td><td class=SDescription>An object container for all Strophe library functions.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Strophe.Constants" >Constants</a></td><td class=SDescription></td></tr><tr class="SConstant SIndent2 SMarked"><td class=SEntry><a href="#Strophe.VERSION" >VERSION</a></td><td class=SDescription>The version of the Strophe library. </td></tr><tr class="SConstant SIndent2"><td class=SEntry><a href="#Strophe.XMPP_Namespace_Constants" >XMPP Namespace Constants</a></td><td class=SDescription>Common namespace constants from the XMPP RFCs and XEPs.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Strophe.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.addNamespace" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">addNamespace</a></td><td class=SDescription>This function is used to extend the current namespaces in Strophe.NS. </td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Strophe.Constants" >Constants</a></td><td class=SDescription></td></tr><tr class="SConstant SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection_Status_Constants" >Connection Status Constants</a></td><td class=SDescription>Connection status constants for use by the connection handler callback.</td></tr><tr class="SConstant SIndent2"><td class=SEntry><a href="#Strophe.Log_Level_Constants" >Log Level Constants</a></td><td class=SDescription>Logging level indicators.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Strophe.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.forEachChild" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')">forEachChild</a></td><td class=SDescription>Map a function over some or all child elements of a given element.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.isTagEqual" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')">isTagEqual</a></td><td class=SDescription>Compare an element&rsquo;s tag name with a string.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.xmlElement" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')">xmlElement</a></td><td class=SDescription>Create an XML DOM element.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.xmlescape" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')">xmlescape</a></td><td class=SDescription>Excapes invalid xml characters.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.xmlTextNode" id=link10 onMouseOver="ShowTip(event, 'tt10', 'link10')" onMouseOut="HideTip('tt10')">xmlTextNode</a></td><td class=SDescription>Creates an XML DOM text node.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.getText" id=link11 onMouseOver="ShowTip(event, 'tt11', 'link11')" onMouseOut="HideTip('tt11')">getText</a></td><td class=SDescription>Get the concatenation of all text children of an element.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.copyElement" id=link12 onMouseOver="ShowTip(event, 'tt12', 'link12')" onMouseOut="HideTip('tt12')">copyElement</a></td><td class=SDescription>Copy an XML DOM element.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.escapeNode" id=link13 onMouseOver="ShowTip(event, 'tt13', 'link13')" onMouseOut="HideTip('tt13')">escapeNode</a></td><td class=SDescription>Escape the node part (also called local part) of a JID.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.unescapeNode" id=link14 onMouseOver="ShowTip(event, 'tt14', 'link14')" onMouseOut="HideTip('tt14')">unescapeNode</a></td><td class=SDescription>Unescape a node part (also called local part) of a JID.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.getNodeFromJid" id=link15 onMouseOver="ShowTip(event, 'tt15', 'link15')" onMouseOut="HideTip('tt15')">getNodeFromJid</a></td><td class=SDescription>Get the node portion of a JID String.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.getDomainFromJid" id=link16 onMouseOver="ShowTip(event, 'tt16', 'link16')" onMouseOut="HideTip('tt16')">getDomainFromJid</a></td><td class=SDescription>Get the domain portion of a JID String.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.getResourceFromJid" id=link17 onMouseOver="ShowTip(event, 'tt17', 'link17')" onMouseOut="HideTip('tt17')">getResourceFromJid</a></td><td class=SDescription>Get the resource portion of a JID String.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.getBareJidFromJid" id=link18 onMouseOver="ShowTip(event, 'tt18', 'link18')" onMouseOut="HideTip('tt18')">getBareJidFromJid</a></td><td class=SDescription>Get the bare JID from a JID String.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.log" id=link19 onMouseOver="ShowTip(event, 'tt19', 'link19')" onMouseOut="HideTip('tt19')">log</a></td><td class=SDescription>User overrideable logging function.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.debug" id=link20 onMouseOver="ShowTip(event, 'tt20', 'link20')" onMouseOut="HideTip('tt20')">debug</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.DEBUG level.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.info" id=link21 onMouseOver="ShowTip(event, 'tt21', 'link21')" onMouseOut="HideTip('tt21')">info</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.INFO level.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.warn" id=link22 onMouseOver="ShowTip(event, 'tt22', 'link22')" onMouseOut="HideTip('tt22')">warn</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.WARN level.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.error" id=link23 onMouseOver="ShowTip(event, 'tt23', 'link23')" onMouseOut="HideTip('tt23')">error</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.ERROR level.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.fatal" id=link24 onMouseOver="ShowTip(event, 'tt24', 'link24')" onMouseOut="HideTip('tt24')">fatal</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.FATAL level.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.serialize" id=link25 onMouseOver="ShowTip(event, 'tt25', 'link25')" onMouseOut="HideTip('tt25')">serialize</a></td><td class=SDescription>Render a DOM element and all descendants to a String.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.addConnectionPlugin" id=link26 onMouseOver="ShowTip(event, 'tt26', 'link26')" onMouseOut="HideTip('tt26')">addConnectionPlugin</a></td><td class=SDescription>Extends the Strophe.Connection object with the given plugin.</td></tr><tr class="SClass"><td class=SEntry><a href="#Strophe.Builder" >Strophe.<wbr>Builder</a></td><td class=SDescription>XML DOM builder.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Strophe.Builder.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Builder.Strophe.Builder" id=link27 onMouseOver="ShowTip(event, 'tt27', 'link27')" onMouseOut="HideTip('tt27')">Strophe.<wbr>Builder</a></td><td class=SDescription>Create a Strophe.Builder object.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Builder.tree" id=link28 onMouseOver="ShowTip(event, 'tt28', 'link28')" onMouseOut="HideTip('tt28')">tree</a></td><td class=SDescription>Return the DOM tree.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Builder.toString" id=link29 onMouseOver="ShowTip(event, 'tt29', 'link29')" onMouseOut="HideTip('tt29')">toString</a></td><td class=SDescription>Serialize the DOM tree to a String.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Builder.up" id=link30 onMouseOver="ShowTip(event, 'tt30', 'link30')" onMouseOut="HideTip('tt30')">up</a></td><td class=SDescription>Make the current parent element the new current element.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Builder.attrs" id=link31 onMouseOver="ShowTip(event, 'tt31', 'link31')" onMouseOut="HideTip('tt31')">attrs</a></td><td class=SDescription>Add or modify attributes of the current element.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Builder.c" id=link32 onMouseOver="ShowTip(event, 'tt32', 'link32')" onMouseOut="HideTip('tt32')">c</a></td><td class=SDescription>Add a child to the current element and make it the new current element.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Builder.cnode" id=link33 onMouseOver="ShowTip(event, 'tt33', 'link33')" onMouseOut="HideTip('tt33')">cnode</a></td><td class=SDescription>Add a child to the current element and make it the new current element.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Builder.t" id=link34 onMouseOver="ShowTip(event, 'tt34', 'link34')" onMouseOut="HideTip('tt34')">t</a></td><td class=SDescription>Add a child text element.</td></tr><tr class="SClass"><td class=SEntry><a href="#Strophe.Connection" >Strophe.<wbr>Connection</a></td><td class=SDescription>XMPP Connection manager.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Strophe.Connection.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.Strophe.Connection" id=link35 onMouseOver="ShowTip(event, 'tt35', 'link35')" onMouseOut="HideTip('tt35')">Strophe.<wbr>Connection</a></td><td class=SDescription>Create and initialize a Strophe.Connection object.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.reset" id=link36 onMouseOver="ShowTip(event, 'tt36', 'link36')" onMouseOut="HideTip('tt36')">reset</a></td><td class=SDescription>Reset the connection.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.pause" id=link37 onMouseOver="ShowTip(event, 'tt37', 'link37')" onMouseOut="HideTip('tt37')">pause</a></td><td class=SDescription>Pause the request manager.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.resume" id=link38 onMouseOver="ShowTip(event, 'tt38', 'link38')" onMouseOut="HideTip('tt38')">resume</a></td><td class=SDescription>Resume the request manager.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.getUniqueId" id=link39 onMouseOver="ShowTip(event, 'tt39', 'link39')" onMouseOut="HideTip('tt39')">getUniqueId</a></td><td class=SDescription>Generate a unique ID for use in &lt;iq/&gt; elements.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.connect" id=link40 onMouseOver="ShowTip(event, 'tt40', 'link40')" onMouseOut="HideTip('tt40')">connect</a></td><td class=SDescription>Starts the connection process.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.attach" id=link41 onMouseOver="ShowTip(event, 'tt41', 'link41')" onMouseOut="HideTip('tt41')">attach</a></td><td class=SDescription>Attach to an already created and authenticated BOSH session.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.xmlInput" id=link42 onMouseOver="ShowTip(event, 'tt42', 'link42')" onMouseOut="HideTip('tt42')">xmlInput</a></td><td class=SDescription>User overrideable function that receives XML data coming into the connection.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.xmlOutput" id=link43 onMouseOver="ShowTip(event, 'tt43', 'link43')" onMouseOut="HideTip('tt43')">xmlOutput</a></td><td class=SDescription>User overrideable function that receives XML data sent to the connection.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.rawInput" id=link44 onMouseOver="ShowTip(event, 'tt44', 'link44')" onMouseOut="HideTip('tt44')">rawInput</a></td><td class=SDescription>User overrideable function that receives raw data coming into the connection.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.rawOutput" id=link45 onMouseOver="ShowTip(event, 'tt45', 'link45')" onMouseOut="HideTip('tt45')">rawOutput</a></td><td class=SDescription>User overrideable function that receives raw data sent to the connection.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.send" id=link46 onMouseOver="ShowTip(event, 'tt46', 'link46')" onMouseOut="HideTip('tt46')">send</a></td><td class=SDescription>Send a stanza.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.flush" id=link47 onMouseOver="ShowTip(event, 'tt47', 'link47')" onMouseOut="HideTip('tt47')">flush</a></td><td class=SDescription>Immediately send any pending outgoing data.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.sendIQ" id=link48 onMouseOver="ShowTip(event, 'tt48', 'link48')" onMouseOut="HideTip('tt48')">sendIQ</a></td><td class=SDescription>Helper function to send IQ stanzas.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.addTimedHandler" id=link49 onMouseOver="ShowTip(event, 'tt49', 'link49')" onMouseOut="HideTip('tt49')">addTimedHandler</a></td><td class=SDescription>Add a timed handler to the connection.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.deleteTimedHandler" id=link50 onMouseOver="ShowTip(event, 'tt50', 'link50')" onMouseOut="HideTip('tt50')">deleteTimedHandler</a></td><td class=SDescription>Delete a timed handler for a connection.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.addHandler" id=link51 onMouseOver="ShowTip(event, 'tt51', 'link51')" onMouseOut="HideTip('tt51')">addHandler</a></td><td class=SDescription>Add a stanza handler for the connection.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.deleteHandler" id=link52 onMouseOver="ShowTip(event, 'tt52', 'link52')" onMouseOut="HideTip('tt52')">deleteHandler</a></td><td class=SDescription>Delete a stanza handler for a connection.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.disconnect" id=link53 onMouseOver="ShowTip(event, 'tt53', 'link53')" onMouseOut="HideTip('tt53')">disconnect</a></td><td class=SDescription>Start the graceful disconnection process.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
15   -
16   -<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Functions"></a>Functions</h3></div></div>
17   -
18   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="$build"></a>$build</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $build(</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Create a Strophe.Builder.&nbsp; This is an alias for &lsquo;new Strophe.Builder(name, attrs)&rsquo;.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) name</td><td class=CDLDescription>The root element name.</td></tr><tr><td class=CDLEntry>(Object) attrs</td><td class=CDLDescription>The attributes for the root element in object notation.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new Strophe.Builder object.</p></div></div></div>
19   -
20   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="$msg"></a>$msg</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $msg(</td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Create a Strophe.Builder with a &lt;message/&gt; element as the root.</p><h4 class=CHeading>Parmaeters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Object) attrs</td><td class=CDLDescription>The &lt;message/&gt; element attributes in object notation.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new Strophe.Builder object.</p></div></div></div>
21   -
22   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="$iq"></a>$iq</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $iq(</td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Create a Strophe.Builder with an &lt;iq/&gt; element as the root.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Object) attrs</td><td class=CDLDescription>The &lt;iq/&gt; element attributes in object notation.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new Strophe.Builder object.</p></div></div></div>
23   -
24   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="$pres"></a>$pres</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $pres(</td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Create a Strophe.Builder with a &lt;presence/&gt; element as the root.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Object) attrs</td><td class=CDLDescription>The &lt;presence/&gt; element attributes in object notation.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new Strophe.Builder object.</p></div></div></div>
25   -
26   -<div class="CClass"><div class=CTopic><h2 class=CTitle><a name="Strophe"></a>Strophe</h2><div class=CBody><p>An object container for all Strophe library functions.</p><p>This class is just a container for all the objects and constants used in the library.&nbsp; It is not meant to be instantiated, but to provide a namespace for library objects, constants, and functions.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#Strophe.Constants" >Constants</a></td><td class=SDescription></td></tr><tr class="SConstant SIndent1 SMarked"><td class=SEntry><a href="#Strophe.VERSION" >VERSION</a></td><td class=SDescription>The version of the Strophe library. </td></tr><tr class="SConstant SIndent1"><td class=SEntry><a href="#Strophe.XMPP_Namespace_Constants" >XMPP Namespace Constants</a></td><td class=SDescription>Common namespace constants from the XMPP RFCs and XEPs.</td></tr><tr class="SGroup"><td class=SEntry><a href="#Strophe.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.addNamespace" id=link54 onMouseOver="ShowTip(event, 'tt5', 'link54')" onMouseOut="HideTip('tt5')">addNamespace</a></td><td class=SDescription>This function is used to extend the current namespaces in Strophe.NS. </td></tr><tr class="SGroup"><td class=SEntry><a href="#Strophe.Constants" >Constants</a></td><td class=SDescription></td></tr><tr class="SConstant SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection_Status_Constants" >Connection Status Constants</a></td><td class=SDescription>Connection status constants for use by the connection handler callback.</td></tr><tr class="SConstant SIndent1"><td class=SEntry><a href="#Strophe.Log_Level_Constants" >Log Level Constants</a></td><td class=SDescription>Logging level indicators.</td></tr><tr class="SGroup"><td class=SEntry><a href="#Strophe.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.forEachChild" id=link55 onMouseOver="ShowTip(event, 'tt6', 'link55')" onMouseOut="HideTip('tt6')">forEachChild</a></td><td class=SDescription>Map a function over some or all child elements of a given element.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.isTagEqual" id=link56 onMouseOver="ShowTip(event, 'tt7', 'link56')" onMouseOut="HideTip('tt7')">isTagEqual</a></td><td class=SDescription>Compare an element&rsquo;s tag name with a string.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.xmlElement" id=link57 onMouseOver="ShowTip(event, 'tt8', 'link57')" onMouseOut="HideTip('tt8')">xmlElement</a></td><td class=SDescription>Create an XML DOM element.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.xmlescape" id=link58 onMouseOver="ShowTip(event, 'tt9', 'link58')" onMouseOut="HideTip('tt9')">xmlescape</a></td><td class=SDescription>Excapes invalid xml characters.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.xmlTextNode" id=link59 onMouseOver="ShowTip(event, 'tt10', 'link59')" onMouseOut="HideTip('tt10')">xmlTextNode</a></td><td class=SDescription>Creates an XML DOM text node.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.getText" id=link60 onMouseOver="ShowTip(event, 'tt11', 'link60')" onMouseOut="HideTip('tt11')">getText</a></td><td class=SDescription>Get the concatenation of all text children of an element.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.copyElement" id=link61 onMouseOver="ShowTip(event, 'tt12', 'link61')" onMouseOut="HideTip('tt12')">copyElement</a></td><td class=SDescription>Copy an XML DOM element.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.escapeNode" id=link62 onMouseOver="ShowTip(event, 'tt13', 'link62')" onMouseOut="HideTip('tt13')">escapeNode</a></td><td class=SDescription>Escape the node part (also called local part) of a JID.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.unescapeNode" id=link63 onMouseOver="ShowTip(event, 'tt14', 'link63')" onMouseOut="HideTip('tt14')">unescapeNode</a></td><td class=SDescription>Unescape a node part (also called local part) of a JID.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.getNodeFromJid" id=link64 onMouseOver="ShowTip(event, 'tt15', 'link64')" onMouseOut="HideTip('tt15')">getNodeFromJid</a></td><td class=SDescription>Get the node portion of a JID String.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.getDomainFromJid" id=link65 onMouseOver="ShowTip(event, 'tt16', 'link65')" onMouseOut="HideTip('tt16')">getDomainFromJid</a></td><td class=SDescription>Get the domain portion of a JID String.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.getResourceFromJid" id=link66 onMouseOver="ShowTip(event, 'tt17', 'link66')" onMouseOut="HideTip('tt17')">getResourceFromJid</a></td><td class=SDescription>Get the resource portion of a JID String.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.getBareJidFromJid" id=link67 onMouseOver="ShowTip(event, 'tt18', 'link67')" onMouseOut="HideTip('tt18')">getBareJidFromJid</a></td><td class=SDescription>Get the bare JID from a JID String.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.log" id=link68 onMouseOver="ShowTip(event, 'tt19', 'link68')" onMouseOut="HideTip('tt19')">log</a></td><td class=SDescription>User overrideable logging function.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.debug" id=link69 onMouseOver="ShowTip(event, 'tt20', 'link69')" onMouseOut="HideTip('tt20')">debug</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.DEBUG level.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.info" id=link70 onMouseOver="ShowTip(event, 'tt21', 'link70')" onMouseOut="HideTip('tt21')">info</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.INFO level.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.warn" id=link71 onMouseOver="ShowTip(event, 'tt22', 'link71')" onMouseOut="HideTip('tt22')">warn</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.WARN level.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.error" id=link72 onMouseOver="ShowTip(event, 'tt23', 'link72')" onMouseOut="HideTip('tt23')">error</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.ERROR level.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.fatal" id=link73 onMouseOver="ShowTip(event, 'tt24', 'link73')" onMouseOut="HideTip('tt24')">fatal</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.FATAL level.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.serialize" id=link74 onMouseOver="ShowTip(event, 'tt25', 'link74')" onMouseOut="HideTip('tt25')">serialize</a></td><td class=SDescription>Render a DOM element and all descendants to a String.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.addConnectionPlugin" id=link75 onMouseOver="ShowTip(event, 'tt26', 'link75')" onMouseOut="HideTip('tt26')">addConnectionPlugin</a></td><td class=SDescription>Extends the Strophe.Connection object with the given plugin.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
27   -
28   -<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Strophe.Constants"></a>Constants</h3></div></div>
29   -
30   -<div class="CConstant"><div class=CTopic><h3 class=CTitle><a name="Strophe.VERSION"></a>VERSION</h3><div class=CBody><p>The version of the Strophe library.&nbsp; Unreleased builds will have a version of head-HASH where HASH is a partial revision.</p></div></div></div>
31   -
32   -<div class="CConstant"><div class=CTopic><h3 class=CTitle><a name="Strophe.XMPP_Namespace_Constants"></a>XMPP Namespace Constants</h3><div class=CBody><p>Common namespace constants from the XMPP RFCs and XEPs.</p><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.HTTPBIND"></a>NS.HTTPBIND</td><td class=CDLDescription>HTTP BIND namespace from XEP 124.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.BOSH"></a>NS.BOSH</td><td class=CDLDescription>BOSH namespace from XEP 206.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.CLIENT"></a>NS.CLIENT</td><td class=CDLDescription>Main XMPP client namespace.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.AUTH"></a>NS.AUTH</td><td class=CDLDescription>Legacy authentication namespace.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.ROSTER"></a>NS.ROSTER</td><td class=CDLDescription>Roster operations namespace.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.PROFILE"></a>NS.PROFILE</td><td class=CDLDescription>Profile namespace.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.DISCO_INFO"></a>NS.DISCO_INFO</td><td class=CDLDescription>Service discovery info namespace from XEP 30.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.DISCO_ITEMS"></a>NS.DISCO_ITEMS</td><td class=CDLDescription>Service discovery items namespace from XEP 30.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.MUC"></a>NS.MUC</td><td class=CDLDescription>Multi-User Chat namespace from XEP 45.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.SASL"></a>NS.SASL</td><td class=CDLDescription>XMPP SASL namespace from RFC 3920.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.STREAM"></a>NS.STREAM</td><td class=CDLDescription>XMPP Streams namespace from RFC 3920.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.BIND"></a>NS.BIND</td><td class=CDLDescription>XMPP Binding namespace from RFC 3920.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.SESSION"></a>NS.SESSION</td><td class=CDLDescription>XMPP Session namespace from RFC 3920.</td></tr></table></div></div></div>
33   -
34   -<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Strophe.Functions"></a>Functions</h3></div></div>
35   -
36   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.addNamespace"></a>addNamespace</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addNamespace: function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>This function is used to extend the current namespaces in Strophe.NS.&nbsp; It takes a key and a value with the key being the name of the new namespace, with its actual value.&nbsp; For example: Strophe.addNamespace(&lsquo;PUBSUB&rsquo;, &ldquo;<a href="http://jabber.org/protocol/pubsub" class=LURL target=_top>http://jabber.org/protocol/pubsub</a>&rdquo;);</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) name</td><td class=CDLDescription>The name under which the namespace will be referenced under Strophe.NS</td></tr><tr><td class=CDLEntry>(String) value</td><td class=CDLDescription>The actual namespace.</td></tr></table></div></div></div>
37   -
38   -<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Strophe.Constants"></a>Constants</h3></div></div>
39   -
40   -<div class="CConstant"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection_Status_Constants"></a>Connection Status Constants</h3><div class=CBody><p>Connection status constants for use by the connection handler callback.</p><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.ERROR"></a>Status.ERROR</td><td class=CDLDescription>An error has occurred</td></tr><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.CONNECTING"></a>Status.CONNECTING</td><td class=CDLDescription>The connection is currently being made</td></tr><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.CONNFAIL"></a>Status.CONNFAIL</td><td class=CDLDescription>The connection attempt failed</td></tr><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.AUTHENTICATING"></a>Status.AUTHENTICATING</td><td class=CDLDescription>The connection is authenticating</td></tr><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.AUTHFAIL"></a>Status.AUTHFAIL</td><td class=CDLDescription>The authentication attempt failed</td></tr><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.CONNECTED"></a>Status.CONNECTED</td><td class=CDLDescription>The connection has succeeded</td></tr><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.DISCONNECTED"></a>Status.DISCONNECTED</td><td class=CDLDescription>The connection has been terminated</td></tr><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.DISCONNECTING"></a>Status.DISCONNECTING</td><td class=CDLDescription>The connection is currently being terminated</td></tr><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.ATTACHED"></a>Status.ATTACHED</td><td class=CDLDescription>The connection has been attached</td></tr></table></div></div></div>
41   -
42   -<div class="CConstant"><div class=CTopic><h3 class=CTitle><a name="Strophe.Log_Level_Constants"></a>Log Level Constants</h3><div class=CBody><p>Logging level indicators.</p><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry><a name="Strophe.Log_Level_Constants.LogLevel.DEBUG"></a>LogLevel.DEBUG</td><td class=CDLDescription>Debug output</td></tr><tr><td class=CDLEntry><a name="Strophe.Log_Level_Constants.LogLevel.INFO"></a>LogLevel.INFO</td><td class=CDLDescription>Informational output</td></tr><tr><td class=CDLEntry><a name="Strophe.Log_Level_Constants.LogLevel.WARN"></a>LogLevel.WARN</td><td class=CDLDescription>Warnings</td></tr><tr><td class=CDLEntry><a name="Strophe.Log_Level_Constants.LogLevel.ERROR"></a>LogLevel.ERROR</td><td class=CDLDescription>Errors</td></tr><tr><td class=CDLEntry><a name="Strophe.Log_Level_Constants.LogLevel.FATAL"></a>LogLevel.FATAL</td><td class=CDLDescription>Fatal errors</td></tr></table></div></div></div>
43   -
44   -<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Strophe.Functions"></a>Functions</h3></div></div>
45   -
46   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.forEachChild"></a>forEachChild</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>forEachChild: function (</td><td class=PParameter nowrap>elem,</td></tr><tr><td></td><td class=PParameter nowrap>elemName,</td></tr><tr><td></td><td class=PParameter nowrap>func</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Map a function over some or all child elements of a given element.</p><p>This is a small convenience function for mapping a function over some or all of the children of an element.&nbsp; If elemName is null, all children will be passed to the function, otherwise only children whose tag names match elemName will be passed.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) elem</td><td class=CDLDescription>The element to operate on.</td></tr><tr><td class=CDLEntry>(String) elemName</td><td class=CDLDescription>The child element tag name filter.</td></tr><tr><td class=CDLEntry>(Function) func</td><td class=CDLDescription>The function to apply to each child.&nbsp; This function should take a single argument, a DOM element.</td></tr></table></div></div></div>
47   -
48   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.isTagEqual"></a>isTagEqual</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>isTagEqual: function (</td><td class=PParameter nowrap>el,</td></tr><tr><td></td><td class=PParameter nowrap>name</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Compare an element&rsquo;s tag name with a string.</p><p>This function is case insensitive.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) el</td><td class=CDLDescription>A DOM element.</td></tr><tr><td class=CDLEntry>(String) name</td><td class=CDLDescription>The element name.</td></tr></table><h4 class=CHeading>Returns</h4><p>true if the element&rsquo;s tag name matches <u>el</u>, and false otherwise.</p></div></div></div>
49   -
50   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.xmlElement"></a>xmlElement</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlElement: function (</td><td class=PParameter nowrap>name</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Create an XML DOM element.</p><p>This function creates an XML DOM element correctly across all implementations.&nbsp; Specifically the Microsoft implementation of document.createElement makes DOM elements with 43+ default attributes unless elements are created with the ActiveX object Microsoft.XMLDOM.</p><p>Most DOMs force element names to lowercase, so we use the _realname attribute on the created element to store the case sensitive name.&nbsp; This is required to generate proper XML for things like vCard avatars (XEP 153).&nbsp; This attribute is stripped out before being sent over the wire or serialized, but you may notice it during debugging.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) name</td><td class=CDLDescription>The name for the element.</td></tr><tr><td class=CDLEntry>(Array) attrs</td><td class=CDLDescription>An optional array of key/value pairs to use as element attributes in the following format [[&lsquo;key1&rsquo;, &lsquo;value1&rsquo;], [&lsquo;key2&rsquo;, &lsquo;value2&rsquo;]]</td></tr><tr><td class=CDLEntry>(String) text</td><td class=CDLDescription>The text child data for the element.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new XML DOM element.</p></div></div></div>
51   -
52   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.xmlescape"></a>xmlescape</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlescape: function(</td><td class=PParameter nowrap>text</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Excapes invalid xml characters.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) text</td><td class=CDLDescription>text to escape.</td></tr></table><h4 class=CHeading>Returns</h4><p>Escaped text.</p></div></div></div>
53   -
54   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.xmlTextNode"></a>xmlTextNode</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlTextNode: function (</td><td class=PParameter nowrap>text</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Creates an XML DOM text node.</p><p>Provides a cross implementation version of document.createTextNode.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) text</td><td class=CDLDescription>The content of the text node.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new XML DOM text node.</p></div></div></div>
55   -
56   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.getText"></a>getText</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getText: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Get the concatenation of all text children of an element.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) elem</td><td class=CDLDescription>A DOM element.</td></tr></table><h4 class=CHeading>Returns</h4><p>A String with the concatenated text of all text element children.</p></div></div></div>
57   -
58   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.copyElement"></a>copyElement</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>copyElement: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Copy an XML DOM element.</p><p>This function copies a DOM element and all its descendants and returns the new copy.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) elem</td><td class=CDLDescription>A DOM element.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new, copied DOM element tree.</p></div></div></div>
59   -
60   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.escapeNode"></a>escapeNode</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>escapeNode: function (</td><td class=PParameter nowrap>node</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Escape the node part (also called local part) of a JID.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) node</td><td class=CDLDescription>A node (or local part).</td></tr></table><h4 class=CHeading>Returns</h4><p>An escaped node (or local part).</p></div></div></div>
61   -
62   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.unescapeNode"></a>unescapeNode</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>unescapeNode: function (</td><td class=PParameter nowrap>node</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Unescape a node part (also called local part) of a JID.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) node</td><td class=CDLDescription>A node (or local part).</td></tr></table><h4 class=CHeading>Returns</h4><p>An unescaped node (or local part).</p></div></div></div>
63   -
64   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.getNodeFromJid"></a>getNodeFromJid</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getNodeFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Get the node portion of a JID String.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) jid</td><td class=CDLDescription>A JID.</td></tr></table><h4 class=CHeading>Returns</h4><p>A String containing the node.</p></div></div></div>
65   -
66   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.getDomainFromJid"></a>getDomainFromJid</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getDomainFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Get the domain portion of a JID String.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) jid</td><td class=CDLDescription>A JID.</td></tr></table><h4 class=CHeading>Returns</h4><p>A String containing the domain.</p></div></div></div>
67   -
68   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.getResourceFromJid"></a>getResourceFromJid</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getResourceFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Get the resource portion of a JID String.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) jid</td><td class=CDLDescription>A JID.</td></tr></table><h4 class=CHeading>Returns</h4><p>A String containing the resource.</p></div></div></div>
69   -
70   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.getBareJidFromJid"></a>getBareJidFromJid</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getBareJidFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Get the bare JID from a JID String.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) jid</td><td class=CDLDescription>A JID.</td></tr></table><h4 class=CHeading>Returns</h4><p>A String containing the bare JID.</p></div></div></div>
71   -
72   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.log"></a>log</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>log: function (</td><td class=PParameter nowrap>level,</td></tr><tr><td></td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>User overrideable logging function.</p><p>This function is called whenever the Strophe library calls any of the logging functions.&nbsp; The default implementation of this function does nothing.&nbsp; If client code wishes to handle the logging messages, it should override this with</p><blockquote><pre>Strophe.log = function (level, msg) {
73   - (user code here)
74   -};</pre></blockquote><p>Please note that data sent and received over the wire is logged via Strophe.Connection.rawInput() and Strophe.Connection.rawOutput().</p><p>The different levels and their meanings are</p><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>DEBUG</td><td class=CDLDescription>Messages useful for debugging purposes.</td></tr><tr><td class=CDLEntry>INFO</td><td class=CDLDescription>Informational messages.&nbsp; This is mostly information like &lsquo;disconnect was called&rsquo; or &lsquo;SASL auth succeeded&rsquo;.</td></tr><tr><td class=CDLEntry>WARN</td><td class=CDLDescription>Warnings about potential problems.&nbsp; This is mostly used to report transient connection errors like request timeouts.</td></tr><tr><td class=CDLEntry>ERROR</td><td class=CDLDescription>Some error occurred.</td></tr><tr><td class=CDLEntry>FATAL</td><td class=CDLDescription>A non-recoverable fatal error occurred.</td></tr></table><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Integer) level</td><td class=CDLDescription>The log level of the log message.&nbsp; This will be one of the values in Strophe.LogLevel.</td></tr><tr><td class=CDLEntry>(String) msg</td><td class=CDLDescription>The log message.</td></tr></table></div></div></div>
75   -
76   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.debug"></a>debug</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>debug: function(</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Log a message at the Strophe.LogLevel.DEBUG level.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) msg</td><td class=CDLDescription>The log message.</td></tr></table></div></div></div>
77   -
78   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.info"></a>info</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>info: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Log a message at the Strophe.LogLevel.INFO level.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) msg</td><td class=CDLDescription>The log message.</td></tr></table></div></div></div>
79   -
80   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.warn"></a>warn</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>warn: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Log a message at the Strophe.LogLevel.WARN level.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) msg</td><td class=CDLDescription>The log message.</td></tr></table></div></div></div>
81   -
82   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.error"></a>error</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>error: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Log a message at the Strophe.LogLevel.ERROR level.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) msg</td><td class=CDLDescription>The log message.</td></tr></table></div></div></div>
83   -
84   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.fatal"></a>fatal</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>fatal: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Log a message at the Strophe.LogLevel.FATAL level.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) msg</td><td class=CDLDescription>The log message.</td></tr></table></div></div></div>
85   -
86   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.serialize"></a>serialize</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>serialize: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Render a DOM element and all descendants to a String.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) elem</td><td class=CDLDescription>A DOM element.</td></tr></table><h4 class=CHeading>Returns</h4><p>The serialized element tree as a String.</p></div></div></div>
87   -
88   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.addConnectionPlugin"></a>addConnectionPlugin</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addConnectionPlugin: function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>ptype</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Extends the Strophe.Connection object with the given plugin.</p><h4 class=CHeading>Paramaters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) name</td><td class=CDLDescription>The name of the extension.</td></tr><tr><td class=CDLEntry>(Object) ptype</td><td class=CDLDescription>The plugin&rsquo;s prototype.</td></tr></table></div></div></div>
89   -
90   -<div class="CClass"><div class=CTopic><h2 class=CTitle><a name="Strophe.Builder"></a>Strophe.<wbr>Builder</h2><div class=CBody><p>XML DOM builder.</p><p>This object provides an interface similar to JQuery but for building DOM element easily and rapidly.&nbsp; All the functions except for toString() and tree() return the object, so calls can be chained.&nbsp; Here&rsquo;s an example using the $iq() builder helper.</p><blockquote><pre>$iq({to: 'you': from: 'me': type: 'get', id: '1'})
91   - .c('query', {xmlns: 'strophe:example'})
92   - .c('example')
93   - .toString()</pre></blockquote><p>The above generates this XML fragment</p><blockquote><pre>&lt;iq to='you' from='me' type='get' id='1'&gt;
94   - &lt;query xmlns='strophe:example'&gt;
95   - &lt;example/&gt;
96   - &lt;/query&gt;
97   -&lt;/iq&gt;</pre></blockquote><p>The corresponding DOM manipulations to get a similar fragment would be a lot more tedious and probably involve several helper variables.</p><p>Since adding children makes new operations operate on the child, up() is provided to traverse up the tree.&nbsp; To add two children, do</p><blockquote><pre>builder.c('child1', ...).up().c('child2', ...)</pre></blockquote><p>The next operation on the Builder will be relative to the second child.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#Strophe.Builder.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Builder.Strophe.Builder" id=link76 onMouseOver="ShowTip(event, 'tt27', 'link76')" onMouseOut="HideTip('tt27')">Strophe.<wbr>Builder</a></td><td class=SDescription>Create a Strophe.Builder object.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Builder.tree" id=link77 onMouseOver="ShowTip(event, 'tt28', 'link77')" onMouseOut="HideTip('tt28')">tree</a></td><td class=SDescription>Return the DOM tree.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Builder.toString" id=link78 onMouseOver="ShowTip(event, 'tt29', 'link78')" onMouseOut="HideTip('tt29')">toString</a></td><td class=SDescription>Serialize the DOM tree to a String.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Builder.up" id=link79 onMouseOver="ShowTip(event, 'tt30', 'link79')" onMouseOut="HideTip('tt30')">up</a></td><td class=SDescription>Make the current parent element the new current element.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Builder.attrs" id=link80 onMouseOver="ShowTip(event, 'tt31', 'link80')" onMouseOut="HideTip('tt31')">attrs</a></td><td class=SDescription>Add or modify attributes of the current element.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Builder.c" id=link81 onMouseOver="ShowTip(event, 'tt32', 'link81')" onMouseOut="HideTip('tt32')">c</a></td><td class=SDescription>Add a child to the current element and make it the new current element.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Builder.cnode" id=link82 onMouseOver="ShowTip(event, 'tt33', 'link82')" onMouseOut="HideTip('tt33')">cnode</a></td><td class=SDescription>Add a child to the current element and make it the new current element.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Builder.t" id=link83 onMouseOver="ShowTip(event, 'tt34', 'link83')" onMouseOut="HideTip('tt34')">t</a></td><td class=SDescription>Add a child text element.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
98   -
99   -<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.Functions"></a>Functions</h3></div></div>
100   -
101   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.Strophe.Builder"></a>Strophe.<wbr>Builder</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>Strophe.Builder = function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Create a Strophe.Builder object.</p><p>The attributes should be passed in object notation.&nbsp; For example</p><blockquote><pre>var b = new Builder('message', {to: 'you', from: 'me'});</pre></blockquote><p>or</p><blockquote><pre>var b = new Builder('messsage', {'xml:lang': 'en'});</pre></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) name</td><td class=CDLDescription>The name of the root element.</td></tr><tr><td class=CDLEntry>(Object) attrs</td><td class=CDLDescription>The attributes for the root element in object notation.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new Strophe.Builder.</p></div></div></div>
102   -
103   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.tree"></a>tree</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>tree: function ()</td></tr></table></blockquote><p>Return the DOM tree.</p><p>This function returns the current DOM tree as an element object.&nbsp; This is suitable for passing to functions like Strophe.Connection.send().</p><h4 class=CHeading>Returns</h4><p>The DOM tree as a element object.</p></div></div></div>
104   -
105   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.toString"></a>toString</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>toString: function ()</td></tr></table></blockquote><p>Serialize the DOM tree to a String.</p><p>This function returns a string serialization of the current DOM tree.&nbsp; It is often used internally to pass data to a Strophe.Request object.</p><h4 class=CHeading>Returns</h4><p>The serialized DOM tree in a String.</p></div></div></div>
106   -
107   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.up"></a>up</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>up: function ()</td></tr></table></blockquote><p>Make the current parent element the new current element.</p><p>This function is often used after c() to traverse back up the tree.&nbsp; For example, to add two children to the same element</p><blockquote><pre>builder.c('child1', {}).up().c('child2', {});</pre></blockquote><h4 class=CHeading>Returns</h4><p>The Stophe.Builder object.</p></div></div></div>
108   -
109   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.attrs"></a>attrs</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>attrs: function (</td><td class=PParameter nowrap>moreattrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Add or modify attributes of the current element.</p><p>The attributes should be passed in object notation.&nbsp; This function does not move the current element pointer.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Object) moreattrs</td><td class=CDLDescription>The attributes to add/modify in object notation.</td></tr></table><h4 class=CHeading>Returns</h4><p>The Strophe.Builder object.</p></div></div></div>
110   -
111   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.c"></a>c</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>c: function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Add a child to the current element and make it the new current element.</p><p>This function moves the current element pointer to the child.&nbsp; If you need to add another child, it is necessary to use up() to go back to the parent in the tree.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) name</td><td class=CDLDescription>The name of the child.</td></tr><tr><td class=CDLEntry>(Object) attrs</td><td class=CDLDescription>The attributes of the child in object notation.</td></tr></table><h4 class=CHeading>Returns</h4><p>The Strophe.Builder object.</p></div></div></div>
112   -
113   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.cnode"></a>cnode</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>cnode: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Add a child to the current element and make it the new current element.</p><p>This function is the same as c() except that instead of using a name and an attributes object to create the child it uses an existing DOM element object.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) elem</td><td class=CDLDescription>A DOM element.</td></tr></table><h4 class=CHeading>Returns</h4><p>The Strophe.Builder object.</p></div></div></div>
114   -
115   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.t"></a>t</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>t: function (</td><td class=PParameter nowrap>text</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Add a child text element.</p><p>This <b>does not</b> make the child the new current element since there are no children of text elements.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) text</td><td class=CDLDescription>The text data to append to the current element.</td></tr></table><h4 class=CHeading>Returns</h4><p>The Strophe.Builder object.</p></div></div></div>
116   -
117   -<div class="CClass"><div class=CTopic><h2 class=CTitle><a name="Strophe.Connection"></a>Strophe.<wbr>Connection</h2><div class=CBody><p>XMPP Connection manager.</p><p>Thie class is the main part of Strophe.&nbsp; It manages a BOSH connection to an XMPP server and dispatches events to the user callbacks as data arrives.&nbsp; It supports SASL PLAIN, SASL DIGEST-MD5, and legacy authentication.</p><p>After creating a Strophe.Connection object, the user will typically call connect() with a user supplied callback to handle connection level events like authentication failure, disconnection, or connection complete.</p><p>The user will also have several event handlers defined by using addHandler() and addTimedHandler().&nbsp; These will allow the user code to respond to interesting stanzas or do something periodically with the connection.&nbsp; These handlers will be active once authentication is finished.</p><p>To send data to the connection, use send().</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#Strophe.Connection.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.Strophe.Connection" id=link84 onMouseOver="ShowTip(event, 'tt35', 'link84')" onMouseOut="HideTip('tt35')">Strophe.<wbr>Connection</a></td><td class=SDescription>Create and initialize a Strophe.Connection object.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.reset" id=link85 onMouseOver="ShowTip(event, 'tt36', 'link85')" onMouseOut="HideTip('tt36')">reset</a></td><td class=SDescription>Reset the connection.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.pause" id=link86 onMouseOver="ShowTip(event, 'tt37', 'link86')" onMouseOut="HideTip('tt37')">pause</a></td><td class=SDescription>Pause the request manager.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.resume" id=link87 onMouseOver="ShowTip(event, 'tt38', 'link87')" onMouseOut="HideTip('tt38')">resume</a></td><td class=SDescription>Resume the request manager.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.getUniqueId" id=link88 onMouseOver="ShowTip(event, 'tt39', 'link88')" onMouseOut="HideTip('tt39')">getUniqueId</a></td><td class=SDescription>Generate a unique ID for use in &lt;iq/&gt; elements.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.connect" id=link89 onMouseOver="ShowTip(event, 'tt40', 'link89')" onMouseOut="HideTip('tt40')">connect</a></td><td class=SDescription>Starts the connection process.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.attach" id=link90 onMouseOver="ShowTip(event, 'tt41', 'link90')" onMouseOut="HideTip('tt41')">attach</a></td><td class=SDescription>Attach to an already created and authenticated BOSH session.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.xmlInput" id=link91 onMouseOver="ShowTip(event, 'tt42', 'link91')" onMouseOut="HideTip('tt42')">xmlInput</a></td><td class=SDescription>User overrideable function that receives XML data coming into the connection.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.xmlOutput" id=link92 onMouseOver="ShowTip(event, 'tt43', 'link92')" onMouseOut="HideTip('tt43')">xmlOutput</a></td><td class=SDescription>User overrideable function that receives XML data sent to the connection.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.rawInput" id=link93 onMouseOver="ShowTip(event, 'tt44', 'link93')" onMouseOut="HideTip('tt44')">rawInput</a></td><td class=SDescription>User overrideable function that receives raw data coming into the connection.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.rawOutput" id=link94 onMouseOver="ShowTip(event, 'tt45', 'link94')" onMouseOut="HideTip('tt45')">rawOutput</a></td><td class=SDescription>User overrideable function that receives raw data sent to the connection.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.send" id=link95 onMouseOver="ShowTip(event, 'tt46', 'link95')" onMouseOut="HideTip('tt46')">send</a></td><td class=SDescription>Send a stanza.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.flush" id=link96 onMouseOver="ShowTip(event, 'tt47', 'link96')" onMouseOut="HideTip('tt47')">flush</a></td><td class=SDescription>Immediately send any pending outgoing data.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.sendIQ" id=link97 onMouseOver="ShowTip(event, 'tt48', 'link97')" onMouseOut="HideTip('tt48')">sendIQ</a></td><td class=SDescription>Helper function to send IQ stanzas.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.addTimedHandler" id=link98 onMouseOver="ShowTip(event, 'tt49', 'link98')" onMouseOut="HideTip('tt49')">addTimedHandler</a></td><td class=SDescription>Add a timed handler to the connection.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.deleteTimedHandler" id=link99 onMouseOver="ShowTip(event, 'tt50', 'link99')" onMouseOut="HideTip('tt50')">deleteTimedHandler</a></td><td class=SDescription>Delete a timed handler for a connection.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.addHandler" id=link100 onMouseOver="ShowTip(event, 'tt51', 'link100')" onMouseOut="HideTip('tt51')">addHandler</a></td><td class=SDescription>Add a stanza handler for the connection.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.deleteHandler" id=link101 onMouseOver="ShowTip(event, 'tt52', 'link101')" onMouseOut="HideTip('tt52')">deleteHandler</a></td><td class=SDescription>Delete a stanza handler for a connection.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.disconnect" id=link102 onMouseOver="ShowTip(event, 'tt53', 'link102')" onMouseOut="HideTip('tt53')">disconnect</a></td><td class=SDescription>Start the graceful disconnection process.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
118   -
119   -<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.Functions"></a>Functions</h3></div></div>
120   -
121   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.Strophe.Connection"></a>Strophe.<wbr>Connection</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>Strophe.Connection = function (</td><td class=PParameter nowrap>service</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Create and initialize a Strophe.Connection object.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) service</td><td class=CDLDescription>The BOSH service URL.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new Strophe.Connection object.</p></div></div></div>
122   -
123   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.reset"></a>reset</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>reset: function ()</td></tr></table></blockquote><p>Reset the connection.</p><p>This function should be called after a connection is disconnected before that connection is reused.</p></div></div></div>
124   -
125   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.pause"></a>pause</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>pause: function ()</td></tr></table></blockquote><p>Pause the request manager.</p><p>This will prevent Strophe from sending any more requests to the server.&nbsp; This is very useful for temporarily pausing while a lot of send() calls are happening quickly.&nbsp; This causes Strophe to send the data in a single request, saving many request trips.</p></div></div></div>
126   -
127   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.resume"></a>resume</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>resume: function ()</td></tr></table></blockquote><p>Resume the request manager.</p><p>This resumes after pause() has been called.</p></div></div></div>
128   -
129   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.getUniqueId"></a>getUniqueId</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getUniqueId: function (</td><td class=PParameter nowrap>suffix</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Generate a unique ID for use in &lt;iq/&gt; elements.</p><p>All &lt;iq/&gt; stanzas are required to have unique id attributes.&nbsp; This function makes creating these easy.&nbsp; Each connection instance has a counter which starts from zero, and the value of this counter plus a colon followed by the suffix becomes the unique id.&nbsp; If no suffix is supplied, the counter is used as the unique id.</p><p>Suffixes are used to make debugging easier when reading the stream data, and their use is recommended.&nbsp; The counter resets to 0 for every new connection for the same reason.&nbsp; For connections to the same server that authenticate the same way, all the ids should be the same, which makes it easy to see changes.&nbsp; This is useful for automated testing as well.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) suffix</td><td class=CDLDescription>A optional suffix to append to the id.</td></tr></table><h4 class=CHeading>Returns</h4><p>A unique string to be used for the id attribute.</p></div></div></div>
130   -
131   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.connect"></a>connect</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>connect: function (</td><td class=PParameter nowrap>jid,</td></tr><tr><td></td><td class=PParameter nowrap>pass,</td></tr><tr><td></td><td class=PParameter nowrap>callback,</td></tr><tr><td></td><td class=PParameter nowrap>wait,</td></tr><tr><td></td><td class=PParameter nowrap>hold</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Starts the connection process.</p><p>As the connection process proceeds, the user supplied callback will be triggered multiple times with status updates.&nbsp; The callback should take two arguments - the status code and the error condition.</p><p>The status code will be one of the values in the Strophe.Status constants.&nbsp; The error condition will be one of the conditions defined in RFC 3920 or the condition &lsquo;strophe-parsererror&rsquo;.</p><p>Please see XEP 124 for a more detailed explanation of the optional parameters below.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) jid</td><td class=CDLDescription>The user&rsquo;s JID.&nbsp; This may be a bare JID, or a full JID.&nbsp; If a node is not supplied, SASL ANONYMOUS authentication will be attempted.</td></tr><tr><td class=CDLEntry>(String) pass</td><td class=CDLDescription>The user&rsquo;s password.&nbsp; (Function) callback The connect callback function.</td></tr><tr><td class=CDLEntry>(Integer) wait</td><td class=CDLDescription>The optional HTTPBIND wait value.&nbsp; This is the time the server will wait before returning an empty result for a request.&nbsp; The default setting of 60 seconds is recommended.&nbsp; Other settings will require tweaks to the Strophe.TIMEOUT value.</td></tr><tr><td class=CDLEntry>(Integer) hold</td><td class=CDLDescription>The optional HTTPBIND hold value.&nbsp; This is the number of connections the server will hold at one time.&nbsp; This should almost always be set to 1 (the default).</td></tr></table></div></div></div>
132   -
133   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.attach"></a>attach</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>attach: function (</td><td class=PParameter nowrap>jid,</td></tr><tr><td></td><td class=PParameter nowrap>sid,</td></tr><tr><td></td><td class=PParameter nowrap>rid,</td></tr><tr><td></td><td class=PParameter nowrap>callback,</td></tr><tr><td></td><td class=PParameter nowrap>wait,</td></tr><tr><td></td><td class=PParameter nowrap>hold,</td></tr><tr><td></td><td class=PParameter nowrap>wind</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Attach to an already created and authenticated BOSH session.</p><p>This function is provided to allow Strophe to attach to BOSH sessions which have been created externally, perhaps by a Web application.&nbsp; This is often used to support auto-login type features without putting user credentials into the page.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) jid</td><td class=CDLDescription>The full JID that is bound by the session.</td></tr><tr><td class=CDLEntry>(String) sid</td><td class=CDLDescription>The SID of the BOSH session.</td></tr><tr><td class=CDLEntry>(String) rid</td><td class=CDLDescription>The current RID of the BOSH session.&nbsp; This RID will be used by the next request.&nbsp; (Function) callback The connect callback function.</td></tr><tr><td class=CDLEntry>(Integer) wait</td><td class=CDLDescription>The optional HTTPBIND wait value.&nbsp; This is the time the server will wait before returning an empty result for a request.&nbsp; The default setting of 60 seconds is recommended.&nbsp; Other settings will require tweaks to the Strophe.TIMEOUT value.</td></tr><tr><td class=CDLEntry>(Integer) hold</td><td class=CDLDescription>The optional HTTPBIND hold value.&nbsp; This is the number of connections the server will hold at one time.&nbsp; This should almost always be set to 1 (the default).</td></tr><tr><td class=CDLEntry>(Integer) wind</td><td class=CDLDescription>The optional HTTBIND window value.&nbsp; This is the allowed range of request ids that are valid.&nbsp; The default is 5.</td></tr></table></div></div></div>
134   -
135   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.xmlInput"></a>xmlInput</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlInput: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>User overrideable function that receives XML data coming into the connection.</p><p>The default function does nothing.&nbsp; User code can override this with</p><blockquote><pre>Strophe.Connection.xmlInput = function (elem) {
136   - (user code)
137   -};</pre></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) elem</td><td class=CDLDescription>The XML data received by the connection.</td></tr></table></div></div></div>
138   -
139   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.xmlOutput"></a>xmlOutput</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlOutput: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>User overrideable function that receives XML data sent to the connection.</p><p>The default function does nothing.&nbsp; User code can override this with</p><blockquote><pre>Strophe.Connection.xmlOutput = function (elem) {
140   - (user code)
141   -};</pre></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) elem</td><td class=CDLDescription>The XMLdata sent by the connection.</td></tr></table></div></div></div>
142   -
143   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.rawInput"></a>rawInput</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>rawInput: function (</td><td class=PParameter nowrap>data</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>User overrideable function that receives raw data coming into the connection.</p><p>The default function does nothing.&nbsp; User code can override this with</p><blockquote><pre>Strophe.Connection.rawInput = function (data) {
144   - (user code)
145   -};</pre></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) data</td><td class=CDLDescription>The data received by the connection.</td></tr></table></div></div></div>
146   -
147   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.rawOutput"></a>rawOutput</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>rawOutput: function (</td><td class=PParameter nowrap>data</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>User overrideable function that receives raw data sent to the connection.</p><p>The default function does nothing.&nbsp; User code can override this with</p><blockquote><pre>Strophe.Connection.rawOutput = function (data) {
148   - (user code)
149   -};</pre></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) data</td><td class=CDLDescription>The data sent by the connection.</td></tr></table></div></div></div>
150   -
151   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.send"></a>send</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>send: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Send a stanza.</p><p>This function is called to push data onto the send queue to go out over the wire.&nbsp; Whenever a request is sent to the BOSH server, all pending data is sent and the queue is flushed.</p><h4 class=CHeading>Parameters</h4><p>(XMLElement | [XMLElement] | Strophe.Builder) elem - The stanza to send.</p></div></div></div>
152   -
153   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.flush"></a>flush</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>flush: function ()</td></tr></table></blockquote><p>Immediately send any pending outgoing data.</p><p>Normally send() queues outgoing data until the next idle period (100ms), which optimizes network use in the common cases when several send()s are called in succession. flush() can be used to immediately send all pending data.</p></div></div></div>
154   -
155   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.sendIQ"></a>sendIQ</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>sendIQ: function(</td><td class=PParameter nowrap>elem,</td></tr><tr><td></td><td class=PParameter nowrap>callback,</td></tr><tr><td></td><td class=PParameter nowrap>errback,</td></tr><tr><td></td><td class=PParameter nowrap>timeout</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Helper function to send IQ stanzas.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) elem</td><td class=CDLDescription>The stanza to send.</td></tr><tr><td class=CDLEntry>(Function) callback</td><td class=CDLDescription>The callback function for a successful request.</td></tr><tr><td class=CDLEntry>(Function) errback</td><td class=CDLDescription>The callback function for a failed or timed out request.&nbsp; On timeout, the stanza will be null.</td></tr><tr><td class=CDLEntry>(Integer) timeout</td><td class=CDLDescription>The time specified in milliseconds for a timeout to occur.</td></tr></table><h4 class=CHeading>Returns</h4><p>The id used to send the IQ.</p></div></div></div>
156   -
157   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.addTimedHandler"></a>addTimedHandler</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addTimedHandler: function (</td><td class=PParameter nowrap>period,</td></tr><tr><td></td><td class=PParameter nowrap>handler</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Add a timed handler to the connection.</p><p>This function adds a timed handler.&nbsp; The provided handler will be called every period milliseconds until it returns false, the connection is terminated, or the handler is removed.&nbsp; Handlers that wish to continue being invoked should return true.</p><p>Because of method binding it is necessary to save the result of this function if you wish to remove a handler with deleteTimedHandler().</p><p>Note that user handlers are not active until authentication is successful.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Integer) period</td><td class=CDLDescription>The period of the handler.</td></tr><tr><td class=CDLEntry>(Function) handler</td><td class=CDLDescription>The callback function.</td></tr></table><h4 class=CHeading>Returns</h4><p>A reference to the handler that can be used to remove it.</p></div></div></div>
158   -
159   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.deleteTimedHandler"></a>deleteTimedHandler</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>deleteTimedHandler: function (</td><td class=PParameter nowrap>handRef</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Delete a timed handler for a connection.</p><p>This function removes a timed handler from the connection.&nbsp; The handRef parameter is <b>not</b> the function passed to addTimedHandler(), but is the reference returned from addTimedHandler().</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Strophe.TimedHandler) handRef</td><td class=CDLDescription>The handler reference.</td></tr></table></div></div></div>
160   -
161   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.addHandler"></a>addHandler</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addHandler: function (</td><td class=PParameter nowrap>handler,</td></tr><tr><td></td><td class=PParameter nowrap>ns,</td></tr><tr><td></td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>type,</td></tr><tr><td></td><td class=PParameter nowrap>id,</td></tr><tr><td></td><td class=PParameter nowrap>from,</td></tr><tr><td></td><td class=PParameter nowrap>options</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Add a stanza handler for the connection.</p><p>This function adds a stanza handler to the connection.&nbsp; The handler callback will be called for any stanza that matches the parameters.&nbsp; Note that if multiple parameters are supplied, they must all match for the handler to be invoked.</p><p>The handler will receive the stanza that triggered it as its argument.&nbsp; The handler should return true if it is to be invoked again; returning false will remove the handler after it returns.</p><p>As a convenience, the ns parameters applies to the top level element and also any of its immediate children.&nbsp; This is primarily to make matching /iq/query elements easy.</p><p>The options argument contains handler matching flags that affect how matches are determined.&nbsp; Currently the only flag is matchBare (a boolean).&nbsp; When matchBare is true, the from parameter and the from attribute on the stanza will be matched as bare JIDs instead of full JIDs.&nbsp; To use this, pass {matchBare: true} as the value of options.&nbsp; The default value for matchBare is false.</p><p>The return value should be saved if you wish to remove the handler with deleteHandler().</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Function) handler</td><td class=CDLDescription>The user callback.</td></tr><tr><td class=CDLEntry>(String) ns</td><td class=CDLDescription>The namespace to match.</td></tr><tr><td class=CDLEntry>(String) name</td><td class=CDLDescription>The stanza name to match.</td></tr><tr><td class=CDLEntry>(String) type</td><td class=CDLDescription>The stanza type attribute to match.</td></tr><tr><td class=CDLEntry>(String) id</td><td class=CDLDescription>The stanza id attribute to match.</td></tr><tr><td class=CDLEntry>(String) from</td><td class=CDLDescription>The stanza from attribute to match.</td></tr><tr><td class=CDLEntry>(String) options</td><td class=CDLDescription>The handler options</td></tr></table><h4 class=CHeading>Returns</h4><p>A reference to the handler that can be used to remove it.</p></div></div></div>
162   -
163   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.deleteHandler"></a>deleteHandler</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>deleteHandler: function (</td><td class=PParameter nowrap>handRef</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Delete a stanza handler for a connection.</p><p>This function removes a stanza handler from the connection.&nbsp; The handRef parameter is <b>not</b> the function passed to addHandler(), but is the reference returned from addHandler().</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Strophe.Handler) handRef</td><td class=CDLDescription>The handler reference.</td></tr></table></div></div></div>
164   -
165   -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.disconnect"></a>disconnect</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>disconnect: function (</td><td class=PParameter nowrap>reason</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Start the graceful disconnection process.</p><p>This function starts the disconnection process.&nbsp; This process starts by sending unavailable presence and sending BOSH body of type terminate.&nbsp; A timeout handler makes sure that disconnection happens even if the BOSH server does not respond.</p><p>The user supplied connection callback will be notified of the progress as this process happens.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) reason</td><td class=CDLDescription>The reason the disconnect is occuring.</td></tr></table></div></div></div>
166   -
167   -</div><!--Content-->
168   -
169   -
170   -<div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
171   -
172   -
173   -<div id=Menu><div class=MEntry><div class=MFile id=MSelected>js</div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Index</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MIndex><a href="../index/General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Classes.html">Classes</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Constants.html">Constants</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Files.html">Files</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Functions.html">Functions</a></div></div></div></div></div><script type="text/javascript"><!--
174   -var searchPanel = new SearchPanel("searchPanel", "HTML", "../search");
175   ---></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option id=MSearchEverything selected value="General">Everything</option><option value="Classes">Classes</option><option value="Constants">Constants</option><option value="Files">Files</option><option value="Functions">Functions</option></select></div></div><!--Menu-->
176   -
177   -
178   -
179   -<!--START_ND_TOOLTIPS-->
180   -<div class=CToolTip id="tt1"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $build(</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create a Strophe.Builder. </div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $msg(</td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create a Strophe.Builder with a message/ element as the root.</div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $iq(</td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create a Strophe.Builder with an iq/ element as the root.</div></div><div class=CToolTip id="tt4"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $pres(</td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create a Strophe.Builder with a presence/ element as the root.</div></div><div class=CToolTip id="tt5"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addNamespace: function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>This function is used to extend the current namespaces in Strophe.NS. </div></div><div class=CToolTip id="tt6"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>forEachChild: function (</td><td class=PParameter nowrap>elem,</td></tr><tr><td></td><td class=PParameter nowrap>elemName,</td></tr><tr><td></td><td class=PParameter nowrap>func</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Map a function over some or all child elements of a given element.</div></div><div class=CToolTip id="tt7"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>isTagEqual: function (</td><td class=PParameter nowrap>el,</td></tr><tr><td></td><td class=PParameter nowrap>name</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Compare an element&rsquo;s tag name with a string.</div></div><div class=CToolTip id="tt8"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlElement: function (</td><td class=PParameter nowrap>name</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create an XML DOM element.</div></div><div class=CToolTip id="tt9"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlescape: function(</td><td class=PParameter nowrap>text</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Excapes invalid xml characters.</div></div><div class=CToolTip id="tt10"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlTextNode: function (</td><td class=PParameter nowrap>text</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Creates an XML DOM text node.</div></div><div class=CToolTip id="tt11"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getText: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Get the concatenation of all text children of an element.</div></div><div class=CToolTip id="tt12"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>copyElement: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Copy an XML DOM element.</div></div><div class=CToolTip id="tt13"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>escapeNode: function (</td><td class=PParameter nowrap>node</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Escape the node part (also called local part) of a JID.</div></div><div class=CToolTip id="tt14"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>unescapeNode: function (</td><td class=PParameter nowrap>node</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Unescape a node part (also called local part) of a JID.</div></div><div class=CToolTip id="tt15"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getNodeFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Get the node portion of a JID String.</div></div><div class=CToolTip id="tt16"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getDomainFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Get the domain portion of a JID String.</div></div><div class=CToolTip id="tt17"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getResourceFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Get the resource portion of a JID String.</div></div><div class=CToolTip id="tt18"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getBareJidFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Get the bare JID from a JID String.</div></div><div class=CToolTip id="tt19"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>log: function (</td><td class=PParameter nowrap>level,</td></tr><tr><td></td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>User overrideable logging function.</div></div><div class=CToolTip id="tt20"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>debug: function(</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Log a message at the Strophe.LogLevel.DEBUG level.</div></div><div class=CToolTip id="tt21"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>info: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Log a message at the Strophe.LogLevel.INFO level.</div></div><div class=CToolTip id="tt22"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>warn: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Log a message at the Strophe.LogLevel.WARN level.</div></div><div class=CToolTip id="tt23"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>error: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Log a message at the Strophe.LogLevel.ERROR level.</div></div><div class=CToolTip id="tt24"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>fatal: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Log a message at the Strophe.LogLevel.FATAL level.</div></div><div class=CToolTip id="tt25"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>serialize: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Render a DOM element and all descendants to a String.</div></div><div class=CToolTip id="tt26"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addConnectionPlugin: function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>ptype</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Extends the Strophe.Connection object with the given plugin.</div></div><div class=CToolTip id="tt27"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>Strophe.Builder = function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create a Strophe.Builder object.</div></div><div class=CToolTip id="tt28"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>tree: function ()</td></tr></table></blockquote>Return the DOM tree.</div></div><div class=CToolTip id="tt29"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>toString: function ()</td></tr></table></blockquote>Serialize the DOM tree to a String.</div></div><div class=CToolTip id="tt30"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>up: function ()</td></tr></table></blockquote>Make the current parent element the new current element.</div></div><div class=CToolTip id="tt31"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>attrs: function (</td><td class=PParameter nowrap>moreattrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add or modify attributes of the current element.</div></div><div class=CToolTip id="tt32"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>c: function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add a child to the current element and make it the new current element.</div></div><div class=CToolTip id="tt33"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>cnode: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add a child to the current element and make it the new current element.</div></div><div class=CToolTip id="tt34"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>t: function (</td><td class=PParameter nowrap>text</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add a child text element.</div></div><div class=CToolTip id="tt35"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>Strophe.Connection = function (</td><td class=PParameter nowrap>service</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create and initialize a Strophe.Connection object.</div></div><div class=CToolTip id="tt36"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>reset: function ()</td></tr></table></blockquote>Reset the connection.</div></div><div class=CToolTip id="tt37"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>pause: function ()</td></tr></table></blockquote>Pause the request manager.</div></div><div class=CToolTip id="tt38"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>resume: function ()</td></tr></table></blockquote>Resume the request manager.</div></div><div class=CToolTip id="tt39"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getUniqueId: function (</td><td class=PParameter nowrap>suffix</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Generate a unique ID for use in iq/ elements.</div></div><div class=CToolTip id="tt40"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>connect: function (</td><td class=PParameter nowrap>jid,</td></tr><tr><td></td><td class=PParameter nowrap>pass,</td></tr><tr><td></td><td class=PParameter nowrap>callback,</td></tr><tr><td></td><td class=PParameter nowrap>wait,</td></tr><tr><td></td><td class=PParameter nowrap>hold</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Starts the connection process.</div></div><div class=CToolTip id="tt41"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>attach: function (</td><td class=PParameter nowrap>jid,</td></tr><tr><td></td><td class=PParameter nowrap>sid,</td></tr><tr><td></td><td class=PParameter nowrap>rid,</td></tr><tr><td></td><td class=PParameter nowrap>callback,</td></tr><tr><td></td><td class=PParameter nowrap>wait,</td></tr><tr><td></td><td class=PParameter nowrap>hold,</td></tr><tr><td></td><td class=PParameter nowrap>wind</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Attach to an already created and authenticated BOSH session.</div></div><div class=CToolTip id="tt42"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlInput: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>User overrideable function that receives XML data coming into the connection.</div></div><div class=CToolTip id="tt43"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlOutput: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>User overrideable function that receives XML data sent to the connection.</div></div><div class=CToolTip id="tt44"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>rawInput: function (</td><td class=PParameter nowrap>data</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>User overrideable function that receives raw data coming into the connection.</div></div><div class=CToolTip id="tt45"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>rawOutput: function (</td><td class=PParameter nowrap>data</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>User overrideable function that receives raw data sent to the connection.</div></div><div class=CToolTip id="tt46"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>send: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Send a stanza.</div></div><div class=CToolTip id="tt47"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>flush: function ()</td></tr></table></blockquote>Immediately send any pending outgoing data.</div></div><div class=CToolTip id="tt48"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>sendIQ: function(</td><td class=PParameter nowrap>elem,</td></tr><tr><td></td><td class=PParameter nowrap>callback,</td></tr><tr><td></td><td class=PParameter nowrap>errback,</td></tr><tr><td></td><td class=PParameter nowrap>timeout</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Helper function to send IQ stanzas.</div></div><div class=CToolTip id="tt49"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addTimedHandler: function (</td><td class=PParameter nowrap>period,</td></tr><tr><td></td><td class=PParameter nowrap>handler</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add a timed handler to the connection.</div></div><div class=CToolTip id="tt50"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>deleteTimedHandler: function (</td><td class=PParameter nowrap>handRef</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Delete a timed handler for a connection.</div></div><div class=CToolTip id="tt51"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addHandler: function (</td><td class=PParameter nowrap>handler,</td></tr><tr><td></td><td class=PParameter nowrap>ns,</td></tr><tr><td></td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>type,</td></tr><tr><td></td><td class=PParameter nowrap>id,</td></tr><tr><td></td><td class=PParameter nowrap>from,</td></tr><tr><td></td><td class=PParameter nowrap>options</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add a stanza handler for the connection.</div></div><div class=CToolTip id="tt52"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>deleteHandler: function (</td><td class=PParameter nowrap>handRef</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Delete a stanza handler for a connection.</div></div><div class=CToolTip id="tt53"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>disconnect: function (</td><td class=PParameter nowrap>reason</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Start the graceful disconnection process.</div></div><!--END_ND_TOOLTIPS-->
181   -
182   -
183   -
184   -
185   -<div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div>
186   -
187   -
188   -<script language=JavaScript><!--
189   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
190 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/index.html
... ... @@ -1 +0,0 @@
1   -<html><head><meta http-equiv="Refresh" CONTENT="0; URL=files/core-js.html"></head></html>
2 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/javascript/main.js
... ... @@ -1,836 +0,0 @@
1   -// This file is part of Natural Docs, which is Copyright (C) 2003-2008 Greg Valure
2   -// Natural Docs is licensed under the GPL
3   -
4   -
5   -//
6   -// Browser Styles
7   -// ____________________________________________________________________________
8   -
9   -var agt=navigator.userAgent.toLowerCase();
10   -var browserType;
11   -var browserVer;
12   -
13   -if (agt.indexOf("opera") != -1)
14   - {
15   - browserType = "Opera";
16   -
17   - if (agt.indexOf("opera 7") != -1 || agt.indexOf("opera/7") != -1)
18   - { browserVer = "Opera7"; }
19   - else if (agt.indexOf("opera 8") != -1 || agt.indexOf("opera/8") != -1)
20   - { browserVer = "Opera8"; }
21   - else if (agt.indexOf("opera 9") != -1 || agt.indexOf("opera/9") != -1)
22   - { browserVer = "Opera9"; }
23   - }
24   -
25   -else if (agt.indexOf("applewebkit") != -1)
26   - {
27   - browserType = "Safari";
28   -
29   - if (agt.indexOf("version/3") != -1)
30   - { browserVer = "Safari3"; }
31   - else if (agt.indexOf("safari/4") != -1)
32   - { browserVer = "Safari2"; }
33   - }
34   -
35   -else if (agt.indexOf("khtml") != -1)
36   - {
37   - browserType = "Konqueror";
38   - }
39   -
40   -else if (agt.indexOf("msie") != -1)
41   - {
42   - browserType = "IE";
43   -
44   - if (agt.indexOf("msie 6") != -1)
45   - { browserVer = "IE6"; }
46   - else if (agt.indexOf("msie 7") != -1)
47   - { browserVer = "IE7"; }
48   - }
49   -
50   -else if (agt.indexOf("gecko") != -1)
51   - {
52   - browserType = "Firefox";
53   -
54   - if (agt.indexOf("rv:1.7") != -1)
55   - { browserVer = "Firefox1"; }
56   - else if (agt.indexOf("rv:1.8)") != -1 || agt.indexOf("rv:1.8.0") != -1)
57   - { browserVer = "Firefox15"; }
58   - else if (agt.indexOf("rv:1.8.1") != -1)
59   - { browserVer = "Firefox2"; }
60   - }
61   -
62   -
63   -//
64   -// Support Functions
65   -// ____________________________________________________________________________
66   -
67   -
68   -function GetXPosition(item)
69   - {
70   - var position = 0;
71   -
72   - if (item.offsetWidth != null)
73   - {
74   - while (item != document.body && item != null)
75   - {
76   - position += item.offsetLeft;
77   - item = item.offsetParent;
78   - };
79   - };
80   -
81   - return position;
82   - };
83   -
84   -
85   -function GetYPosition(item)
86   - {
87   - var position = 0;
88   -
89   - if (item.offsetWidth != null)
90   - {
91   - while (item != document.body && item != null)
92   - {
93   - position += item.offsetTop;
94   - item = item.offsetParent;
95   - };
96   - };
97   -
98   - return position;
99   - };
100   -
101   -
102   -function MoveToPosition(item, x, y)
103   - {
104   - // Opera 5 chokes on the px extension, so it can use the Microsoft one instead.
105   -
106   - if (item.style.left != null)
107   - {
108   - item.style.left = x + "px";
109   - item.style.top = y + "px";
110   - }
111   - else if (item.style.pixelLeft != null)
112   - {
113   - item.style.pixelLeft = x;
114   - item.style.pixelTop = y;
115   - };
116   - };
117   -
118   -
119   -//
120   -// Menu
121   -// ____________________________________________________________________________
122   -
123   -
124   -function ToggleMenu(id)
125   - {
126   - if (!window.document.getElementById)
127   - { return; };
128   -
129   - var display = window.document.getElementById(id).style.display;
130   -
131   - if (display == "none")
132   - { display = "block"; }
133   - else
134   - { display = "none"; }
135   -
136   - window.document.getElementById(id).style.display = display;
137   - }
138   -
139   -function HideAllBut(ids, max)
140   - {
141   - if (document.getElementById)
142   - {
143   - ids.sort( function(a,b) { return a - b; } );
144   - var number = 1;
145   -
146   - while (number < max)
147   - {
148   - if (ids.length > 0 && number == ids[0])
149   - { ids.shift(); }
150   - else
151   - {
152   - document.getElementById("MGroupContent" + number).style.display = "none";
153   - };
154   -
155   - number++;
156   - };
157   - };
158   - }
159   -
160   -
161   -//
162   -// Tooltips
163   -// ____________________________________________________________________________
164   -
165   -
166   -var tooltipTimer = 0;
167   -
168   -function ShowTip(event, tooltipID, linkID)
169   - {
170   - if (tooltipTimer)
171   - { clearTimeout(tooltipTimer); };
172   -
173   - var docX = event.clientX + window.pageXOffset;
174   - var docY = event.clientY + window.pageYOffset;
175   -
176   - var showCommand = "ReallyShowTip('" + tooltipID + "', '" + linkID + "', " + docX + ", " + docY + ")";
177   -
178   - tooltipTimer = setTimeout(showCommand, 1000);
179   - }
180   -
181   -function ReallyShowTip(tooltipID, linkID, docX, docY)
182   - {
183   - tooltipTimer = 0;
184   -
185   - var tooltip;
186   - var link;
187   -
188   - if (document.getElementById)
189   - {
190   - tooltip = document.getElementById(tooltipID);
191   - link = document.getElementById(linkID);
192   - }
193   -/* else if (document.all)
194   - {
195   - tooltip = eval("document.all['" + tooltipID + "']");
196   - link = eval("document.all['" + linkID + "']");
197   - }
198   -*/
199   - if (tooltip)
200   - {
201   - var left = GetXPosition(link);
202   - var top = GetYPosition(link);
203   - top += link.offsetHeight;
204   -
205   -
206   - // The fallback method is to use the mouse X and Y relative to the document. We use a separate if and test if its a number
207   - // in case some browser snuck through the above if statement but didn't support everything.
208   -
209   - if (!isFinite(top) || top == 0)
210   - {
211   - left = docX;
212   - top = docY;
213   - }
214   -
215   - // Some spacing to get it out from under the cursor.
216   -
217   - top += 10;
218   -
219   - // Make sure the tooltip doesnt get smushed by being too close to the edge, or in some browsers, go off the edge of the
220   - // page. We do it here because Konqueror does get offsetWidth right even if it doesnt get the positioning right.
221   -
222   - if (tooltip.offsetWidth != null)
223   - {
224   - var width = tooltip.offsetWidth;
225   - var docWidth = document.body.clientWidth;
226   -
227   - if (left + width > docWidth)
228   - { left = docWidth - width - 1; }
229   -
230   - // If there's a horizontal scroll bar we could go past zero because it's using the page width, not the window width.
231   - if (left < 0)
232   - { left = 0; };
233   - }
234   -
235   - MoveToPosition(tooltip, left, top);
236   - tooltip.style.visibility = "visible";
237   - }
238   - }
239   -
240   -function HideTip(tooltipID)
241   - {
242   - if (tooltipTimer)
243   - {
244   - clearTimeout(tooltipTimer);
245   - tooltipTimer = 0;
246   - }
247   -
248   - var tooltip;
249   -
250   - if (document.getElementById)
251   - { tooltip = document.getElementById(tooltipID); }
252   - else if (document.all)
253   - { tooltip = eval("document.all['" + tooltipID + "']"); }
254   -
255   - if (tooltip)
256   - { tooltip.style.visibility = "hidden"; }
257   - }
258   -
259   -
260   -//
261   -// Blockquote fix for IE
262   -// ____________________________________________________________________________
263   -
264   -
265   -function NDOnLoad()
266   - {
267   - if (browserVer == "IE6")
268   - {
269   - var scrollboxes = document.getElementsByTagName('blockquote');
270   -
271   - if (scrollboxes.item(0))
272   - {
273   - NDDoResize();
274   - window.onresize=NDOnResize;
275   - };
276   - };
277   - };
278   -
279   -
280   -var resizeTimer = 0;
281   -
282   -function NDOnResize()
283   - {
284   - if (resizeTimer != 0)
285   - { clearTimeout(resizeTimer); };
286   -
287   - resizeTimer = setTimeout(NDDoResize, 250);
288   - };
289   -
290   -
291   -function NDDoResize()
292   - {
293   - var scrollboxes = document.getElementsByTagName('blockquote');
294   -
295   - var i;
296   - var item;
297   -
298   - i = 0;
299   - while (item = scrollboxes.item(i))
300   - {
301   - item.style.width = 100;
302   - i++;
303   - };
304   -
305   - i = 0;
306   - while (item = scrollboxes.item(i))
307   - {
308   - item.style.width = item.parentNode.offsetWidth;
309   - i++;
310   - };
311   -
312   - clearTimeout(resizeTimer);
313   - resizeTimer = 0;
314   - }
315   -
316   -
317   -
318   -/* ________________________________________________________________________________________________________
319   -
320   - Class: SearchPanel
321   - ________________________________________________________________________________________________________
322   -
323   - A class handling everything associated with the search panel.
324   -
325   - Parameters:
326   -
327   - name - The name of the global variable that will be storing this instance. Is needed to be able to set timeouts.
328   - mode - The mode the search is going to work in. Pass <NaturalDocs::Builder::Base->CommandLineOption()>, so the
329   - value will be something like "HTML" or "FramedHTML".
330   -
331   - ________________________________________________________________________________________________________
332   -*/
333   -
334   -
335   -function SearchPanel(name, mode, resultsPath)
336   - {
337   - if (!name || !mode || !resultsPath)
338   - { alert("Incorrect parameters to SearchPanel."); };
339   -
340   -
341   - // Group: Variables
342   - // ________________________________________________________________________
343   -
344   - /*
345   - var: name
346   - The name of the global variable that will be storing this instance of the class.
347   - */
348   - this.name = name;
349   -
350   - /*
351   - var: mode
352   - The mode the search is going to work in, such as "HTML" or "FramedHTML".
353   - */
354   - this.mode = mode;
355   -
356   - /*
357   - var: resultsPath
358   - The relative path from the current HTML page to the results page directory.
359   - */
360   - this.resultsPath = resultsPath;
361   -
362   - /*
363   - var: keyTimeout
364   - The timeout used between a keystroke and when a search is performed.
365   - */
366   - this.keyTimeout = 0;
367   -
368   - /*
369   - var: keyTimeoutLength
370   - The length of <keyTimeout> in thousandths of a second.
371   - */
372   - this.keyTimeoutLength = 500;
373   -
374   - /*
375   - var: lastSearchValue
376   - The last search string executed, or an empty string if none.
377   - */
378   - this.lastSearchValue = "";
379   -
380   - /*
381   - var: lastResultsPage
382   - The last results page. The value is only relevant if <lastSearchValue> is set.
383   - */
384   - this.lastResultsPage = "";
385   -
386   - /*
387   - var: deactivateTimeout
388   -
389   - The timeout used between when a control is deactivated and when the entire panel is deactivated. Is necessary
390   - because a control may be deactivated in favor of another control in the same panel, in which case it should stay
391   - active.
392   - */
393   - this.deactivateTimout = 0;
394   -
395   - /*
396   - var: deactivateTimeoutLength
397   - The length of <deactivateTimeout> in thousandths of a second.
398   - */
399   - this.deactivateTimeoutLength = 200;
400   -
401   -
402   -
403   -
404   - // Group: DOM Elements
405   - // ________________________________________________________________________
406   -
407   -
408   - // Function: DOMSearchField
409   - this.DOMSearchField = function()
410   - { return document.getElementById("MSearchField"); };
411   -
412   - // Function: DOMSearchType
413   - this.DOMSearchType = function()
414   - { return document.getElementById("MSearchType"); };
415   -
416   - // Function: DOMPopupSearchResults
417   - this.DOMPopupSearchResults = function()
418   - { return document.getElementById("MSearchResults"); };
419   -
420   - // Function: DOMPopupSearchResultsWindow
421   - this.DOMPopupSearchResultsWindow = function()
422   - { return document.getElementById("MSearchResultsWindow"); };
423   -
424   - // Function: DOMSearchPanel
425   - this.DOMSearchPanel = function()
426   - { return document.getElementById("MSearchPanel"); };
427   -
428   -
429   -
430   -
431   - // Group: Event Handlers
432   - // ________________________________________________________________________
433   -
434   -
435   - /*
436   - Function: OnSearchFieldFocus
437   - Called when focus is added or removed from the search field.
438   - */
439   - this.OnSearchFieldFocus = function(isActive)
440   - {
441   - this.Activate(isActive);
442   - };
443   -
444   -
445   - /*
446   - Function: OnSearchFieldChange
447   - Called when the content of the search field is changed.
448   - */
449   - this.OnSearchFieldChange = function()
450   - {
451   - if (this.keyTimeout)
452   - {
453   - clearTimeout(this.keyTimeout);
454   - this.keyTimeout = 0;
455   - };
456   -
457   - var searchValue = this.DOMSearchField().value.replace(/ +/g, "");
458   -
459   - if (searchValue != this.lastSearchValue)
460   - {
461   - if (searchValue != "")
462   - {
463   - this.keyTimeout = setTimeout(this.name + ".Search()", this.keyTimeoutLength);
464   - }
465   - else
466   - {
467   - if (this.mode == "HTML")
468   - { this.DOMPopupSearchResultsWindow().style.display = "none"; };
469   - this.lastSearchValue = "";
470   - };
471   - };
472   - };
473   -
474   -
475   - /*
476   - Function: OnSearchTypeFocus
477   - Called when focus is added or removed from the search type.
478   - */
479   - this.OnSearchTypeFocus = function(isActive)
480   - {
481   - this.Activate(isActive);
482   - };
483   -
484   -
485   - /*
486   - Function: OnSearchTypeChange
487   - Called when the search type is changed.
488   - */
489   - this.OnSearchTypeChange = function()
490   - {
491   - var searchValue = this.DOMSearchField().value.replace(/ +/g, "");
492   -
493   - if (searchValue != "")
494   - {
495   - this.Search();
496   - };
497   - };
498   -
499   -
500   -
501   - // Group: Action Functions
502   - // ________________________________________________________________________
503   -
504   -
505   - /*
506   - Function: CloseResultsWindow
507   - Closes the results window.
508   - */
509   - this.CloseResultsWindow = function()
510   - {
511   - this.DOMPopupSearchResultsWindow().style.display = "none";
512   - this.Activate(false, true);
513   - };
514   -
515   -
516   - /*
517   - Function: Search
518   - Performs a search.
519   - */
520   - this.Search = function()
521   - {
522   - this.keyTimeout = 0;
523   -
524   - var searchValue = this.DOMSearchField().value.replace(/^ +/, "");
525   - var searchTopic = this.DOMSearchType().value;
526   -
527   - var pageExtension = searchValue.substr(0,1);
528   -
529   - if (pageExtension.match(/^[a-z]/i))
530   - { pageExtension = pageExtension.toUpperCase(); }
531   - else if (pageExtension.match(/^[0-9]/))
532   - { pageExtension = 'Numbers'; }
533   - else
534   - { pageExtension = "Symbols"; };
535   -
536   - var resultsPage;
537   - var resultsPageWithSearch;
538   - var hasResultsPage;
539   -
540   - // indexSectionsWithContent is defined in searchdata.js
541   - if (indexSectionsWithContent[searchTopic][pageExtension] == true)
542   - {
543   - resultsPage = this.resultsPath + '/' + searchTopic + pageExtension + '.html';
544   - resultsPageWithSearch = resultsPage+'?'+escape(searchValue);
545   - hasResultsPage = true;
546   - }
547   - else
548   - {
549   - resultsPage = this.resultsPath + '/NoResults.html';
550   - resultsPageWithSearch = resultsPage;
551   - hasResultsPage = false;
552   - };
553   -
554   - var resultsFrame;
555   - if (this.mode == "HTML")
556   - { resultsFrame = window.frames.MSearchResults; }
557   - else if (this.mode == "FramedHTML")
558   - { resultsFrame = window.top.frames['Content']; };
559   -
560   -
561   - if (resultsPage != this.lastResultsPage ||
562   -
563   - // Bug in IE. If everything becomes hidden in a run, none of them will be able to be reshown in the next for some
564   - // reason. It counts the right number of results, and you can even read the display as "block" after setting it, but it
565   - // just doesn't work in IE 6 or IE 7. So if we're on the right page but the previous search had no results, reload the
566   - // page anyway to get around the bug.
567   - (browserType == "IE" && hasResultsPage &&
568   - (!resultsFrame.searchResults || resultsFrame.searchResults.lastMatchCount == 0)) )
569   -
570   - {
571   - resultsFrame.location.href = resultsPageWithSearch;
572   - }
573   -
574   - // So if the results page is right and there's no IE bug, reperform the search on the existing page. We have to check if there
575   - // are results because NoResults.html doesn't have any JavaScript, and it would be useless to do anything on that page even
576   - // if it did.
577   - else if (hasResultsPage)
578   - {
579   - // We need to check if this exists in case the frame is present but didn't finish loading.
580   - if (resultsFrame.searchResults)
581   - { resultsFrame.searchResults.Search(searchValue); }
582   -
583   - // Otherwise just reload instead of waiting.
584   - else
585   - { resultsFrame.location.href = resultsPageWithSearch; };
586   - };
587   -
588   -
589   - var domPopupSearchResultsWindow = this.DOMPopupSearchResultsWindow();
590   -
591   - if (this.mode == "HTML" && domPopupSearchResultsWindow.style.display != "block")
592   - {
593   - var domSearchType = this.DOMSearchType();
594   -
595   - var left = GetXPosition(domSearchType);
596   - var top = GetYPosition(domSearchType) + domSearchType.offsetHeight;
597   -
598   - MoveToPosition(domPopupSearchResultsWindow, left, top);
599   - domPopupSearchResultsWindow.style.display = 'block';
600   - };
601   -
602   -
603   - this.lastSearchValue = searchValue;
604   - this.lastResultsPage = resultsPage;
605   - };
606   -
607   -
608   -
609   - // Group: Activation Functions
610   - // Functions that handle whether the entire panel is active or not.
611   - // ________________________________________________________________________
612   -
613   -
614   - /*
615   - Function: Activate
616   -
617   - Activates or deactivates the search panel, resetting things to their default values if necessary. You can call this on every
618   - control's OnBlur() and it will handle not deactivating the entire panel when focus is just switching between them transparently.
619   -
620   - Parameters:
621   -
622   - isActive - Whether you're activating or deactivating the panel.
623   - ignoreDeactivateDelay - Set if you're positive the action will deactivate the panel and thus want to skip the delay.
624   - */
625   - this.Activate = function(isActive, ignoreDeactivateDelay)
626   - {
627   - // We want to ignore isActive being false while the results window is open.
628   - if (isActive || (this.mode == "HTML" && this.DOMPopupSearchResultsWindow().style.display == "block"))
629   - {
630   - if (this.inactivateTimeout)
631   - {
632   - clearTimeout(this.inactivateTimeout);
633   - this.inactivateTimeout = 0;
634   - };
635   -
636   - this.DOMSearchPanel().className = 'MSearchPanelActive';
637   -
638   - var searchField = this.DOMSearchField();
639   -
640   - if (searchField.value == 'Search')
641   - { searchField.value = ""; }
642   - }
643   - else if (!ignoreDeactivateDelay)
644   - {
645   - this.inactivateTimeout = setTimeout(this.name + ".InactivateAfterTimeout()", this.inactivateTimeoutLength);
646   - }
647   - else
648   - {
649   - this.InactivateAfterTimeout();
650   - };
651   - };
652   -
653   -
654   - /*
655   - Function: InactivateAfterTimeout
656   -
657   - Called by <inactivateTimeout>, which is set by <Activate()>. Inactivation occurs on a timeout because a control may
658   - receive OnBlur() when focus is really transferring to another control in the search panel. In this case we don't want to
659   - actually deactivate the panel because not only would that cause a visible flicker but it could also reset the search value.
660   - So by doing it on a timeout instead, there's a short period where the second control's OnFocus() can cancel the deactivation.
661   - */
662   - this.InactivateAfterTimeout = function()
663   - {
664   - this.inactivateTimeout = 0;
665   -
666   - this.DOMSearchPanel().className = 'MSearchPanelInactive';
667   - this.DOMSearchField().value = "Search";
668   -
669   - this.lastSearchValue = "";
670   - this.lastResultsPage = "";
671   - };
672   - };
673   -
674   -
675   -
676   -
677   -/* ________________________________________________________________________________________________________
678   -
679   - Class: SearchResults
680   - _________________________________________________________________________________________________________
681   -
682   - The class that handles everything on the search results page.
683   - _________________________________________________________________________________________________________
684   -*/
685   -
686   -
687   -function SearchResults(name, mode)
688   - {
689   - /*
690   - var: mode
691   - The mode the search is going to work in, such as "HTML" or "FramedHTML".
692   - */
693   - this.mode = mode;
694   -
695   - /*
696   - var: lastMatchCount
697   - The number of matches from the last run of <Search()>.
698   - */
699   - this.lastMatchCount = 0;
700   -
701   -
702   - /*
703   - Function: Toggle
704   - Toggles the visibility of the passed element ID.
705   - */
706   - this.Toggle = function(id)
707   - {
708   - if (this.mode == "FramedHTML")
709   - { return; };
710   -
711   - var parentElement = document.getElementById(id);
712   -
713   - var element = parentElement.firstChild;
714   -
715   - while (element && element != parentElement)
716   - {
717   - if (element.nodeName == 'DIV' && element.className == 'ISubIndex')
718   - {
719   - if (element.style.display == 'block')
720   - { element.style.display = "none"; }
721   - else
722   - { element.style.display = 'block'; }
723   - };
724   -
725   - if (element.nodeName == 'DIV' && element.hasChildNodes())
726   - { element = element.firstChild; }
727   - else if (element.nextSibling)
728   - { element = element.nextSibling; }
729   - else
730   - {
731   - do
732   - {
733   - element = element.parentNode;
734   - }
735   - while (element && element != parentElement && !element.nextSibling);
736   -
737   - if (element && element != parentElement)
738   - { element = element.nextSibling; };
739   - };
740   - };
741   - };
742   -
743   -
744   - /*
745   - Function: Search
746   -
747   - Searches for the passed string. If there is no parameter, it takes it from the URL query.
748   -
749   - Always returns true, since other documents may try to call it and that may or may not be possible.
750   - */
751   - this.Search = function(search)
752   - {
753   - if (!search)
754   - {
755   - search = window.location.search;
756   - search = search.substring(1); // Remove the leading ?
757   - search = unescape(search);
758   - };
759   -
760   - search = search.replace(/^ +/, "");
761   - search = search.replace(/ +$/, "");
762   - search = search.toLowerCase();
763   -
764   - if (search.match(/[^a-z0-9]/)) // Just a little speedup so it doesn't have to go through the below unnecessarily.
765   - {
766   - search = search.replace(/\_/g, "_und");
767   - search = search.replace(/\ +/gi, "_spc");
768   - search = search.replace(/\~/g, "_til");
769   - search = search.replace(/\!/g, "_exc");
770   - search = search.replace(/\@/g, "_att");
771   - search = search.replace(/\#/g, "_num");
772   - search = search.replace(/\$/g, "_dol");
773   - search = search.replace(/\%/g, "_pct");
774   - search = search.replace(/\^/g, "_car");
775   - search = search.replace(/\&/g, "_amp");
776   - search = search.replace(/\*/g, "_ast");
777   - search = search.replace(/\(/g, "_lpa");
778   - search = search.replace(/\)/g, "_rpa");
779   - search = search.replace(/\-/g, "_min");
780   - search = search.replace(/\+/g, "_plu");
781   - search = search.replace(/\=/g, "_equ");
782   - search = search.replace(/\{/g, "_lbc");
783   - search = search.replace(/\}/g, "_rbc");
784   - search = search.replace(/\[/g, "_lbk");
785   - search = search.replace(/\]/g, "_rbk");
786   - search = search.replace(/\:/g, "_col");
787   - search = search.replace(/\;/g, "_sco");
788   - search = search.replace(/\"/g, "_quo");
789   - search = search.replace(/\'/g, "_apo");
790   - search = search.replace(/\</g, "_lan");
791   - search = search.replace(/\>/g, "_ran");
792   - search = search.replace(/\,/g, "_com");
793   - search = search.replace(/\./g, "_per");
794   - search = search.replace(/\?/g, "_que");
795   - search = search.replace(/\//g, "_sla");
796   - search = search.replace(/[^a-z0-9\_]i/gi, "_zzz");
797   - };
798   -
799   - var resultRows = document.getElementsByTagName("div");
800   - var matches = 0;
801   -
802   - var i = 0;
803   - while (i < resultRows.length)
804   - {
805   - var row = resultRows.item(i);
806   -
807   - if (row.className == "SRResult")
808   - {
809   - var rowMatchName = row.id.toLowerCase();
810   - rowMatchName = rowMatchName.replace(/^sr\d*_/, '');
811   -
812   - if (search.length <= rowMatchName.length && rowMatchName.substr(0, search.length) == search)
813   - {
814   - row.style.display = "block";
815   - matches++;
816   - }
817   - else
818   - { row.style.display = "none"; };
819   - };
820   -
821   - i++;
822   - };
823   -
824   - document.getElementById("Searching").style.display="none";
825   -
826   - if (matches == 0)
827   - { document.getElementById("NoMatches").style.display="block"; }
828   - else
829   - { document.getElementById("NoMatches").style.display="none"; }
830   -
831   - this.lastMatchCount = matches;
832   -
833   - return true;
834   - };
835   - };
836   -
public/javascripts/strophejs-1.0.1/doc/javascript/searchdata.js
... ... @@ -1,152 +0,0 @@
1   -var indexSectionsWithContent = {
2   - "General": {
3   - "Symbols": true,
4   - "Numbers": false,
5   - "A": true,
6   - "B": true,
7   - "C": true,
8   - "D": true,
9   - "E": true,
10   - "F": true,
11   - "G": true,
12   - "H": true,
13   - "I": true,
14   - "J": false,
15   - "K": false,
16   - "L": true,
17   - "M": true,
18   - "N": false,
19   - "O": false,
20   - "P": true,
21   - "Q": false,
22   - "R": true,
23   - "S": true,
24   - "T": true,
25   - "U": true,
26   - "V": true,
27   - "W": true,
28   - "X": true,
29   - "Y": false,
30   - "Z": false
31   - },
32   - "Functions": {
33   - "Symbols": true,
34   - "Numbers": false,
35   - "A": true,
36   - "B": true,
37   - "C": true,
38   - "D": true,
39   - "E": true,
40   - "F": true,
41   - "G": true,
42   - "H": false,
43   - "I": true,
44   - "J": false,
45   - "K": false,
46   - "L": true,
47   - "M": false,
48   - "N": false,
49   - "O": false,
50   - "P": true,
51   - "Q": false,
52   - "R": true,
53   - "S": true,
54   - "T": true,
55   - "U": true,
56   - "V": false,
57   - "W": true,
58   - "X": true,
59   - "Y": false,
60   - "Z": false
61   - },
62   - "Files": {
63   - "Symbols": false,
64   - "Numbers": false,
65   - "A": false,
66   - "B": false,
67   - "C": false,
68   - "D": false,
69   - "E": false,
70   - "F": false,
71   - "G": false,
72   - "H": false,
73   - "I": false,
74   - "J": false,
75   - "K": false,
76   - "L": false,
77   - "M": false,
78   - "N": false,
79   - "O": false,
80   - "P": false,
81   - "Q": false,
82   - "R": false,
83   - "S": true,
84   - "T": false,
85   - "U": false,
86   - "V": false,
87   - "W": false,
88   - "X": false,
89   - "Y": false,
90   - "Z": false
91   - },
92   - "Constants": {
93   - "Symbols": false,
94   - "Numbers": false,
95   - "A": true,
96   - "B": true,
97   - "C": true,
98   - "D": true,
99   - "E": true,
100   - "F": true,
101   - "G": false,
102   - "H": true,
103   - "I": true,
104   - "J": false,
105   - "K": false,
106   - "L": true,
107   - "M": true,
108   - "N": false,
109   - "O": false,
110   - "P": true,
111   - "Q": false,
112   - "R": true,
113   - "S": true,
114   - "T": false,
115   - "U": false,
116   - "V": true,
117   - "W": true,
118   - "X": true,
119   - "Y": false,
120   - "Z": false
121   - },
122   - "Classes": {
123   - "Symbols": false,
124   - "Numbers": false,
125   - "A": false,
126   - "B": false,
127   - "C": false,
128   - "D": false,
129   - "E": false,
130   - "F": false,
131   - "G": false,
132   - "H": false,
133   - "I": false,
134   - "J": false,
135   - "K": false,
136   - "L": false,
137   - "M": false,
138   - "N": false,
139   - "O": false,
140   - "P": false,
141   - "Q": false,
142   - "R": false,
143   - "S": true,
144   - "T": false,
145   - "U": false,
146   - "V": false,
147   - "W": false,
148   - "X": false,
149   - "Y": false,
150   - "Z": false
151   - }
152   - }
153 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/ClassesS.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_Strophe><div class=IEntry><a href="../files/core-js.html#Strophe" target=_parent class=ISymbol>Strophe</a></div></div><div class=SRResult id=SR_Strophe_perBuilder><div class=IEntry><a href="../files/core-js.html#Strophe.Builder" target=_parent class=ISymbol>Strophe.<wbr>Builder</a></div></div><div class=SRResult id=SR_Strophe_perConnection><div class=IEntry><a href="../files/core-js.html#Strophe.Connection" target=_parent class=ISymbol>Strophe.<wbr>Connection</a></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/ConstantsA.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_ATTACHED><div class=IEntry><a href="../files/core-js.html#Strophe.Status.ATTACHED" target=_parent class=ISymbol>ATTACHED</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_AUTH><div class=IEntry><a href="../files/core-js.html#Strophe.NS.AUTH" target=_parent class=ISymbol>AUTH</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_AUTHENTICATING><div class=IEntry><a href="../files/core-js.html#Strophe.Status.AUTHENTICATING" target=_parent class=ISymbol>AUTHENTICATING</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_AUTHFAIL><div class=IEntry><a href="../files/core-js.html#Strophe.Status.AUTHFAIL" target=_parent class=ISymbol>AUTHFAIL</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/ConstantsB.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_BIND><div class=IEntry><a href="../files/core-js.html#Strophe.NS.BIND" target=_parent class=ISymbol>BIND</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_BOSH><div class=IEntry><a href="../files/core-js.html#Strophe.NS.BOSH" target=_parent class=ISymbol>BOSH</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/ConstantsC.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_CLIENT><div class=IEntry><a href="../files/core-js.html#Strophe.NS.CLIENT" target=_parent class=ISymbol>CLIENT</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_CONNECTED><div class=IEntry><a href="../files/core-js.html#Strophe.Status.CONNECTED" target=_parent class=ISymbol>CONNECTED</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_CONNECTING><div class=IEntry><a href="../files/core-js.html#Strophe.Status.CONNECTING" target=_parent class=ISymbol>CONNECTING</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_Connection_spcStatus_spcConstants><div class=IEntry><a href="../files/core-js.html#Strophe.Connection_Status_Constants" target=_parent class=ISymbol>Connection Status Constants</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_CONNFAIL><div class=IEntry><a href="../files/core-js.html#Strophe.Status.CONNFAIL" target=_parent class=ISymbol>CONNFAIL</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/ConstantsD.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_DEBUG><div class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.DEBUG" target=_parent class=ISymbol>DEBUG</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></div></div><div class=SRResult id=SR_DISCO_undINFO><div class=IEntry><a href="../files/core-js.html#Strophe.NS.DISCO_INFO" target=_parent class=ISymbol>DISCO_INFO</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_DISCO_undITEMS><div class=IEntry><a href="../files/core-js.html#Strophe.NS.DISCO_ITEMS" target=_parent class=ISymbol>DISCO_ITEMS</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_DISCONNECTED><div class=IEntry><a href="../files/core-js.html#Strophe.Status.DISCONNECTED" target=_parent class=ISymbol>DISCONNECTED</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_DISCONNECTING><div class=IEntry><a href="../files/core-js.html#Strophe.Status.DISCONNECTING" target=_parent class=ISymbol>DISCONNECTING</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/ConstantsE.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_ERROR><div class=IEntry><a href="javascript:searchResults.Toggle('SR_ERROR')" class=ISymbol>ERROR</a><div class=ISubIndex><a href="../files/core-js.html#Strophe.LogLevel.ERROR" target=_parent class=IParent>Strophe.<wbr>LogLevel</a><a href="../files/core-js.html#Strophe.Status.ERROR" target=_parent class=IParent>Strophe.<wbr>Status</a></div></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/ConstantsF.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_FATAL><div class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.FATAL" target=_parent class=ISymbol>FATAL</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/ConstantsH.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_HTTPBIND><div class=IEntry><a href="../files/core-js.html#Strophe.NS.HTTPBIND" target=_parent class=ISymbol>HTTPBIND</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/ConstantsI.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_INFO><div class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.INFO" target=_parent class=ISymbol>INFO</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/ConstantsL.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_Log_spcLevel_spcConstants><div class=IEntry><a href="../files/core-js.html#Strophe.Log_Level_Constants" target=_parent class=ISymbol>Log Level Constants</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/ConstantsM.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_MUC><div class=IEntry><a href="../files/core-js.html#Strophe.NS.MUC" target=_parent class=ISymbol>MUC</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/ConstantsP.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_PROFILE><div class=IEntry><a href="../files/core-js.html#Strophe.NS.PROFILE" target=_parent class=ISymbol>PROFILE</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/ConstantsR.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_ROSTER><div class=IEntry><a href="../files/core-js.html#Strophe.NS.ROSTER" target=_parent class=ISymbol>ROSTER</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/ConstantsS.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_SASL><div class=IEntry><a href="../files/core-js.html#Strophe.NS.SASL" target=_parent class=ISymbol>SASL</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_SESSION><div class=IEntry><a href="../files/core-js.html#Strophe.NS.SESSION" target=_parent class=ISymbol>SESSION</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_STREAM><div class=IEntry><a href="../files/core-js.html#Strophe.NS.STREAM" target=_parent class=ISymbol>STREAM</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/ConstantsV.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_VERSION><div class=IEntry><a href="../files/core-js.html#Strophe.VERSION" target=_parent class=ISymbol>VERSION</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/ConstantsW.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_WARN><div class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.WARN" target=_parent class=ISymbol>WARN</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/ConstantsX.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_XMPP_spcNamespace_spcConstants><div class=IEntry><a href="../files/core-js.html#Strophe.XMPP_Namespace_Constants" target=_parent class=ISymbol>XMPP Namespace Constants</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/FilesS.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_strophe_perjs><div class=IEntry><a href="../files/core-js.html#strophe.js" target=_parent class=ISymbol>strophe.js</a></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/FunctionsA.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_addConnectionPlugin><div class=IEntry><a href="../files/core-js.html#Strophe.addConnectionPlugin" target=_parent class=ISymbol>addConnectionPlugin</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_addHandler><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.addHandler" target=_parent class=ISymbol>addHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_addNamespace><div class=IEntry><a href="../files/core-js.html#Strophe.addNamespace" target=_parent class=ISymbol>addNamespace</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_addTimedHandler><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.addTimedHandler" target=_parent class=ISymbol>addTimedHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_attach><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.attach" target=_parent class=ISymbol>attach</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_attrs><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.attrs" target=_parent class=ISymbol>attrs</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/FunctionsB.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_Builder><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.Strophe.Builder" target=_parent class=ISymbol>Builder</a>, <span class=IParent>Strophe.<wbr>Builder.<wbr>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/FunctionsC.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_c><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.c" target=_parent class=ISymbol>c</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_cnode><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.cnode" target=_parent class=ISymbol>cnode</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_connect><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.connect" target=_parent class=ISymbol>connect</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_Connection><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.Strophe.Connection" target=_parent class=ISymbol>Connection</a>, <span class=IParent>Strophe.<wbr>Connection.<wbr>Strophe</span></div></div><div class=SRResult id=SR_copyElement><div class=IEntry><a href="../files/core-js.html#Strophe.copyElement" target=_parent class=ISymbol>copyElement</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/FunctionsD.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_debug><div class=IEntry><a href="../files/core-js.html#Strophe.debug" target=_parent class=ISymbol>debug</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_deleteHandler><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.deleteHandler" target=_parent class=ISymbol>deleteHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_deleteTimedHandler><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.deleteTimedHandler" target=_parent class=ISymbol>deleteTimedHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_disconnect><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.disconnect" target=_parent class=ISymbol>disconnect</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/FunctionsE.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_error><div class=IEntry><a href="../files/core-js.html#Strophe.error" target=_parent class=ISymbol>error</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_escapeNode><div class=IEntry><a href="../files/core-js.html#Strophe.escapeNode" target=_parent class=ISymbol>escapeNode</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/FunctionsF.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_fatal><div class=IEntry><a href="../files/core-js.html#Strophe.fatal" target=_parent class=ISymbol>fatal</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_flush><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.flush" target=_parent class=ISymbol>flush</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_forEachChild><div class=IEntry><a href="../files/core-js.html#Strophe.forEachChild" target=_parent class=ISymbol>forEachChild</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/FunctionsG.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_getBareJidFromJid><div class=IEntry><a href="../files/core-js.html#Strophe.getBareJidFromJid" target=_parent class=ISymbol>getBareJidFromJid</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getDomainFromJid><div class=IEntry><a href="../files/core-js.html#Strophe.getDomainFromJid" target=_parent class=ISymbol>getDomainFromJid</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getNodeFromJid><div class=IEntry><a href="../files/core-js.html#Strophe.getNodeFromJid" target=_parent class=ISymbol>getNodeFromJid</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getResourceFromJid><div class=IEntry><a href="../files/core-js.html#Strophe.getResourceFromJid" target=_parent class=ISymbol>getResourceFromJid</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getText><div class=IEntry><a href="../files/core-js.html#Strophe.getText" target=_parent class=ISymbol>getText</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getUniqueId><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.getUniqueId" target=_parent class=ISymbol>getUniqueId</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/FunctionsI.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_info><div class=IEntry><a href="../files/core-js.html#Strophe.info" target=_parent class=ISymbol>info</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_isTagEqual><div class=IEntry><a href="../files/core-js.html#Strophe.isTagEqual" target=_parent class=ISymbol>isTagEqual</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/FunctionsL.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_log><div class=IEntry><a href="../files/core-js.html#Strophe.log" target=_parent class=ISymbol>log</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/FunctionsP.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_pause><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.pause" target=_parent class=ISymbol>pause</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/FunctionsR.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_rawInput><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.rawInput" target=_parent class=ISymbol>rawInput</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_rawOutput><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.rawOutput" target=_parent class=ISymbol>rawOutput</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_reset><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.reset" target=_parent class=ISymbol>reset</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_resume><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.resume" target=_parent class=ISymbol>resume</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/FunctionsS.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_send><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.send" target=_parent class=ISymbol>send</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_sendIQ><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.sendIQ" target=_parent class=ISymbol>sendIQ</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_serialize><div class=IEntry><a href="../files/core-js.html#Strophe.serialize" target=_parent class=ISymbol>serialize</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/FunctionsSymbols.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR__dolbuild><div class=IEntry><a href="../files/core-js.html#$build" target=_parent class=ISymbol>$build</a></div></div><div class=SRResult id=SR__doliq><div class=IEntry><a href="../files/core-js.html#$iq" target=_parent class=ISymbol>$iq</a></div></div><div class=SRResult id=SR__dolmsg><div class=IEntry><a href="../files/core-js.html#$msg" target=_parent class=ISymbol>$msg</a></div></div><div class=SRResult id=SR__dolpres><div class=IEntry><a href="../files/core-js.html#$pres" target=_parent class=ISymbol>$pres</a></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/FunctionsT.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_t><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.t" target=_parent class=ISymbol>t</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_toString><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.toString" target=_parent class=ISymbol>toString</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_tree><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.tree" target=_parent class=ISymbol>tree</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/FunctionsU.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_unescapeNode><div class=IEntry><a href="../files/core-js.html#Strophe.unescapeNode" target=_parent class=ISymbol>unescapeNode</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_up><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.up" target=_parent class=ISymbol>up</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/FunctionsW.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_warn><div class=IEntry><a href="../files/core-js.html#Strophe.warn" target=_parent class=ISymbol>warn</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/FunctionsX.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_xmlElement><div class=IEntry><a href="../files/core-js.html#Strophe.xmlElement" target=_parent class=ISymbol>xmlElement</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_xmlescape><div class=IEntry><a href="../files/core-js.html#Strophe.xmlescape" target=_parent class=ISymbol>xmlescape</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_xmlInput><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.xmlInput" target=_parent class=ISymbol>xmlInput</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_xmlOutput><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.xmlOutput" target=_parent class=ISymbol>xmlOutput</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_xmlTextNode><div class=IEntry><a href="../files/core-js.html#Strophe.xmlTextNode" target=_parent class=ISymbol>xmlTextNode</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/GeneralA.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_addConnectionPlugin><div class=IEntry><a href="../files/core-js.html#Strophe.addConnectionPlugin" target=_parent class=ISymbol>addConnectionPlugin</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_addHandler><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.addHandler" target=_parent class=ISymbol>addHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_addNamespace><div class=IEntry><a href="../files/core-js.html#Strophe.addNamespace" target=_parent class=ISymbol>addNamespace</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_addTimedHandler><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.addTimedHandler" target=_parent class=ISymbol>addTimedHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_attach><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.attach" target=_parent class=ISymbol>attach</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_ATTACHED><div class=IEntry><a href="../files/core-js.html#Strophe.Status.ATTACHED" target=_parent class=ISymbol>ATTACHED</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_attrs><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.attrs" target=_parent class=ISymbol>attrs</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_AUTH><div class=IEntry><a href="../files/core-js.html#Strophe.NS.AUTH" target=_parent class=ISymbol>AUTH</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_AUTHENTICATING><div class=IEntry><a href="../files/core-js.html#Strophe.Status.AUTHENTICATING" target=_parent class=ISymbol>AUTHENTICATING</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_AUTHFAIL><div class=IEntry><a href="../files/core-js.html#Strophe.Status.AUTHFAIL" target=_parent class=ISymbol>AUTHFAIL</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/GeneralB.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_BIND><div class=IEntry><a href="../files/core-js.html#Strophe.NS.BIND" target=_parent class=ISymbol>BIND</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_BOSH><div class=IEntry><a href="../files/core-js.html#Strophe.NS.BOSH" target=_parent class=ISymbol>BOSH</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_Builder><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.Strophe.Builder" target=_parent class=ISymbol>Builder</a>, <span class=IParent>Strophe.<wbr>Builder.<wbr>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/GeneralC.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_c><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.c" target=_parent class=ISymbol>c</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_CLIENT><div class=IEntry><a href="../files/core-js.html#Strophe.NS.CLIENT" target=_parent class=ISymbol>CLIENT</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_cnode><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.cnode" target=_parent class=ISymbol>cnode</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_connect><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.connect" target=_parent class=ISymbol>connect</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_CONNECTED><div class=IEntry><a href="../files/core-js.html#Strophe.Status.CONNECTED" target=_parent class=ISymbol>CONNECTED</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_CONNECTING><div class=IEntry><a href="../files/core-js.html#Strophe.Status.CONNECTING" target=_parent class=ISymbol>CONNECTING</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_Connection><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.Strophe.Connection" target=_parent class=ISymbol>Connection</a>, <span class=IParent>Strophe.<wbr>Connection.<wbr>Strophe</span></div></div><div class=SRResult id=SR_Connection_spcStatus_spcConstants><div class=IEntry><a href="../files/core-js.html#Strophe.Connection_Status_Constants" target=_parent class=ISymbol>Connection Status Constants</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_CONNFAIL><div class=IEntry><a href="../files/core-js.html#Strophe.Status.CONNFAIL" target=_parent class=ISymbol>CONNFAIL</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_Constants><div class=IEntry><a href="../files/core-js.html#Strophe.Constants" target=_parent class=ISymbol>Constants</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_copyElement><div class=IEntry><a href="../files/core-js.html#Strophe.copyElement" target=_parent class=ISymbol>copyElement</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/GeneralD.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_debug><div class=IEntry><a href="../files/core-js.html#Strophe.debug" target=_parent class=ISymbol>debug</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR2_DEBUG><div class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.DEBUG" target=_parent class=ISymbol>DEBUG</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></div></div><div class=SRResult id=SR_deleteHandler><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.deleteHandler" target=_parent class=ISymbol>deleteHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_deleteTimedHandler><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.deleteTimedHandler" target=_parent class=ISymbol>deleteTimedHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_DISCO_undINFO><div class=IEntry><a href="../files/core-js.html#Strophe.NS.DISCO_INFO" target=_parent class=ISymbol>DISCO_INFO</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_DISCO_undITEMS><div class=IEntry><a href="../files/core-js.html#Strophe.NS.DISCO_ITEMS" target=_parent class=ISymbol>DISCO_ITEMS</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_disconnect><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.disconnect" target=_parent class=ISymbol>disconnect</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_DISCONNECTED><div class=IEntry><a href="../files/core-js.html#Strophe.Status.DISCONNECTED" target=_parent class=ISymbol>DISCONNECTED</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_DISCONNECTING><div class=IEntry><a href="../files/core-js.html#Strophe.Status.DISCONNECTING" target=_parent class=ISymbol>DISCONNECTING</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/GeneralE.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_error><div class=IEntry><a href="../files/core-js.html#Strophe.error" target=_parent class=ISymbol>error</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR2_ERROR><div class=IEntry><a href="javascript:searchResults.Toggle('SR2_ERROR')" class=ISymbol>ERROR</a><div class=ISubIndex><a href="../files/core-js.html#Strophe.LogLevel.ERROR" target=_parent class=IParent>Strophe.<wbr>LogLevel</a><a href="../files/core-js.html#Strophe.Status.ERROR" target=_parent class=IParent>Strophe.<wbr>Status</a></div></div></div><div class=SRResult id=SR_escapeNode><div class=IEntry><a href="../files/core-js.html#Strophe.escapeNode" target=_parent class=ISymbol>escapeNode</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/GeneralF.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_fatal><div class=IEntry><a href="../files/core-js.html#Strophe.fatal" target=_parent class=ISymbol>fatal</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR2_FATAL><div class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.FATAL" target=_parent class=ISymbol>FATAL</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></div></div><div class=SRResult id=SR_flush><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.flush" target=_parent class=ISymbol>flush</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_forEachChild><div class=IEntry><a href="../files/core-js.html#Strophe.forEachChild" target=_parent class=ISymbol>forEachChild</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_Functions><div class=IEntry><a href="javascript:searchResults.Toggle('SR_Functions')" class=ISymbol>Functions</a><div class=ISubIndex><a href="../files/core-js.html#Functions" target=_parent class=IParent>Global</a><a href="../files/core-js.html#Strophe.Functions" target=_parent class=IParent>Strophe</a><a href="../files/core-js.html#Strophe.Builder.Functions" target=_parent class=IParent>Strophe.<wbr>Builder</a><a href="../files/core-js.html#Strophe.Connection.Functions" target=_parent class=IParent>Strophe.<wbr>Connection</a></div></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/GeneralG.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_getBareJidFromJid><div class=IEntry><a href="../files/core-js.html#Strophe.getBareJidFromJid" target=_parent class=ISymbol>getBareJidFromJid</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getDomainFromJid><div class=IEntry><a href="../files/core-js.html#Strophe.getDomainFromJid" target=_parent class=ISymbol>getDomainFromJid</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getNodeFromJid><div class=IEntry><a href="../files/core-js.html#Strophe.getNodeFromJid" target=_parent class=ISymbol>getNodeFromJid</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getResourceFromJid><div class=IEntry><a href="../files/core-js.html#Strophe.getResourceFromJid" target=_parent class=ISymbol>getResourceFromJid</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getText><div class=IEntry><a href="../files/core-js.html#Strophe.getText" target=_parent class=ISymbol>getText</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getUniqueId><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.getUniqueId" target=_parent class=ISymbol>getUniqueId</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/GeneralH.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_HTTPBIND><div class=IEntry><a href="../files/core-js.html#Strophe.NS.HTTPBIND" target=_parent class=ISymbol>HTTPBIND</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/GeneralI.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_info><div class=IEntry><a href="../files/core-js.html#Strophe.info" target=_parent class=ISymbol>info</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR2_INFO><div class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.INFO" target=_parent class=ISymbol>INFO</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></div></div><div class=SRResult id=SR_isTagEqual><div class=IEntry><a href="../files/core-js.html#Strophe.isTagEqual" target=_parent class=ISymbol>isTagEqual</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/GeneralL.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_log><div class=IEntry><a href="../files/core-js.html#Strophe.log" target=_parent class=ISymbol>log</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_Log_spcLevel_spcConstants><div class=IEntry><a href="../files/core-js.html#Strophe.Log_Level_Constants" target=_parent class=ISymbol>Log Level Constants</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/GeneralM.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_MUC><div class=IEntry><a href="../files/core-js.html#Strophe.NS.MUC" target=_parent class=ISymbol>MUC</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/GeneralP.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_pause><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.pause" target=_parent class=ISymbol>pause</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_PROFILE><div class=IEntry><a href="../files/core-js.html#Strophe.NS.PROFILE" target=_parent class=ISymbol>PROFILE</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/GeneralR.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_rawInput><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.rawInput" target=_parent class=ISymbol>rawInput</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_rawOutput><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.rawOutput" target=_parent class=ISymbol>rawOutput</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_reset><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.reset" target=_parent class=ISymbol>reset</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_resume><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.resume" target=_parent class=ISymbol>resume</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_ROSTER><div class=IEntry><a href="../files/core-js.html#Strophe.NS.ROSTER" target=_parent class=ISymbol>ROSTER</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/GeneralS.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_SASL><div class=IEntry><a href="../files/core-js.html#Strophe.NS.SASL" target=_parent class=ISymbol>SASL</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_send><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.send" target=_parent class=ISymbol>send</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_sendIQ><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.sendIQ" target=_parent class=ISymbol>sendIQ</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_serialize><div class=IEntry><a href="../files/core-js.html#Strophe.serialize" target=_parent class=ISymbol>serialize</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_SESSION><div class=IEntry><a href="../files/core-js.html#Strophe.NS.SESSION" target=_parent class=ISymbol>SESSION</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_STREAM><div class=IEntry><a href="../files/core-js.html#Strophe.NS.STREAM" target=_parent class=ISymbol>STREAM</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_Strophe><div class=IEntry><a href="../files/core-js.html#Strophe" target=_parent class=ISymbol>Strophe</a></div></div><div class=SRResult id=SR_Strophe_perBuilder><div class=IEntry><a href="../files/core-js.html#Strophe.Builder" target=_parent class=ISymbol>Strophe.<wbr>Builder</a></div></div><div class=SRResult id=SR_Strophe_perConnection><div class=IEntry><a href="../files/core-js.html#Strophe.Connection" target=_parent class=ISymbol>Strophe.<wbr>Connection</a></div></div><div class=SRResult id=SR_strophe_perjs><div class=IEntry><a href="../files/core-js.html#strophe.js" target=_parent class=ISymbol>strophe.js</a></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/GeneralSymbols.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR__dolbuild><div class=IEntry><a href="../files/core-js.html#$build" target=_parent class=ISymbol>$build</a></div></div><div class=SRResult id=SR__doliq><div class=IEntry><a href="../files/core-js.html#$iq" target=_parent class=ISymbol>$iq</a></div></div><div class=SRResult id=SR__dolmsg><div class=IEntry><a href="../files/core-js.html#$msg" target=_parent class=ISymbol>$msg</a></div></div><div class=SRResult id=SR__dolpres><div class=IEntry><a href="../files/core-js.html#$pres" target=_parent class=ISymbol>$pres</a></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/GeneralT.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_t><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.t" target=_parent class=ISymbol>t</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_toString><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.toString" target=_parent class=ISymbol>toString</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_tree><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.tree" target=_parent class=ISymbol>tree</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/GeneralU.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_unescapeNode><div class=IEntry><a href="../files/core-js.html#Strophe.unescapeNode" target=_parent class=ISymbol>unescapeNode</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_up><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.up" target=_parent class=ISymbol>up</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/GeneralV.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_VERSION><div class=IEntry><a href="../files/core-js.html#Strophe.VERSION" target=_parent class=ISymbol>VERSION</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/GeneralW.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_warn><div class=IEntry><a href="../files/core-js.html#Strophe.warn" target=_parent class=ISymbol>warn</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR2_WARN><div class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.WARN" target=_parent class=ISymbol>WARN</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/GeneralX.html
... ... @@ -1,20 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_xmlElement><div class=IEntry><a href="../files/core-js.html#Strophe.xmlElement" target=_parent class=ISymbol>xmlElement</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_xmlescape><div class=IEntry><a href="../files/core-js.html#Strophe.xmlescape" target=_parent class=ISymbol>xmlescape</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_xmlInput><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.xmlInput" target=_parent class=ISymbol>xmlInput</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_xmlOutput><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.xmlOutput" target=_parent class=ISymbol>xmlOutput</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_xmlTextNode><div class=IEntry><a href="../files/core-js.html#Strophe.xmlTextNode" target=_parent class=ISymbol>xmlTextNode</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_XMPP_spcNamespace_spcConstants><div class=IEntry><a href="../files/core-js.html#Strophe.XMPP_Namespace_Constants" target=_parent class=ISymbol>XMPP Namespace Constants</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
15   -document.getElementById("Loading").style.display="none";
16   -document.getElementById("NoMatches").style.display="none";
17   -var searchResults = new SearchResults("searchResults", "HTML");
18   -searchResults.Search();
19   ---></script></div><script language=JavaScript><!--
20   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
21 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/search/NoResults.html
... ... @@ -1,15 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2   -
3   -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4   -if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5   -
6   -<!-- Generated by Natural Docs, version 1.4 -->
7   -<!-- http://www.naturaldocs.org -->
8   -
9   -<!-- saved from url=(0026)http://www.naturaldocs.org -->
10   -
11   -
12   -
13   -
14   -<div id=Index><div class=SRStatus id=NoMatches>No Matches</div></div><script language=JavaScript><!--
15   -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
16 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/doc/styles/main.css
... ... @@ -1,767 +0,0 @@
1   -/*
2   - IMPORTANT: If you're editing this file in the output directory of one of
3   - your projects, your changes will be overwritten the next time you run
4   - Natural Docs. Instead, copy this file to your project directory, make your
5   - changes, and you can use it with -s. Even better would be to make a CSS
6   - file in your project directory with only your changes, which you can then
7   - use with -s [original style] [your changes].
8   -
9   - On the other hand, if you're editing this file in the Natural Docs styles
10   - directory, the changes will automatically be applied to all your projects
11   - that use this style the next time Natural Docs is run on them.
12   -
13   - This file is part of Natural Docs, which is Copyright (C) 2003-2008 Greg Valure
14   - Natural Docs is licensed under the GPL
15   -*/
16   -
17   -body {
18   - font: 10pt Verdana, Arial, sans-serif;
19   - color: #000000;
20   - margin: 0; padding: 0;
21   - }
22   -
23   -.ContentPage,
24   -.IndexPage,
25   -.FramedMenuPage {
26   - background-color: #E8E8E8;
27   - }
28   -.FramedContentPage,
29   -.FramedIndexPage,
30   -.FramedSearchResultsPage,
31   -.PopupSearchResultsPage {
32   - background-color: #FFFFFF;
33   - }
34   -
35   -
36   -a:link,
37   -a:visited { color: #900000; text-decoration: none }
38   -a:hover { color: #900000; text-decoration: underline }
39   -a:active { color: #FF0000; text-decoration: underline }
40   -
41   -td {
42   - vertical-align: top }
43   -
44   -img { border: 0; }
45   -
46   -
47   -/*
48   - Comment out this line to use web-style paragraphs (blank line between
49   - paragraphs, no indent) instead of print-style paragraphs (no blank line,
50   - indented.)
51   -*/
52   -p {
53   - text-indent: 5ex; margin: 0 }
54   -
55   -
56   -/* Opera doesn't break with just wbr, but will if you add this. */
57   -.Opera wbr:after {
58   - content: "\00200B";
59   - }
60   -
61   -
62   -/* Blockquotes are used as containers for things that may need to scroll. */
63   -blockquote {
64   - padding: 0;
65   - margin: 0;
66   - overflow: auto;
67   - }
68   -
69   -
70   -.Firefox1 blockquote {
71   - padding-bottom: .5em;
72   - }
73   -
74   -/* Turn off scrolling when printing. */
75   -@media print {
76   - blockquote {
77   - overflow: visible;
78   - }
79   - .IE blockquote {
80   - width: auto;
81   - }
82   - }
83   -
84   -
85   -
86   -#Menu {
87   - font-size: 9pt;
88   - padding: 10px 0 0 0;
89   - }
90   -.ContentPage #Menu,
91   -.IndexPage #Menu {
92   - position: absolute;
93   - top: 0;
94   - left: 0;
95   - width: 31ex;
96   - overflow: hidden;
97   - }
98   -.ContentPage .Firefox #Menu,
99   -.IndexPage .Firefox #Menu {
100   - width: 27ex;
101   - }
102   -
103   -
104   - .MTitle {
105   - font-size: 16pt; font-weight: bold; font-variant: small-caps;
106   - text-align: center;
107   - padding: 5px 10px 15px 10px;
108   - border-bottom: 1px dotted #000000;
109   - margin-bottom: 15px }
110   -
111   - .MSubTitle {
112   - font-size: 9pt; font-weight: normal; font-variant: normal;
113   - margin-top: 1ex; margin-bottom: 5px }
114   -
115   -
116   - .MEntry a:link,
117   - .MEntry a:hover,
118   - .MEntry a:visited { color: #606060; margin-right: 0 }
119   - .MEntry a:active { color: #A00000; margin-right: 0 }
120   -
121   -
122   - .MGroup {
123   - font-variant: small-caps; font-weight: bold;
124   - margin: 1em 0 1em 10px;
125   - }
126   -
127   - .MGroupContent {
128   - font-variant: normal; font-weight: normal }
129   -
130   - .MGroup a:link,
131   - .MGroup a:hover,
132   - .MGroup a:visited { color: #545454; margin-right: 10px }
133   - .MGroup a:active { color: #A00000; margin-right: 10px }
134   -
135   -
136   - .MFile,
137   - .MText,
138   - .MLink,
139   - .MIndex {
140   - padding: 1px 17px 2px 10px;
141   - margin: .25em 0 .25em 0;
142   - }
143   -
144   - .MText {
145   - font-size: 8pt; font-style: italic }
146   -
147   - .MLink {
148   - font-style: italic }
149   -
150   - #MSelected {
151   - color: #000000; background-color: #FFFFFF;
152   - /* Replace padding with border. */
153   - padding: 0 10px 0 10px;
154   - border-width: 1px 2px 2px 0; border-style: solid; border-color: #000000;
155   - margin-right: 5px;
156   - }
157   -
158   - /* Close off the left side when its in a group. */
159   - .MGroup #MSelected {
160   - padding-left: 9px; border-left-width: 1px }
161   -
162   - /* A treat for Mozilla users. Blatantly non-standard. Will be replaced with CSS 3 attributes when finalized/supported. */
163   - .Firefox #MSelected {
164   - -moz-border-radius-topright: 10px;
165   - -moz-border-radius-bottomright: 10px }
166   - .Firefox .MGroup #MSelected {
167   - -moz-border-radius-topleft: 10px;
168   - -moz-border-radius-bottomleft: 10px }
169   -
170   -
171   - #MSearchPanel {
172   - padding: 0px 6px;
173   - margin: .25em 0;
174   - }
175   -
176   -
177   - #MSearchField {
178   - font: italic 9pt Verdana, sans-serif;
179   - color: #606060;
180   - background-color: #E8E8E8;
181   - border: none;
182   - padding: 2px 4px;
183   - width: 100%;
184   - }
185   - /* Only Opera gets it right. */
186   - .Firefox #MSearchField,
187   - .IE #MSearchField,
188   - .Safari #MSearchField {
189   - width: 94%;
190   - }
191   - .Opera9 #MSearchField,
192   - .Konqueror #MSearchField {
193   - width: 97%;
194   - }
195   - .FramedMenuPage .Firefox #MSearchField,
196   - .FramedMenuPage .Safari #MSearchField,
197   - .FramedMenuPage .Konqueror #MSearchField {
198   - width: 98%;
199   - }
200   -
201   - /* Firefox doesn't do this right in frames without #MSearchPanel added on.
202   - It's presence doesn't hurt anything other browsers. */
203   - #MSearchPanel.MSearchPanelInactive:hover #MSearchField {
204   - background-color: #FFFFFF;
205   - border: 1px solid #C0C0C0;
206   - padding: 1px 3px;
207   - }
208   - .MSearchPanelActive #MSearchField {
209   - background-color: #FFFFFF;
210   - border: 1px solid #C0C0C0;
211   - font-style: normal;
212   - padding: 1px 3px;
213   - }
214   -
215   - #MSearchType {
216   - visibility: hidden;
217   - font: 8pt Verdana, sans-serif;
218   - width: 98%;
219   - padding: 0;
220   - border: 1px solid #C0C0C0;
221   - }
222   - .MSearchPanelActive #MSearchType,
223   - /* As mentioned above, Firefox doesn't do this right in frames without #MSearchPanel added on. */
224   - #MSearchPanel.MSearchPanelInactive:hover #MSearchType,
225   - #MSearchType:focus {
226   - visibility: visible;
227   - color: #606060;
228   - }
229   - #MSearchType option#MSearchEverything {
230   - font-weight: bold;
231   - }
232   -
233   - .Opera8 .MSearchPanelInactive:hover,
234   - .Opera8 .MSearchPanelActive {
235   - margin-left: -1px;
236   - }
237   -
238   -
239   - iframe#MSearchResults {
240   - width: 60ex;
241   - height: 15em;
242   - }
243   - #MSearchResultsWindow {
244   - display: none;
245   - position: absolute;
246   - left: 0; top: 0;
247   - border: 1px solid #000000;
248   - background-color: #E8E8E8;
249   - }
250   - #MSearchResultsWindowClose {
251   - font-weight: bold;
252   - font-size: 8pt;
253   - display: block;
254   - padding: 2px 5px;
255   - }
256   - #MSearchResultsWindowClose:link,
257   - #MSearchResultsWindowClose:visited {
258   - color: #000000;
259   - text-decoration: none;
260   - }
261   - #MSearchResultsWindowClose:active,
262   - #MSearchResultsWindowClose:hover {
263   - color: #800000;
264   - text-decoration: none;
265   - background-color: #F4F4F4;
266   - }
267   -
268   -
269   -
270   -
271   -#Content {
272   - padding-bottom: 15px;
273   - }
274   -
275   -.ContentPage #Content {
276   - border-width: 0 0 1px 1px;
277   - border-style: solid;
278   - border-color: #000000;
279   - background-color: #FFFFFF;
280   - font-size: 9pt; /* To make 31ex match the menu's 31ex. */
281   - margin-left: 31ex;
282   - }
283   -.ContentPage .Firefox #Content {
284   - margin-left: 27ex;
285   - }
286   -
287   -
288   -
289   - .CTopic {
290   - font-size: 10pt;
291   - margin-bottom: 3em;
292   - }
293   -
294   -
295   - .CTitle {
296   - font-size: 12pt; font-weight: bold;
297   - border-width: 0 0 1px 0; border-style: solid; border-color: #A0A0A0;
298   - margin: 0 15px .5em 15px }
299   -
300   - .CGroup .CTitle {
301   - font-size: 16pt; font-variant: small-caps;
302   - padding-left: 15px; padding-right: 15px;
303   - border-width: 0 0 2px 0; border-color: #000000;
304   - margin-left: 0; margin-right: 0 }
305   -
306   - .CClass .CTitle,
307   - .CInterface .CTitle,
308   - .CDatabase .CTitle,
309   - .CDatabaseTable .CTitle,
310   - .CSection .CTitle {
311   - font-size: 18pt;
312   - color: #FFFFFF; background-color: #A0A0A0;
313   - padding: 10px 15px 10px 15px;
314   - border-width: 2px 0; border-color: #000000;
315   - margin-left: 0; margin-right: 0 }
316   -
317   - #MainTopic .CTitle {
318   - font-size: 20pt;
319   - color: #FFFFFF; background-color: #7070C0;
320   - padding: 10px 15px 10px 15px;
321   - border-width: 0 0 3px 0; border-color: #000000;
322   - margin-left: 0; margin-right: 0 }
323   -
324   - .CBody {
325   - margin-left: 15px; margin-right: 15px }
326   -
327   -
328   - .CToolTip {
329   - position: absolute; visibility: hidden;
330   - left: 0; top: 0;
331   - background-color: #FFFFE0;
332   - padding: 5px;
333   - border-width: 1px 2px 2px 1px; border-style: solid; border-color: #000000;
334   - font-size: 8pt;
335   - }
336   -
337   - .Opera .CToolTip {
338   - max-width: 98%;
339   - }
340   -
341   - /* Scrollbars would be useless. */
342   - .CToolTip blockquote {
343   - overflow: hidden;
344   - }
345   - .IE6 .CToolTip blockquote {
346   - overflow: visible;
347   - }
348   -
349   - .CHeading {
350   - font-weight: bold; font-size: 10pt;
351   - margin: 1.5em 0 .5em 0;
352   - }
353   -
354   - .CBody pre {
355   - font: 10pt "Courier New", Courier, monospace;
356   - margin: 1em 0;
357   - }
358   -
359   - .CBody ul {
360   - /* I don't know why CBody's margin doesn't apply, but it's consistent across browsers so whatever.
361   - Reapply it here as padding. */
362   - padding-left: 15px; padding-right: 15px;
363   - margin: .5em 5ex .5em 5ex;
364   - }
365   -
366   - .CDescriptionList {
367   - margin: .5em 5ex 0 5ex }
368   -
369   - .CDLEntry {
370   - font: 10pt "Courier New", Courier, monospace; color: #808080;
371   - padding-bottom: .25em;
372   - white-space: nowrap }
373   -
374   - .CDLDescription {
375   - font-size: 10pt; /* For browsers that don't inherit correctly, like Opera 5. */
376   - padding-bottom: .5em; padding-left: 5ex }
377   -
378   -
379   - .CTopic img {
380   - text-align: center;
381   - display: block;
382   - margin: 1em auto;
383   - }
384   - .CImageCaption {
385   - font-variant: small-caps;
386   - font-size: 8pt;
387   - color: #808080;
388   - text-align: center;
389   - position: relative;
390   - top: 1em;
391   - }
392   -
393   - .CImageLink {
394   - color: #808080;
395   - font-style: italic;
396   - }
397   - a.CImageLink:link,
398   - a.CImageLink:visited,
399   - a.CImageLink:hover { color: #808080 }
400   -
401   -
402   -
403   -
404   -
405   -.Prototype {
406   - font: 10pt "Courier New", Courier, monospace;
407   - padding: 5px 3ex;
408   - border-width: 1px; border-style: solid;
409   - margin: 0 5ex 1.5em 5ex;
410   - }
411   -
412   - .Prototype td {
413   - font-size: 10pt;
414   - }
415   -
416   - .PDefaultValue,
417   - .PDefaultValuePrefix,
418   - .PTypePrefix {
419   - color: #8F8F8F;
420   - }
421   - .PTypePrefix {
422   - text-align: right;
423   - }
424   - .PAfterParameters {
425   - vertical-align: bottom;
426   - }
427   -
428   - .IE .Prototype table {
429   - padding: 0;
430   - }
431   -
432   - .CFunction .Prototype {
433   - background-color: #F4F4F4; border-color: #D0D0D0 }
434   - .CProperty .Prototype {
435   - background-color: #F4F4FF; border-color: #C0C0E8 }
436   - .CVariable .Prototype {
437   - background-color: #FFFFF0; border-color: #E0E0A0 }
438   -
439   - .CClass .Prototype {
440   - border-width: 1px 2px 2px 1px; border-style: solid; border-color: #A0A0A0;
441   - background-color: #F4F4F4;
442   - }
443   - .CInterface .Prototype {
444   - border-width: 1px 2px 2px 1px; border-style: solid; border-color: #A0A0D0;
445   - background-color: #F4F4FF;
446   - }
447   -
448   - .CDatabaseIndex .Prototype,
449   - .CConstant .Prototype {
450   - background-color: #D0D0D0; border-color: #000000 }
451   - .CType .Prototype,
452   - .CEnumeration .Prototype {
453   - background-color: #FAF0F0; border-color: #E0B0B0;
454   - }
455   - .CDatabaseTrigger .Prototype,
456   - .CEvent .Prototype,
457   - .CDelegate .Prototype {
458   - background-color: #F0FCF0; border-color: #B8E4B8 }
459   -
460   - .CToolTip .Prototype {
461   - margin: 0 0 .5em 0;
462   - white-space: nowrap;
463   - }
464   -
465   -
466   -
467   -
468   -
469   -.Summary {
470   - margin: 1.5em 5ex 0 5ex }
471   -
472   - .STitle {
473   - font-size: 12pt; font-weight: bold;
474   - margin-bottom: .5em }
475   -
476   -
477   - .SBorder {
478   - background-color: #FFFFF0;
479   - padding: 15px;
480   - border: 1px solid #C0C060 }
481   -
482   - /* In a frame IE 6 will make them too long unless you set the width to 100%. Without frames it will be correct without a width
483   - or slightly too long (but not enough to scroll) with a width. This arbitrary weirdness simply astounds me. IE 7 has the same
484   - problem with frames, haven't tested it without. */
485   - .FramedContentPage .IE .SBorder {
486   - width: 100% }
487   -
488   - /* A treat for Mozilla users. Blatantly non-standard. Will be replaced with CSS 3 attributes when finalized/supported. */
489   - .Firefox .SBorder {
490   - -moz-border-radius: 20px }
491   -
492   -
493   - .STable {
494   - font-size: 9pt; width: 100% }
495   -
496   - .SEntry {
497   - width: 30% }
498   - .SDescription {
499   - width: 70% }
500   -
501   -
502   - .SMarked {
503   - background-color: #F8F8D8 }
504   -
505   - .SDescription { padding-left: 2ex }
506   - .SIndent1 .SEntry { padding-left: 1.5ex } .SIndent1 .SDescription { padding-left: 3.5ex }
507   - .SIndent2 .SEntry { padding-left: 3.0ex } .SIndent2 .SDescription { padding-left: 5.0ex }
508   - .SIndent3 .SEntry { padding-left: 4.5ex } .SIndent3 .SDescription { padding-left: 6.5ex }
509   - .SIndent4 .SEntry { padding-left: 6.0ex } .SIndent4 .SDescription { padding-left: 8.0ex }
510   - .SIndent5 .SEntry { padding-left: 7.5ex } .SIndent5 .SDescription { padding-left: 9.5ex }
511   -
512   - .SDescription a { color: #800000}
513   - .SDescription a:active { color: #A00000 }
514   -
515   - .SGroup td {
516   - padding-top: .5em; padding-bottom: .25em }
517   -
518   - .SGroup .SEntry {
519   - font-weight: bold; font-variant: small-caps }
520   -
521   - .SGroup .SEntry a { color: #800000 }
522   - .SGroup .SEntry a:active { color: #F00000 }
523   -
524   -
525   - .SMain td,
526   - .SClass td,
527   - .SDatabase td,
528   - .SDatabaseTable td,
529   - .SSection td {
530   - font-size: 10pt;
531   - padding-bottom: .25em }
532   -
533   - .SClass td,
534   - .SDatabase td,
535   - .SDatabaseTable td,
536   - .SSection td {
537   - padding-top: 1em }
538   -
539   - .SMain .SEntry,
540   - .SClass .SEntry,
541   - .SDatabase .SEntry,
542   - .SDatabaseTable .SEntry,
543   - .SSection .SEntry {
544   - font-weight: bold;
545   - }
546   -
547   - .SMain .SEntry a,
548   - .SClass .SEntry a,
549   - .SDatabase .SEntry a,
550   - .SDatabaseTable .SEntry a,
551   - .SSection .SEntry a { color: #000000 }
552   -
553   - .SMain .SEntry a:active,
554   - .SClass .SEntry a:active,
555   - .SDatabase .SEntry a:active,
556   - .SDatabaseTable .SEntry a:active,
557   - .SSection .SEntry a:active { color: #A00000 }
558   -
559   -
560   -
561   -
562   -
563   -.ClassHierarchy {
564   - margin: 0 15px 1em 15px }
565   -
566   - .CHEntry {
567   - border-width: 1px 2px 2px 1px; border-style: solid; border-color: #A0A0A0;
568   - margin-bottom: 3px;
569   - padding: 2px 2ex;
570   - font-size: 10pt;
571   - background-color: #F4F4F4; color: #606060;
572   - }
573   -
574   - .Firefox .CHEntry {
575   - -moz-border-radius: 4px;
576   - }
577   -
578   - .CHCurrent .CHEntry {
579   - font-weight: bold;
580   - border-color: #000000;
581   - color: #000000;
582   - }
583   -
584   - .CHChildNote .CHEntry {
585   - font-style: italic;
586   - font-size: 8pt;
587   - }
588   -
589   - .CHIndent {
590   - margin-left: 3ex;
591   - }
592   -
593   - .CHEntry a:link,
594   - .CHEntry a:visited,
595   - .CHEntry a:hover {
596   - color: #606060;
597   - }
598   - .CHEntry a:active {
599   - color: #800000;
600   - }
601   -
602   -
603   -
604   -
605   -
606   -#Index {
607   - background-color: #FFFFFF;
608   - }
609   -
610   -/* As opposed to .PopupSearchResultsPage #Index */
611   -.IndexPage #Index,
612   -.FramedIndexPage #Index,
613   -.FramedSearchResultsPage #Index {
614   - padding: 15px;
615   - }
616   -
617   -.IndexPage #Index {
618   - border-width: 0 0 1px 1px;
619   - border-style: solid;
620   - border-color: #000000;
621   - font-size: 9pt; /* To make 27ex match the menu's 27ex. */
622   - margin-left: 27ex;
623   - }
624   -
625   -
626   - .IPageTitle {
627   - font-size: 20pt; font-weight: bold;
628   - color: #FFFFFF; background-color: #7070C0;
629   - padding: 10px 15px 10px 15px;
630   - border-width: 0 0 3px 0; border-color: #000000; border-style: solid;
631   - margin: -15px -15px 0 -15px }
632   -
633   - .FramedSearchResultsPage .IPageTitle {
634   - margin-bottom: 15px;
635   - }
636   -
637   - .INavigationBar {
638   - font-size: 10pt;
639   - text-align: center;
640   - background-color: #FFFFF0;
641   - padding: 5px;
642   - border-bottom: solid 1px black;
643   - margin: 0 -15px 15px -15px;
644   - }
645   -
646   - .INavigationBar a {
647   - font-weight: bold }
648   -
649   - .IHeading {
650   - font-size: 16pt; font-weight: bold;
651   - padding: 2.5em 0 .5em 0;
652   - text-align: center;
653   - width: 3.5ex;
654   - }
655   - #IFirstHeading {
656   - padding-top: 0;
657   - }
658   -
659   - .IEntry {
660   - font-size: 10pt;
661   - padding-left: 1ex;
662   - }
663   - .PopupSearchResultsPage .IEntry {
664   - font-size: 8pt;
665   - padding: 1px 5px;
666   - }
667   - .PopupSearchResultsPage .Opera9 .IEntry,
668   - .FramedSearchResultsPage .Opera9 .IEntry {
669   - text-align: left;
670   - }
671   - .FramedSearchResultsPage .IEntry {
672   - padding: 0;
673   - }
674   -
675   - .ISubIndex {
676   - padding-left: 3ex; padding-bottom: .5em }
677   - .PopupSearchResultsPage .ISubIndex {
678   - display: none;
679   - }
680   -
681   - /* While it may cause some entries to look like links when they aren't, I found it's much easier to read the
682   - index if everything's the same color. */
683   - .ISymbol {
684   - font-weight: bold; color: #900000 }
685   -
686   - .IndexPage .ISymbolPrefix,
687   - .FramedIndexPage .ISymbolPrefix {
688   - font-size: 10pt;
689   - text-align: right;
690   - color: #C47C7C;
691   - background-color: #F8F8F8;
692   - border-right: 3px solid #E0E0E0;
693   - border-left: 1px solid #E0E0E0;
694   - padding: 0 1px 0 2px;
695   - }
696   - .PopupSearchResultsPage .ISymbolPrefix,
697   - .FramedSearchResultsPage .ISymbolPrefix {
698   - color: #900000;
699   - }
700   - .PopupSearchResultsPage .ISymbolPrefix {
701   - font-size: 8pt;
702   - }
703   -
704   - .IndexPage #IFirstSymbolPrefix,
705   - .FramedIndexPage #IFirstSymbolPrefix {
706   - border-top: 1px solid #E0E0E0;
707   - }
708   - .IndexPage #ILastSymbolPrefix,
709   - .FramedIndexPage #ILastSymbolPrefix {
710   - border-bottom: 1px solid #E0E0E0;
711   - }
712   - .IndexPage #IOnlySymbolPrefix,
713   - .FramedIndexPage #IOnlySymbolPrefix {
714   - border-top: 1px solid #E0E0E0;
715   - border-bottom: 1px solid #E0E0E0;
716   - }
717   -
718   - a.IParent,
719   - a.IFile {
720   - display: block;
721   - }
722   -
723   - .PopupSearchResultsPage .SRStatus {
724   - padding: 2px 5px;
725   - font-size: 8pt;
726   - font-style: italic;
727   - }
728   - .FramedSearchResultsPage .SRStatus {
729   - font-size: 10pt;
730   - font-style: italic;
731   - }
732   -
733   - .SRResult {
734   - display: none;
735   - }
736   -
737   -
738   -
739   -#Footer {
740   - font-size: 8pt;
741   - color: #989898;
742   - text-align: right;
743   - }
744   -
745   -#Footer p {
746   - text-indent: 0;
747   - margin-bottom: .5em;
748   - }
749   -
750   -.ContentPage #Footer,
751   -.IndexPage #Footer {
752   - text-align: right;
753   - margin: 2px;
754   - }
755   -
756   -.FramedMenuPage #Footer {
757   - text-align: center;
758   - margin: 5em 10px 10px 10px;
759   - padding-top: 1em;
760   - border-top: 1px solid #C8C8C8;
761   - }
762   -
763   - #Footer a:link,
764   - #Footer a:hover,
765   - #Footer a:visited { color: #989898 }
766   - #Footer a:active { color: #A00000 }
767   -
public/javascripts/strophejs-1.0.1/examples/attach/README
... ... @@ -1,37 +0,0 @@
1   -This is an example of Strophe attaching to a pre-existing BOSH session
2   -that is created externally. This example requires a bit more than
3   -HTML and JavaScript. Specifically it contains a very simple Web
4   -application written in Django which creates a BOSH session before
5   -rendering the page.
6   -
7   -Requirements:
8   -
9   -* Django 1.0 (http://www.djangoproject.com)
10   -* Twisted 8.1.x (http://twistedmatrix.com)
11   -* Punjab 0.3 (http://code.stanziq.com/punjab)
12   -
13   -Note that Twisted and Punjab are only used for small functions related
14   -to JID and BOSH parsing.
15   -
16   -How It Works:
17   -
18   -The Django app contains one view which is tied to the root URL. This
19   -view uses the BOSHClient class to start a BOSH session using the
20   -settings from settings.py.
21   -
22   -Once the connection is established, Django passes the JID, SID, and
23   -RID for the BOSH session into the template engine and renders the
24   -page.
25   -
26   -The template assigns the JID, SID, and RID to global vars like so:
27   -
28   - var BOSH_JID = {{ jid }};
29   - var BOSH_SID = {{ sid }};
30   - var BOSH_RID = {{ rid }};
31   -
32   -The connection is attached to Strophe by calling
33   -Strophe.Connection.attach() with this data and a connection callback
34   -handler.
35   -
36   -To show that the session is attached and works, a disco info ping is
37   -done to jabber.org.
public/javascripts/strophejs-1.0.1/examples/attach/__init__.py
public/javascripts/strophejs-1.0.1/examples/attach/attacher/__init__.py
public/javascripts/strophejs-1.0.1/examples/attach/attacher/views.py
... ... @@ -1,18 +0,0 @@
1   -from django.http import HttpResponse
2   -from django.template import Context, loader
3   -
4   -from attach.settings import BOSH_SERVICE, JABBERID, PASSWORD
5   -from attach.boshclient import BOSHClient
6   -
7   -def index(request):
8   - bc = BOSHClient(JABBERID, PASSWORD, BOSH_SERVICE)
9   - bc.startSessionAndAuth()
10   -
11   - t = loader.get_template("attacher/index.html")
12   - c = Context({
13   - 'jid': bc.jabberid.full(),
14   - 'sid': bc.sid,
15   - 'rid': bc.rid,
16   - })
17   -
18   - return HttpResponse(t.render(c))
public/javascripts/strophejs-1.0.1/examples/attach/boshclient.py
... ... @@ -1,152 +0,0 @@
1   -import sys, os
2   -import httplib, urllib
3   -import random, binascii
4   -from urlparse import urlparse
5   -
6   -from punjab.httpb import HttpbParse
7   -
8   -from twisted.words.xish import domish
9   -from twisted.words.protocols.jabber import jid
10   -
11   -TLS_XMLNS = 'urn:ietf:params:xml:ns:xmpp-tls'
12   -SASL_XMLNS = 'urn:ietf:params:xml:ns:xmpp-sasl'
13   -BIND_XMLNS = 'urn:ietf:params:xml:ns:xmpp-bind'
14   -SESSION_XMLNS = 'urn:ietf:params:xml:ns:xmpp-session'
15   -
16   -
17   -class BOSHClient:
18   - def __init__(self, jabberid, password, bosh_service):
19   - self.rid = random.randint(0, 10000000)
20   - self.jabberid = jid.internJID(jabberid)
21   - self.password = password
22   -
23   - self.authid = None
24   - self.sid = None
25   - self.logged_in = False
26   - self.headers = {"Content-type": "text/xml",
27   - "Accept": "text/xml"}
28   -
29   - self.bosh_service = urlparse(bosh_service)
30   -
31   - def buildBody(self, child=None):
32   - """Build a BOSH body.
33   - """
34   -
35   - body = domish.Element(("http://jabber.org/protocol/httpbind", "body"))
36   - body['content'] = 'text/xml; charset=utf-8'
37   - self.rid = self.rid + 1
38   - body['rid'] = str(self.rid)
39   - body['sid'] = str(self.sid)
40   - body['xml:lang'] = 'en'
41   -
42   - if child is not None:
43   - body.addChild(child)
44   -
45   - return body
46   -
47   - def sendBody(self, body):
48   - """Send the body.
49   - """
50   -
51   - parser = HttpbParse(True)
52   -
53   - # start new session
54   - conn = httplib.HTTPConnection(self.bosh_service.netloc)
55   - conn.request("POST", self.bosh_service.path,
56   - body.toXml(), self.headers)
57   -
58   - response = conn.getresponse()
59   - data = ''
60   - if response.status == 200:
61   - data = response.read()
62   - conn.close()
63   -
64   - return parser.parse(data)
65   -
66   - def startSessionAndAuth(self, hold='1', wait='70'):
67   - # Create a session
68   - # create body
69   - body = domish.Element(("http://jabber.org/protocol/httpbind", "body"))
70   -
71   - body['content'] = 'text/xml; charset=utf-8'
72   - body['hold'] = hold
73   - body['rid'] = str(self.rid)
74   - body['to'] = self.jabberid.host
75   - body['wait'] = wait
76   - body['window'] = '5'
77   - body['xml:lang'] = 'en'
78   -
79   -
80   - retb, elems = self.sendBody(body)
81   - if type(retb) != str and retb.hasAttribute('authid') and \
82   - retb.hasAttribute('sid'):
83   - self.authid = retb['authid']
84   - self.sid = retb['sid']
85   -
86   - # go ahead and auth
87   - auth = domish.Element((SASL_XMLNS, 'auth'))
88   - auth['mechanism'] = 'PLAIN'
89   -
90   - # TODO: add authzid
91   - if auth['mechanism'] == 'PLAIN':
92   - auth_str = ""
93   - auth_str += "\000"
94   - auth_str += self.jabberid.user.encode('utf-8')
95   - auth_str += "\000"
96   - try:
97   - auth_str += self.password.encode('utf-8').strip()
98   - except UnicodeDecodeError:
99   - auth_str += self.password.decode('latin1') \
100   - .encode('utf-8').strip()
101   -
102   - auth.addContent(binascii.b2a_base64(auth_str))
103   -
104   - retb, elems = self.sendBody(self.buildBody(auth))
105   - if len(elems) == 0:
106   - # poll for data
107   - retb, elems = self.sendBody(self.buildBody())
108   -
109   - if len(elems) > 0:
110   - if elems[0].name == 'success':
111   - retb, elems = self.sendBody(self.buildBody())
112   -
113   - if elems[0].firstChildElement().name == 'bind':
114   - iq = domish.Element(('jabber:client', 'iq'))
115   - iq['type'] = 'set'
116   - iq.addUniqueId()
117   - iq.addElement('bind')
118   - iq.bind['xmlns'] = BIND_XMLNS
119   - if self.jabberid.resource:
120   - iq.bind.addElement('resource')
121   - iq.bind.resource.addContent(
122   - self.jabberid.resource)
123   -
124   - retb, elems = self.sendBody(self.buildBody(iq))
125   - if type(retb) != str and retb.name == 'body':
126   - # send session
127   - iq = domish.Element(('jabber:client', 'iq'))
128   - iq['type'] = 'set'
129   - iq.addUniqueId()
130   - iq.addElement('session')
131   - iq.session['xmlns'] = SESSION_XMLNS
132   -
133   - retb, elems = self.sendBody(self.buildBody(iq))
134   -
135   - # did not bind, TODO - add a retry?
136   - if type(retb) != str and retb.name == 'body':
137   - self.logged_in = True
138   - # bump up the rid, punjab already
139   - # received self.rid
140   - self.rid += 1
141   -
142   -
143   -if __name__ == '__main__':
144   - USERNAME = sys.argv[1]
145   - PASSWORD = sys.argv[2]
146   - SERVICE = sys.argv[3]
147   -
148   - c = BOSHClient(USERNAME, PASSWORD, SERVICE)
149   - c.startSessionAndAuth()
150   -
151   - print c.logged_in
152   -
public/javascripts/strophejs-1.0.1/examples/attach/manage.py
... ... @@ -1,11 +0,0 @@
1   -#!/usr/bin/env python
2   -from django.core.management import execute_manager
3   -try:
4   - import settings # Assumed to be in the same directory.
5   -except ImportError:
6   - import sys
7   - sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
8   - sys.exit(1)
9   -
10   -if __name__ == "__main__":
11   - execute_manager(settings)
public/javascripts/strophejs-1.0.1/examples/attach/settings.py
... ... @@ -1,85 +0,0 @@
1   -# Django settings for attach project.
2   -
3   -DEBUG = True
4   -TEMPLATE_DEBUG = DEBUG
5   -
6   -ADMINS = (
7   - ('Some Body', 'romeo@example.com'),
8   -)
9   -
10   -MANAGERS = ADMINS
11   -
12   -DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
13   -DATABASE_NAME = '/path/to/attach.db' # Or path to database file if using sqlite3.
14   -DATABASE_USER = '' # Not used with sqlite3.
15   -DATABASE_PASSWORD = '' # Not used with sqlite3.
16   -DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
17   -DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
18   -
19   -# Local time zone for this installation. Choices can be found here:
20   -# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
21   -# although not all choices may be available on all operating systems.
22   -# If running in a Windows environment this must be set to the same as your
23   -# system time zone.
24   -TIME_ZONE = 'America/Denver'
25   -
26   -# Language code for this installation. All choices can be found here:
27   -# http://www.i18nguy.com/unicode/language-identifiers.html
28   -LANGUAGE_CODE = 'en-us'
29   -
30   -SITE_ID = 1
31   -
32   -# If you set this to False, Django will make some optimizations so as not
33   -# to load the internationalization machinery.
34   -USE_I18N = True
35   -
36   -# Absolute path to the directory that holds media.
37   -# Example: "/home/media/media.lawrence.com/"
38   -MEDIA_ROOT = ''
39   -
40   -# URL that handles the media served from MEDIA_ROOT. Make sure to use a
41   -# trailing slash if there is a path component (optional in other cases).
42   -# Examples: "http://media.lawrence.com", "http://example.com/media/"
43   -MEDIA_URL = ''
44   -
45   -# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
46   -# trailing slash.
47   -# Examples: "http://foo.com/media/", "/media/".
48   -ADMIN_MEDIA_PREFIX = '/media/'
49   -
50   -# Make this unique, and don't share it with anybody.
51   -SECRET_KEY = 'asdf'
52   -
53   -# List of callables that know how to import templates from various sources.
54   -TEMPLATE_LOADERS = (
55   - 'django.template.loaders.filesystem.load_template_source',
56   - 'django.template.loaders.app_directories.load_template_source',
57   -# 'django.template.loaders.eggs.load_template_source',
58   -)
59   -
60   -MIDDLEWARE_CLASSES = (
61   - 'django.middleware.common.CommonMiddleware',
62   - 'django.contrib.sessions.middleware.SessionMiddleware',
63   - 'django.contrib.auth.middleware.AuthenticationMiddleware',
64   -)
65   -
66   -ROOT_URLCONF = 'attach.urls'
67   -
68   -TEMPLATE_DIRS = (
69   - # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
70   - # Always use forward slashes, even on Windows.
71   - # Don't forget to use absolute paths, not relative paths.
72   - '/path/to/attach/templates',
73   -)
74   -
75   -INSTALLED_APPS = (
76   - 'django.contrib.auth',
77   - 'django.contrib.contenttypes',
78   - 'django.contrib.sessions',
79   - 'django.contrib.sites',
80   - 'attach.attacher',
81   -)
82   -
83   -BOSH_SERVICE = 'http://example.com/xmpp-httpbind'
84   -JABBERID = 'romeo@example.com/bosh'
85   -PASSWORD = 'juliet.is.hawt'
public/javascripts/strophejs-1.0.1/examples/attach/templates/attacher/index.html
... ... @@ -1,88 +0,0 @@
1   -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2   -<html xmlns='http://www.w3.org/1999/xhtml'>
3   - <head>
4   - <title>Strophe Attach Example</title>
5   - <script language='javascript'
6   - type='text/javascript'
7   - src='http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js'></script>
8   - <script language='javascript'
9   - type='text/javascript'
10   - src='http://code.stanziq.com/svn/strophe/trunk/strophejs/b64.js'></script>
11   - <script language='javascript'
12   - type='text/javascript'
13   - src='http://code.stanziq.com/svn/strophe/trunk/strophejs/md5.js'></script>
14   - <script language='javascript'
15   - type='text/javascript'
16   - src='http://code.stanziq.com/svn/strophe/trunk/strophejs/sha1.js'></script>
17   - <script language='javascript'
18   - type='text/javascript'
19   - src='http://code.stanziq.com/svn/strophe/trunk/strophejs/strophe.js'></script>
20   - <script language='javascript'
21   - type='text/javascript'>
22   - <!--
23   - var ATTACH_SID = "{{ sid }}";
24   - var ATTACH_RID = "{{ rid }}";
25   - var ATTACH_JID = "{{ jid }}";
26   - var BOSH_SERVICE = '/xmpp-httpbind';
27   - var connection = null;
28   - var startTime = null;
29   -
30   - function log(msg)
31   - {
32   - $('#log').append('<div></div>').append(
33   - document.createTextNode(msg));
34   - }
35   -
36   - function onConnect(status)
37   - {
38   - if (status == Strophe.Status.DISCONNECTED)
39   - log('Disconnected.');
40   - }
41   -
42   - function onResult(iq) {
43   - var elapsed = (new Date()) - startTime;
44   - log('Response from jabber.org took ' + elapsed + 'ms.');
45   - }
46   -
47   - $(document).ready(function () {
48   - // create the connection and attach it
49   - connection = new Strophe.Connection(BOSH_SERVICE);
50   - connection.rawInput = function (data) {
51   - log('RECV: ' + data);
52   - };
53   - connection.rawOutput = function (data) {
54   - log('SENT: ' + data);
55   - };
56   - // uncomment for extra debugging
57   - // Strophe.log = function (lvl, msg) { log(msg); };
58   - connection.attach(ATTACH_JID, ATTACH_SID, ATTACH_RID,
59   - onConnect);
60   -
61   - // set up handler
62   - connection.addHandler(onResult, null, 'iq',
63   - 'result', 'disco-1', null);
64   -
65   - log('Strophe is attached.');
66   -
67   - // send disco#info to jabber.org
68   - var iq = $iq({to: 'jabber.org',
69   - type: 'get',
70   - id: 'disco-1'})
71   - .c('query', {xmlns: Strophe.NS.DISCO_INFO})
72   - .tree()
73   -
74   - startTime = new Date();
75   - connection.send(iq);
76   - });
77   - // -->
78   - </script>
79   - </head>
80   - <body>
81   - <h1>Strophe Attach Example</h1>
82   - <p>This example shows how to attach to an existing BOSH session with
83   - Strophe.</p>
84   - <h2>Log</h2>
85   - <div id='log'>
86   - </div>
87   - </body>
88   -</html>
89 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/examples/attach/urls.py
... ... @@ -1,19 +0,0 @@
1   -from django.conf.urls.defaults import *
2   -
3   -# Uncomment the next two lines to enable the admin:
4   -# from django.contrib import admin
5   -# admin.autodiscover()
6   -
7   -urlpatterns = patterns('',
8   - # Example:
9   - # (r'^attach/', include('attach.foo.urls')),
10   -
11   - # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
12   - # to INSTALLED_APPS to enable admin documentation:
13   - # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
14   -
15   - # Uncomment the next line to enable the admin:
16   - # (r'^admin/(.*)', admin.site.root),
17   -
18   - (r'^$', 'attach.attacher.views.index'),
19   -)
public/javascripts/strophejs-1.0.1/examples/basic.html
... ... @@ -1,25 +0,0 @@
1   -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2   -<html xmlns="http://www.w3.org/1999/xhtml">
3   -<head>
4   - <title>Strophe.js Basic Example</title>
5   - <script type='text/javascript'
6   - src='http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js'></script>
7   - <script type='text/javascript'
8   - src='../strophe.js'></script>
9   - <script type='text/javascript'
10   - src='basic.js'></script>
11   -</head>
12   -<body>
13   - <div id='login' style='text-align: center'>
14   - <form name='cred'>
15   - <label for='jid'>JID:</label>
16   - <input type='text' id='jid' />
17   - <label for='pass'>Password:</label>
18   - <input type='password' id='pass' />
19   - <input type='button' id='connect' value='connect' />
20   - </form>
21   - </div>
22   - <hr />
23   - <div id='log'></div>
24   -</body>
25   -</html>
public/javascripts/strophejs-1.0.1/examples/basic.js
... ... @@ -1,55 +0,0 @@
1   -var BOSH_SERVICE = '/xmpp-httpbind'
2   -var connection = null;
3   -
4   -function log(msg)
5   -{
6   - $('#log').append('<div></div>').append(document.createTextNode(msg));
7   -}
8   -
9   -function rawInput(data)
10   -{
11   - log('RECV: ' + data);
12   -}
13   -
14   -function rawOutput(data)
15   -{
16   - log('SENT: ' + data);
17   -}
18   -
19   -function onConnect(status)
20   -{
21   - if (status == Strophe.Status.CONNECTING) {
22   - log('Strophe is connecting.');
23   - } else if (status == Strophe.Status.CONNFAIL) {
24   - log('Strophe failed to connect.');
25   - $('#connect').get(0).value = 'connect';
26   - } else if (status == Strophe.Status.DISCONNECTING) {
27   - log('Strophe is disconnecting.');
28   - } else if (status == Strophe.Status.DISCONNECTED) {
29   - log('Strophe is disconnected.');
30   - $('#connect').get(0).value = 'connect';
31   - } else if (status == Strophe.Status.CONNECTED) {
32   - log('Strophe is connected.');
33   - connection.disconnect();
34   - }
35   -}
36   -
37   -$(document).ready(function () {
38   - connection = new Strophe.Connection(BOSH_SERVICE);
39   - connection.rawInput = rawInput;
40   - connection.rawOutput = rawOutput;
41   -
42   - $('#connect').bind('click', function () {
43   - var button = $('#connect').get(0);
44   - if (button.value == 'connect') {
45   - button.value = 'disconnect';
46   -
47   - connection.connect($('#jid').get(0).value,
48   - $('#pass').get(0).value,
49   - onConnect);
50   - } else {
51   - button.value = 'connect';
52   - connection.disconnect();
53   - }
54   - });
55   -});
56 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/examples/crossdomain.html
... ... @@ -1,32 +0,0 @@
1   -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2   -<html xmlns="http://www.w3.org/1999/xhtml">
3   -<head>
4   - <title>Strophe.js Basic Cross-Domain Example</title>
5   -
6   - <script type='text/javascript'
7   - src='http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js'></script>
8   - <script type='text/javascript'
9   - src='http://flxhr.flensed.com/code/build/flXHR.js'></script>
10   -
11   - <script type='text/javascript'
12   - src='../strophe.js'></script>
13   - <script type='text/javascript'
14   - src='../plugins/strophe.flxhr.js'></script>
15   -
16   - <script type='text/javascript'
17   - src='crossdomain.js'></script>
18   -</head>
19   -<body>
20   - <div id='login' style='text-align: center'>
21   - <form name='cred'>
22   - <label for='jid'>JID:</label>
23   - <input type='text' id='jid' />
24   - <label for='pass'>Password:</label>
25   - <input type='password' id='pass' />
26   - <input type='button' id='connect' value='connect' />
27   - </form>
28   - </div>
29   - <hr />
30   - <div id='log'></div>
31   -</body>
32   -</html>
public/javascripts/strophejs-1.0.1/examples/crossdomain.js
... ... @@ -1,62 +0,0 @@
1   -// The BOSH_SERVICE here doesn't need to be on the same domain/port, but
2   -// it must have a /crossdomain.xml policy file that allows access from
3   -// wherever crossdomain.html lives.
4   -//
5   -// Most BOSH connection managers can serve static html files, so you should
6   -// be able to configure them to serve a /crossdomain.xml file to allow
7   -// access.
8   -var BOSH_SERVICE = 'http://localhost:5281/xmpp-httpbind'
9   -var connection = null;
10   -
11   -function log(msg)
12   -{
13   - $('#log').append('<div></div>').append(document.createTextNode(msg));
14   -}
15   -
16   -function rawInput(data)
17   -{
18   - log('RECV: ' + data);
19   -}
20   -
21   -function rawOutput(data)
22   -{
23   - log('SENT: ' + data);
24   -}
25   -
26   -function onConnect(status)
27   -{
28   - if (status == Strophe.Status.CONNECTING) {
29   - log('Strophe is connecting.');
30   - } else if (status == Strophe.Status.CONNFAIL) {
31   - log('Strophe failed to connect.');
32   - $('#connect').get(0).value = 'connect';
33   - } else if (status == Strophe.Status.DISCONNECTING) {
34   - log('Strophe is disconnecting.');
35   - } else if (status == Strophe.Status.DISCONNECTED) {
36   - log('Strophe is disconnected.');
37   - $('#connect').get(0).value = 'connect';
38   - } else if (status == Strophe.Status.CONNECTED) {
39   - log('Strophe is connected.');
40   - connection.disconnect();
41   - }
42   -}
43   -
44   -$(document).ready(function () {
45   - connection = new Strophe.Connection(BOSH_SERVICE);
46   - connection.rawInput = rawInput;
47   - connection.rawOutput = rawOutput;
48   -
49   - $('#connect').bind('click', function () {
50   - var button = $('#connect').get(0);
51   - if (button.value == 'connect') {
52   - button.value = 'disconnect';
53   -
54   - connection.connect($('#jid').get(0).value,
55   - $('#pass').get(0).value,
56   - onConnect);
57   - } else {
58   - button.value = 'connect';
59   - connection.disconnect();
60   - }
61   - });
62   -});
63 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/examples/crossdomain.xml
... ... @@ -1,12 +0,0 @@
1   -<?xml version="1.0"?>
2   -<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
3   -<cross-domain-policy>
4   - <!--
5   - Cross domain policy file for allow everything. If you need more
6   - information on these, please see:
7   - http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html
8   - -->
9   - <site-control permitted-cross-domain-policies="all"/>
10   - <allow-access-from domain="*" />
11   - <allow-http-request-headers-from domain="*" headers="*" />
12   -</cross-domain-policy>
13 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/examples/dojo-ping.html
... ... @@ -1,27 +0,0 @@
1   -<!DOCTYPE html>
2   -<html>
3   - <head>
4   - <title>Strophe.js Dojo Ping Example</title>
5   - <script src="http://ajax.googleapis.com/ajax/libs/dojo/1.4/dojo/dojo.xd.js"></script>
6   - <script src='../strophe.js'></script>
7   - <script src='dojo-ping.js'></script>
8   - </head>
9   -
10   - <body>
11   - <div id='login' style='text-align: center'>
12   - <form>
13   - <div>
14   - <label for='jid'>JID:</label>
15   - <input type='text' id='jid'>
16   - <label for='pass'>Password:</label>
17   - <input type='password' id='pass'>
18   - <input type='button' id='connect' value='connect'>
19   - </div>
20   - </form>
21   - </div>
22   -
23   - <hr>
24   -
25   - <div id='log'></div>
26   - </body>
27   -</html>
public/javascripts/strophejs-1.0.1/examples/dojo-ping.js
... ... @@ -1,56 +0,0 @@
1   -var DojoPing = {
2   - BOSH_SERVICE: '/xmpp-httpbind',
3   - TARGET: 'jabber.org',
4   - connection: null
5   -};
6   -
7   -dojo.addOnLoad(function () {
8   - dojo.connect(dojo.byId('connect'), "click", function (e) {
9   - var jid = dojo.attr(dojo.byId('jid'), 'value');
10   - var pass_node = dojo.byId('pass');
11   - var pass = dojo.attr(pass_node, 'value');
12   - dojo.attr(pass_node, 'value', '');
13   -
14   - DojoPing.connection = new Strophe.Connection(DojoPing.BOSH_SERVICE);
15   -
16   - dojo.place("<p>Connecting...</p>", "log");
17   -
18   - DojoPing.connection.connect(jid, pass, function (status) {
19   - if (status === Strophe.Status.CONNECTED) {
20   - dojo.publish('connected');
21   - } else if (status === Strophe.Status.DISCONNECTED) {
22   - dojo.publish('disconnected');
23   - }
24   - });
25   - });
26   -
27   - dojo.subscribe('connected', function () {
28   - dojo.place("<p>Connected.</p>", "log");
29   -
30   - var ping = $iq({to: DojoPing.TARGET, type: 'get'})
31   - .c('query', {xmlns: Strophe.NS.DISCO_ITEMS});
32   -
33   - var sent_stamp = new Date();
34   - DojoPing.connection.sendIQ(ping, function (iq) {
35   - var elapsed = new Date() - sent_stamp;
36   -
37   - // use dojo.query on incoming stanza
38   - var items = dojo.query('items', iq);
39   - console.log(items);
40   -
41   - dojo.place("<p>Disco#items response received after " +
42   - elapsed + "ms." + DojoPing.TARGET + " reports " +
43   - "it has " + items + " disco items.</p>", "log");
44   -
45   - DojoPing.connection.disconnect();
46   - });
47   -
48   - DojoPing.connection.send(ping);
49   -
50   - dojo.place("<p>Ping sent to " + DojoPing.TARGET + ".</p>", "log");
51   - });
52   -
53   - dojo.subscribe('disconnected', function () {
54   - dojo.place("<p>Disconnected.</p>", "log");
55   - });
56   -});
57 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/examples/echobot.html
... ... @@ -1,25 +0,0 @@
1   -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2   -<html xmlns="http://www.w3.org/1999/xhtml">
3   -<head>
4   - <title>Strophe.js Echobot Example</title>
5   - <script type='text/javascript'
6   - src='http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js'></script>
7   - <script type='text/javascript'
8   - src='../strophe.js'></script>
9   - <script type='text/javascript'
10   - src='echobot.js'></script>
11   -</head>
12   -<body>
13   - <div id='login' style='text-align: center'>
14   - <form name='cred'>
15   - <label for='jid'>JID:</label>
16   - <input type='text' id='jid' />
17   - <label for='pass'>Password:</label>
18   - <input type='password' id='pass' />
19   - <input type='button' id='connect' value='connect' />
20   - </form>
21   - </div>
22   - <hr />
23   - <div id='log'></div>
24   -</body>
25   -</html>
public/javascripts/strophejs-1.0.1/examples/echobot.js
... ... @@ -1,79 +0,0 @@
1   -var BOSH_SERVICE = '/http-bind';
2   -var connection = null;
3   -
4   -function log(msg)
5   -{
6   - $('#log').append('<div></div>').append(document.createTextNode(msg));
7   -}
8   -
9   -function onConnect(status)
10   -{
11   - if (status == Strophe.Status.CONNECTING) {
12   - log('Strophe is connecting.');
13   - } else if (status == Strophe.Status.CONNFAIL) {
14   - log('Strophe failed to connect.');
15   - $('#connect').get(0).value = 'connect';
16   - } else if (status == Strophe.Status.DISCONNECTING) {
17   - log('Strophe is disconnecting.');
18   - } else if (status == Strophe.Status.DISCONNECTED) {
19   - log('Strophe is disconnected.');
20   - $('#connect').get(0).value = 'connect';
21   - } else if (status == Strophe.Status.CONNECTED) {
22   - log('Strophe is connected.');
23   - log('ECHOBOT: Send a message to ' + connection.jid +
24   - ' to talk to me.');
25   -
26   - connection.addHandler(onMessage, null, 'message', null, null, null);
27   - connection.send($pres().tree());
28   - }
29   -}
30   -
31   -function onMessage(msg) {
32   - var to = msg.getAttribute('to');
33   - var from = msg.getAttribute('from');
34   - var type = msg.getAttribute('type');
35   - var elems = msg.getElementsByTagName('body');
36   -
37   - if (type == "chat" && elems.length > 0) {
38   - var body = elems[0];
39   -
40   - log('ECHOBOT: I got a message from ' + from + ': ' +
41   - Strophe.getText(body));
42   -
43   - var reply = $msg({to: from, from: to, type: 'chat'})
44   - .cnode(Strophe.copyElement(body));
45   - connection.send(reply.tree());
46   -
47   - log('ECHOBOT: I sent ' + from + ': ' + Strophe.getText(body));
48   - }
49   -
50   - // we must return true to keep the handler alive.
51   - // returning false would remove it after it finishes.
52   - return true;
53   -}
54   -
55   -$(document).ready(function () {
56   - connection = new Strophe.Connection(BOSH_SERVICE);
57   -
58   - // Uncomment the following lines to spy on the wire traffic.
59   - //connection.rawInput = function (data) { log('RECV: ' + data); };
60   - //connection.rawOutput = function (data) { log('SEND: ' + data); };
61   -
62   - // Uncomment the following line to see all the debug output.
63   - //Strophe.log = function (level, msg) { log('LOG: ' + msg); };
64   -
65   -
66   - $('#connect').bind('click', function () {
67   - var button = $('#connect').get(0);
68   - if (button.value == 'connect') {
69   - button.value = 'disconnect';
70   -
71   - connection.connect($('#jid').get(0).value,
72   - $('#pass').get(0).value,
73   - onConnect);
74   - } else {
75   - button.value = 'connect';
76   - connection.disconnect();
77   - }
78   - });
79   -});
public/javascripts/strophejs-1.0.1/examples/prebind.html
... ... @@ -1,39 +0,0 @@
1   -<!DOCTYPE html>
2   -<html>
3   - <!--
4   - http-pre-bind example
5   -
6   - This example works with mod_http_pre_bind found here:
7   - http://github.com/thepug/Mod-Http-Pre-Bind
8   -
9   - It expects both /xmpp-httpbind to be proxied and /http-pre-bind
10   -
11   - If you want to test this out without setting it up, you can use Collecta's
12   - at http://www.collecta.com/xmpp-httpbind and
13   - http://www.collecta.com/http-pre-bind
14   - Use a JID of 'guest.collecta.com' to test.
15   - -->
16   -
17   - <head>
18   - <title>Strophe.js Pre-Bind Example</title>
19   - <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js'></script>
20   - <script src='../strophe.js'></script>
21   - <script src='prebind.js'></script>
22   - </head>
23   -
24   - <body>
25   - <div id='login' style='text-align: center'>
26   - <form name='cred'>
27   - <label for='jid'>JID:</label>
28   - <input type='text' id='jid'>
29   - <label for='pass'>Password:</label>
30   - <input type='password' id='pass'>
31   - <input type='button' id='connect' value='connect'>
32   - </form>
33   - </div>
34   -
35   - <hr>
36   -
37   - <div id='log'></div>
38   - </body>
39   -</html>
public/javascripts/strophejs-1.0.1/examples/prebind.js
... ... @@ -1,103 +0,0 @@
1   -// http-pre-bind example
2   -// This example works with mod_http_pre_bind found here:
3   -// http://github.com/thepug/Mod-Http-Pre-Bind
4   -//
5   -// It expects both /xmpp-httpbind to be proxied and /http-pre-bind
6   -//
7   -// If you want to test this out without setting it up, you can use Collecta's
8   -// at http://www.collecta.com/xmpp-httpbind and
9   -// http://www.collecta.com/http-pre-bind
10   -// Use a JID of 'guest.collecta.com' to test.
11   -
12   -var BOSH_SERVICE = '/xmpp-httpbind';
13   -var PREBIND_SERVICE = '/http-pre-bind';
14   -var connection = null;
15   -
16   -function log(msg)
17   -{
18   - $('#log').append('<div></div>').append(document.createTextNode(msg));
19   -}
20   -
21   -function rawInput(data)
22   -{
23   - log('RECV: ' + data);
24   -}
25   -
26   -function rawOutput(data)
27   -{
28   - log('SENT: ' + data);
29   -}
30   -
31   -function onConnect(status)
32   -{
33   - if (status === Strophe.Status.CONNECTING) {
34   - log('Strophe is connecting.');
35   - } else if (status === Strophe.Status.CONNFAIL) {
36   - log('Strophe failed to connect.');
37   - $('#connect').get(0).value = 'connect';
38   - } else if (status === Strophe.Status.DISCONNECTING) {
39   - log('Strophe is disconnecting.');
40   - } else if (status === Strophe.Status.DISCONNECTED) {
41   - log('Strophe is disconnected.');
42   - $('#connect').get(0).value = 'connect';
43   - } else if (status === Strophe.Status.CONNECTED) {
44   - log('Strophe is connected.');
45   - connection.disconnect();
46   - } else if (status === Strophe.Status.ATTACHED) {
47   - log('Strophe is attached.');
48   - connection.disconnect();
49   - }
50   -}
51   -
52   -function normal_connect() {
53   - log('Prebind failed. Connecting normally...');
54   -
55   - connection = new Strophe.Connection(BOSH_SERVICE);
56   - connection.rawInput = rawInput;
57   - connection.rawOutput = rawOutput;
58   -
59   - connection.connect($('#jid').val(), $('#pass').val(), onConnect);
60   -}
61   -
62   -function attach(data) {
63   - log('Prebind succeeded. Attaching...');
64   -
65   - connection = new Strophe.Connection(BOSH_SERVICE);
66   - connection.rawInput = rawInput;
67   - connection.rawOutput = rawOutput;
68   -
69   - var $body = $(data.documentElement);
70   - connection.attach($body.find('jid').text(),
71   - $body.attr('sid'),
72   - parseInt($body.attr('rid'), 10) + 1,
73   - onConnect);
74   -}
75   -
76   -$(document).ready(function () {
77   - $('#connect').bind('click', function () {
78   - var button = $('#connect').get(0);
79   - if (button.value == 'connect') {
80   - button.value = 'disconnect';
81   -
82   - // attempt prebind
83   - $.ajax({
84   - type: 'POST',
85   - url: PREBIND_SERVICE,
86   - contentType: 'text/xml',
87   - processData: false,
88   - data: $build('body', {
89   - to: Strophe.getDomainFromJid($('#jid').val()),
90   - rid: '' + Math.floor(Math.random() * 4294967295),
91   - wait: '60',
92   - hold: '1'}).toString(),
93   - dataType: 'xml',
94   - error: normal_connect,
95   - success: attach});
96   - } else {
97   - button.value = 'connect';
98   - if (connection) {
99   - connection.disconnect();
100   - }
101   - }
102   - });
103   -});
104 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/examples/prototype-ping.html
... ... @@ -1,27 +0,0 @@
1   -<!DOCTYPE html>
2   -<html>
3   - <head>
4   - <title>Strophe.js Prototype Ping Example</title>
5   - <script src='http://ajax.googleapis.com/ajax/libs/prototype/1.6.1.0/prototype.js'></script>
6   - <script src='../strophe.js'></script>
7   - <script src='prototype-ping.js'></script>
8   - </head>
9   -
10   - <body>
11   - <div id='login' style='text-align: center'>
12   - <form>
13   - <div>
14   - <label for='jid'>JID:</label>
15   - <input type='text' id='jid'>
16   - <label for='pass'>Password:</label>
17   - <input type='password' id='pass'>
18   - <input type='button' id='connect' value='connect'>
19   - </div>
20   - </form>
21   - </div>
22   -
23   - <hr>
24   -
25   - <div id='log'></div>
26   - </body>
27   -</html>
public/javascripts/strophejs-1.0.1/examples/prototype-ping.js
... ... @@ -1,56 +0,0 @@
1   -var ProtoPing = {
2   - BOSH_SERVICE: '/xmpp-httpbind',
3   - TARGET: 'jabber.org',
4   - connection: null
5   -};
6   -
7   -document.observe('dom:loaded', function () {
8   - var log = $('log');
9   -
10   - $('connect').observe('click', function () {
11   - var jid = $F('jid');
12   - var pass = $F('pass');
13   - Form.Element.setValue('pass', '');
14   -
15   - ProtoPing.connection = new Strophe.Connection(ProtoPing.BOSH_SERVICE);
16   -
17   - log.insert("<p>Connecting...</p>");
18   -
19   - ProtoPing.connection.connect(jid, pass, function (status) {
20   - if (status === Strophe.Status.CONNECTED) {
21   - document.fire('strophe:connected');
22   - } else if (status === Strophe.Status.DISCONNECTED) {
23   - document.fire('strophe:disconnected');
24   - }
25   - });
26   - });
27   -
28   - document.observe('strophe:connected', function () {
29   - log.insert('<p>Connected.</p>');
30   -
31   - var ping = $iq({to: ProtoPing.TARGET, type: 'get'})
32   - .c('query', {xmlns: Strophe.NS.DISCO_ITEMS});
33   -
34   - var sent_stamp = new Date();
35   - ProtoPing.connection.sendIQ(ping, function (iq) {
36   - var elapsed = new Date() - sent_stamp;
37   -
38   - // use Prototype's selectors to access XMPP stanza
39   - var items = Selector.findChildElements(iq, ['item']);
40   -
41   - log.insert("<p>Disco#items response received after " +
42   - elapsed + "ms." + ProtoPing.TARGET + " reports " +
43   - "it has " + items + " disco items.</p>");
44   -
45   - ProtoPing.connection.disconnect();
46   - });
47   -
48   - ProtoPing.connection.send(ping);
49   -
50   - log.insert("<p>Ping sent to " + ProtoPing.TARGET + ".</p>");
51   - });
52   -
53   - document.observe('strophe:disconnected', function () {
54   - log.insert('<p>Disconnected.</p>');
55   - });
56   -});
57 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/examples/yui-ping.html
... ... @@ -1,26 +0,0 @@
1   -<!DOCTYPE html>
2   -<html>
3   - <head>
4   - <title>Strophe.js YUI3 Ping Example</title>
5   - <script src='http://yui.yahooapis.com/3.0.0/build/yui/yui-min.js'></script>
6   - <script src='../strophe.js'></script>
7   - <script src='yui-ping.js'></script>
8   - </head>
9   - <body>
10   - <div id='login' style='text-align: center'>
11   - <form>
12   - <div>
13   - <label for='jid'>JID:</label>
14   - <input type='text' id='jid'>
15   - <label for='pass'>Password:</label>
16   - <input type='password' id='pass'>
17   - <input type='button' id='connect' value='connect'>
18   - </div>
19   - </form>
20   - </div>
21   -
22   - <hr>
23   -
24   - <div id='log'></div>
25   - </body>
26   -</html>
public/javascripts/strophejs-1.0.1/examples/yui-ping.js
... ... @@ -1,58 +0,0 @@
1   -YUI().use('node', function (Y) {
2   - var BOSH_SERVICE = '/xmpp-httpbind';
3   - var connection = null;
4   -
5   - var log = Y.one('#log');
6   -
7   - Y.augment(Strophe.Connection, Y.EventTarget);
8   -
9   - Y.one('#connect').on('click', function (e) {
10   - var jid = Y.one('#jid').get('value');
11   - var pass_node = Y.one('#pass');
12   - var pass = pass_node.get('value');
13   - pass_node.set('value', '');
14   -
15   - connection = new Strophe.Connection(BOSH_SERVICE);
16   -
17   - log.append('<p>Connecting...</p>');
18   -
19   - connection.connect(jid, pass, function (status) {
20   - if (status === Strophe.Status.CONNECTED) {
21   - connection.fire('connected');
22   - } else if (status === Strophe.Status.DISCONNECTED) {
23   - connection.fire('disconnected');
24   - }
25   - });
26   -
27   - connection.on('connected', function () {
28   - log.append('<p>Connected.</p>');
29   -
30   - var ping = $iq({to: 'jabber.org', type: 'get'})
31   - .c('query', {xmlns: Strophe.NS.DISCO_ITEMS});
32   -
33   - var sent_stamp = new Date();
34   - connection.sendIQ(ping, function (iq) {
35   - var elapsed = new Date() - sent_stamp;
36   -
37   - // convert incoming XMPP stanza to a Node
38   - var stanza = Y.Selector.query('item', iq, null, true);
39   - window['stanza'] = iq;
40   - window['Y'] = Y;
41   -
42   - console.log(stanza);
43   -
44   - log.append("<p>Disco#items response received after " +
45   - elapsed + "ms. Jabber.org reports it has " +
46   - items + " items.</p>");
47   -
48   - connection.disconnect();
49   - });
50   -
51   - log.append('<p>Ping sent.</p>');
52   - });
53   -
54   - connection.on('disconnected', function () {
55   - log.append('<p>Disconnected.</p>');
56   - });
57   - });
58   -});
59 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/plugins/strophe.flxhr.js
... ... @@ -1,31 +0,0 @@
1   -/* flXHR plugin
2   -**
3   -** This plugin implements cross-domain XmlHttpRequests via an invisible
4   -** Flash plugin.
5   -**
6   -** In order for this to work, the BOSH service *must* serve a
7   -** crossdomain.xml file that allows the client access.
8   -**
9   -** flXHR.js should be loaded before this plugin.
10   -*/
11   -
12   -Strophe.addConnectionPlugin('flxhr', {
13   - init: function () {
14   - // replace Strophe.Request._newXHR with new flXHR version
15   - // if flXHR is detected
16   - if (flensed && flensed.flXHR) {
17   - Strophe.Request.prototype._newXHR = function () {
18   - var xhr = new flensed.flXHR({
19   - autoUpdatePlayer: true,
20   - instancePooling: true,
21   - noCacheHeader: false});
22   - xhr.onreadystatechange = this.func.prependArg(this);
23   -
24   - return xhr;
25   - };
26   - } else {
27   - Strophe.error("flXHR plugin loaded, but flXHR not found." +
28   - " Falling back to native XHR implementation.");
29   - }
30   - }
31   -});
public/javascripts/strophejs-1.0.1/plugins/strophe.flxhr.min.js
... ... @@ -1 +0,0 @@
1   -Strophe.addConnectionPlugin("flxhr",{init:function(){if(flensed&&flensed.flXHR){Strophe.Request.prototype._newXHR=function(){var xhr=new flensed.flXHR({autoUpdatePlayer:true,instancePooling:true,noCacheHeader:false});xhr.onreadystatechange=this.func.prependArg(this);return xhr}}else{Strophe.error("flXHR plugin loaded, but flXHR not found. Falling back to native XHR implementation.")}}});
2 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/plugins/strophe.pubsub.js
... ... @@ -1,270 +0,0 @@
1   -/*
2   - Copyright 2008, Stanziq Inc.
3   -*/
4   -
5   -Strophe.addConnectionPlugin('pubsub', {
6   -/*
7   - Extend connection object to have plugin name 'pubsub'.
8   -*/
9   - _connection: null,
10   -
11   - //The plugin must have the init function.
12   - init: function(conn) {
13   -
14   - this._connection = conn;
15   -
16   - /*
17   - Function used to setup plugin.
18   - */
19   -
20   - /* extend name space
21   - * NS.PUBSUB - XMPP Publish Subscribe namespace
22   - * from XEP 60.
23   - *
24   - * NS.PUBSUB_SUBSCRIBE_OPTIONS - XMPP pubsub
25   - * options namespace from XEP 60.
26   - */
27   - Strophe.addNamespace('PUBSUB',"http://jabber.org/protocol/pubsub");
28   - Strophe.addNamespace('PUBSUB_SUBSCRIBE_OPTIONS',
29   - Strophe.NS.PUBSUB+"#subscribe_options");
30   - Strophe.addNamespace('PUBSUB_ERRORS',Strophe.NS.PUBSUB+"#errors");
31   - Strophe.addNamespace('PUBSUB_EVENT',Strophe.NS.PUBSUB+"#event");
32   - Strophe.addNamespace('PUBSUB_OWNER',Strophe.NS.PUBSUB+"#owner");
33   - Strophe.addNamespace('PUBSUB_AUTO_CREATE',
34   - Strophe.NS.PUBSUB+"#auto-create");
35   - Strophe.addNamespace('PUBSUB_PUBLISH_OPTIONS',
36   - Strophe.NS.PUBSUB+"#publish-options");
37   - Strophe.addNamespace('PUBSUB_NODE_CONFIG',
38   - Strophe.NS.PUBSUB+"#node_config");
39   - Strophe.addNamespace('PUBSUB_CREATE_AND_CONFIGURE',
40   - Strophe.NS.PUBSUB+"#create-and-configure");
41   - Strophe.addNamespace('PUBSUB_SUBSCRIBE_AUTHORIZATION',
42   - Strophe.NS.PUBSUB+"#subscribe_authorization");
43   - Strophe.addNamespace('PUBSUB_GET_PENDING',
44   - Strophe.NS.PUBSUB+"#get-pending");
45   - Strophe.addNamespace('PUBSUB_MANAGE_SUBSCRIPTIONS',
46   - Strophe.NS.PUBSUB+"#manage-subscriptions");
47   - Strophe.addNamespace('PUBSUB_META_DATA',
48   - Strophe.NS.PUBSUB+"#meta-data");
49   -
50   - },
51   - /***Function
52   -
53   - Create a pubsub node on the given service with the given node
54   - name.
55   -
56   - Parameters:
57   - (String) jid - The node owner's jid.
58   - (String) service - The name of the pubsub service.
59   - (String) node - The name of the pubsub node.
60   - (Dictionary) options - The configuration options for the node.
61   - (Function) call_back - Used to determine if node
62   - creation was sucessful.
63   -
64   - Returns:
65   - Iq id used to send subscription.
66   - */
67   - createNode: function(jid,service,node,options, call_back) {
68   -
69   - var iqid = this._connection.getUniqueId("pubsubcreatenode");
70   -
71   - var iq = $iq({from:jid, to:service, type:'set', id:iqid});
72   -
73   - var c_options = Strophe.xmlElement("configure",[]);
74   - var x = Strophe.xmlElement("x",[["xmlns","jabber:x:data"]]);
75   - var form_field = Strophe.xmlElement("field",[["var","FORM_TYPE"],
76   - ["type","hidden"]]);
77   - var value = Strophe.xmlElement("value",[]);
78   - var text = Strophe.xmlTextNode(Strophe.NS.PUBSUB+"#node_config");
79   - value.appendChild(text);
80   - form_field.appendChild(value);
81   - x.appendChild(form_field);
82   -
83   - for (var i in options)
84   - {
85   - var val = options[i];
86   - x.appendChild(val);
87   - }
88   -
89   - if(options.length && options.length != 0)
90   - {
91   - c_options.appendChild(x);
92   - }
93   -
94   - iq.c('pubsub',
95   - {xmlns:Strophe.NS.PUBSUB}).c('create',
96   - {node:node}).up().cnode(c_options);
97   -
98   - this._connection.addHandler(call_back,
99   - null,
100   - 'iq',
101   - null,
102   - iqid,
103   - null);
104   - this._connection.send(iq.tree());
105   - return iqid;
106   - },
107   - /***Function
108   - Subscribe to a node in order to receive event items.
109   -
110   - Parameters:
111   - (String) jid - The node owner's jid.
112   - (String) service - The name of the pubsub service.
113   - (String) node - The name of the pubsub node.
114   - (Array) options - The configuration options for the node.
115   - (Function) event_cb - Used to recieve subscription events.
116   - (Function) call_back - Used to determine if node
117   - creation was sucessful.
118   -
119   - Returns:
120   - Iq id used to send subscription.
121   - */
122   - subscribe: function(jid,service,node,options, event_cb, call_back) {
123   -
124   - var subid = this._connection.getUniqueId("subscribenode");
125   -
126   - //create subscription options
127   - var sub_options = Strophe.xmlElement("options",[]);
128   - var x = Strophe.xmlElement("x",[["xmlns","jabber:x:data"]]);
129   - var form_field = Strophe.xmlElement("field",[["var","FORM_TYPE"],
130   - ["type","hidden"]]);
131   - var value = Strophe.xmlElement("value",[]);
132   - var text = Strophe.xmlTextNode(Strophe.NS.PUBSUB_SUBSCRIBE_OPTIONS);
133   - value.appendChild(text);
134   - form_field.appendChild(value);
135   - x.appendChild(form_field);
136   -
137   - var sub = $iq({from:jid, to:service, type:'set', id:subid})
138   -
139   - if(options && options.length && options.length !== 0)
140   - {
141   - for (var i = 0; i < options.length; i++)
142   - {
143   - var val = options[i];
144   - x.appendChild(val);
145   - }
146   - sub_options.appendChild(x);
147   -
148   - sub.c('pubsub', { xmlns:Strophe.NS.PUBSUB }).c('subscribe',
149   - {node:node,jid:jid}).up().cnode(sub_options);
150   - }
151   - else
152   - {
153   -
154   - sub.c('pubsub', { xmlns:Strophe.NS.PUBSUB }).c('subscribe',
155   - {node:node,jid:jid});
156   - }
157   -
158   -
159   - this._connection.addHandler(call_back,
160   - null,
161   - 'iq',
162   - null,
163   - subid,
164   - null);
165   -
166   - //add the event handler to receive items
167   - this._connection.addHandler(event_cb,
168   - null,
169   - 'message',
170   - null,
171   - null,
172   - null);
173   - this._connection.send(sub.tree());
174   - return subid;
175   -
176   - },
177   - /***Function
178   - Unsubscribe from a node.
179   -
180   - Parameters:
181   - (String) jid - The node owner's jid.
182   - (String) service - The name of the pubsub service.
183   - (String) node - The name of the pubsub node.
184   - (Function) call_back - Used to determine if node
185   - creation was sucessful.
186   -
187   - */
188   - unsubscribe: function(jid,service,node, call_back) {
189   -
190   - var subid = this._connection.getUniqueId("unsubscribenode");
191   -
192   -
193   - var sub = $iq({from:jid, to:service, type:'set', id:subid})
194   - sub.c('pubsub', { xmlns:Strophe.NS.PUBSUB }).c('unsubscribe',
195   - {node:node,jid:jid});
196   -
197   -
198   -
199   - this._connection.addHandler(call_back,
200   - null,
201   - 'iq',
202   - null,
203   - subid,
204   - null);
205   - this._connection.send(sub.tree());
206   -
207   -
208   - return subid;
209   -
210   - },
211   - /***Function
212   -
213   - Publish and item to the given pubsub node.
214   -
215   - Parameters:
216   - (String) jid - The node owner's jid.
217   - (String) service - The name of the pubsub service.
218   - (String) node - The name of the pubsub node.
219   - (Array) items - The list of items to be published.
220   - (Function) call_back - Used to determine if node
221   - creation was sucessful.
222   - */
223   - publish: function(jid, service, node, items, call_back) {
224   - var pubid = this._connection.getUniqueId("publishnode");
225   -
226   -
227   - var publish_elem = Strophe.xmlElement("publish",
228   - [["node",
229   - node],
230   - ["jid",
231   - jid]]);
232   - for (var i in items)
233   - {
234   - var item = Strophe.xmlElement("item",[]);
235   - var entry = Strophe.xmlElement("entry",[]);
236   - var t = Strophe.xmlTextNode(items[i]);
237   - entry.appendChild(t);
238   - item.appendChild(entry);
239   - publish_elem.appendChild(item);
240   - }
241   -
242   - var pub = $iq({from:jid, to:service, type:'set', id:pubid})
243   - pub.c('pubsub', { xmlns:Strophe.NS.PUBSUB }).cnode(publish_elem);
244   -
245   -
246   - this._connection.addHandler(call_back,
247   - null,
248   - 'iq',
249   - null,
250   - pubid,
251   - null);
252   - this._connection.send(pub.tree());
253   -
254   -
255   - return pubid;
256   - },
257   - /*Function: items
258   - Used to retrieve the persistent items from the pubsub node.
259   -
260   - */
261   - items: function(jid,service,node,ok_callback,error_back) {
262   - var pub = $iq({from:jid, to:service, type:'get'})
263   -
264   - //ask for all items
265   - pub.c('pubsub',
266   - { xmlns:Strophe.NS.PUBSUB }).c('items',{node:node});
267   -
268   - return this._connection.sendIQ(pub.tree(),ok_callback,error_back);
269   - }
270   -});
public/javascripts/strophejs-1.0.1/plugins/strophe.pubsub.min.js
... ... @@ -1 +0,0 @@
1   -Strophe.addConnectionPlugin("pubsub",{_connection:null,init:function(conn){this._connection=conn;Strophe.addNamespace("PUBSUB","http://jabber.org/protocol/pubsub");Strophe.addNamespace("PUBSUB_SUBSCRIBE_OPTIONS",Strophe.NS.PUBSUB+"#subscribe_options");Strophe.addNamespace("PUBSUB_ERRORS",Strophe.NS.PUBSUB+"#errors");Strophe.addNamespace("PUBSUB_EVENT",Strophe.NS.PUBSUB+"#event");Strophe.addNamespace("PUBSUB_OWNER",Strophe.NS.PUBSUB+"#owner");Strophe.addNamespace("PUBSUB_AUTO_CREATE",Strophe.NS.PUBSUB+"#auto-create");Strophe.addNamespace("PUBSUB_PUBLISH_OPTIONS",Strophe.NS.PUBSUB+"#publish-options");Strophe.addNamespace("PUBSUB_NODE_CONFIG",Strophe.NS.PUBSUB+"#node_config");Strophe.addNamespace("PUBSUB_CREATE_AND_CONFIGURE",Strophe.NS.PUBSUB+"#create-and-configure");Strophe.addNamespace("PUBSUB_SUBSCRIBE_AUTHORIZATION",Strophe.NS.PUBSUB+"#subscribe_authorization");Strophe.addNamespace("PUBSUB_GET_PENDING",Strophe.NS.PUBSUB+"#get-pending");Strophe.addNamespace("PUBSUB_MANAGE_SUBSCRIPTIONS",Strophe.NS.PUBSUB+"#manage-subscriptions");Strophe.addNamespace("PUBSUB_META_DATA",Strophe.NS.PUBSUB+"#meta-data")},createNode:function(jid,service,node,options,call_back){var iqid=this._connection.getUniqueId("pubsubcreatenode");var iq=$iq({from:jid,to:service,type:"set",id:iqid});var c_options=Strophe.xmlElement("configure",[]);var x=Strophe.xmlElement("x",[["xmlns","jabber:x:data"]]);var form_field=Strophe.xmlElement("field",[["var","FORM_TYPE"],["type","hidden"]]);var value=Strophe.xmlElement("value",[]);var text=Strophe.xmlTextNode(Strophe.NS.PUBSUB+"#node_config");value.appendChild(text);form_field.appendChild(value);x.appendChild(form_field);for(var i in options){var val=options[i];x.appendChild(val)}if(options.length&&options.length!=0){c_options.appendChild(x)}iq.c("pubsub",{xmlns:Strophe.NS.PUBSUB}).c("create",{node:node}).up().cnode(c_options);this._connection.addHandler(call_back,null,"iq",null,iqid,null);this._connection.send(iq.tree());return iqid},subscribe:function(jid,service,node,options,event_cb,call_back){var subid=this._connection.getUniqueId("subscribenode");var sub_options=Strophe.xmlElement("options",[]);var x=Strophe.xmlElement("x",[["xmlns","jabber:x:data"]]);var form_field=Strophe.xmlElement("field",[["var","FORM_TYPE"],["type","hidden"]]);var value=Strophe.xmlElement("value",[]);var text=Strophe.xmlTextNode(Strophe.NS.PUBSUB_SUBSCRIBE_OPTIONS);value.appendChild(text);form_field.appendChild(value);x.appendChild(form_field);var sub=$iq({from:jid,to:service,type:"set",id:subid});if(options&&options.length&&options.length!==0){for(var i=0;i<options.length;i++){var val=options[i];x.appendChild(val)}sub_options.appendChild(x);sub.c("pubsub",{xmlns:Strophe.NS.PUBSUB}).c("subscribe",{node:node,jid:jid}).up().cnode(sub_options)}else{sub.c("pubsub",{xmlns:Strophe.NS.PUBSUB}).c("subscribe",{node:node,jid:jid})}this._connection.addHandler(call_back,null,"iq",null,subid,null);this._connection.addHandler(event_cb,null,"message",null,null,null);this._connection.send(sub.tree());return subid},unsubscribe:function(jid,service,node,call_back){var subid=this._connection.getUniqueId("unsubscribenode");var sub=$iq({from:jid,to:service,type:"set",id:subid});sub.c("pubsub",{xmlns:Strophe.NS.PUBSUB}).c("unsubscribe",{node:node,jid:jid});this._connection.addHandler(call_back,null,"iq",null,subid,null);this._connection.send(sub.tree());return subid},publish:function(jid,service,node,items,call_back){var pubid=this._connection.getUniqueId("publishnode");var publish_elem=Strophe.xmlElement("publish",[["node",node],["jid",jid]]);for(var i in items){var item=Strophe.xmlElement("item",[]);var entry=Strophe.xmlElement("entry",[]);var t=Strophe.xmlTextNode(items[i]);entry.appendChild(t);item.appendChild(entry);publish_elem.appendChild(item)}var pub=$iq({from:jid,to:service,type:"set",id:pubid});pub.c("pubsub",{xmlns:Strophe.NS.PUBSUB}).cnode(publish_elem);this._connection.addHandler(call_back,null,"iq",null,pubid,null);this._connection.send(pub.tree());return pubid},items:function(jid,service,node,ok_callback,error_back){var pub=$iq({from:jid,to:service,type:"get"});pub.c("pubsub",{xmlns:Strophe.NS.PUBSUB}).c("items",{node:node});return this._connection.sendIQ(pub.tree(),ok_callback,error_back)}});
2 0 \ No newline at end of file
public/javascripts/strophejs-1.0.1/strophe.js
... ... @@ -1,3543 +0,0 @@
1   -// This code was written by Tyler Akins and has been placed in the
2   -// public domain. It would be nice if you left this header intact.
3   -// Base64 code from Tyler Akins -- http://rumkin.com
4   -
5   -var Base64 = (function () {
6   - var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
7   -
8   - var obj = {
9   - /**
10   - * Encodes a string in base64
11   - * @param {String} input The string to encode in base64.
12   - */
13   - encode: function (input) {
14   - var output = "";
15   - var chr1, chr2, chr3;
16   - var enc1, enc2, enc3, enc4;
17   - var i = 0;
18   -
19   - do {
20   - chr1 = input.charCodeAt(i++);
21   - chr2 = input.charCodeAt(i++);
22   - chr3 = input.charCodeAt(i++);
23   -
24   - enc1 = chr1 >> 2;
25   - enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
26   - enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
27   - enc4 = chr3 & 63;
28   -
29   - if (isNaN(chr2)) {
30   - enc3 = enc4 = 64;
31   - } else if (isNaN(chr3)) {
32   - enc4 = 64;
33   - }
34   -
35   - output = output + keyStr.charAt(enc1) + keyStr.charAt(enc2) +
36   - keyStr.charAt(enc3) + keyStr.charAt(enc4);
37   - } while (i < input.length);
38   -
39   - return output;
40   - },
41   -
42   - /**
43   - * Decodes a base64 string.
44   - * @param {String} input The string to decode.
45   - */
46   - decode: function (input) {
47   - var output = "";
48   - var chr1, chr2, chr3;
49   - var enc1, enc2, enc3, enc4;
50   - var i = 0;
51   -
52   - // remove all characters that are not A-Z, a-z, 0-9, +, /, or =
53   - input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
54   -
55   - do {
56   - enc1 = keyStr.indexOf(input.charAt(i++));
57   - enc2 = keyStr.indexOf(input.charAt(i++));
58   - enc3 = keyStr.indexOf(input.charAt(i++));
59   - enc4 = keyStr.indexOf(input.charAt(i++));
60   -
61   - chr1 = (enc1 << 2) | (enc2 >> 4);
62   - chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
63   - chr3 = ((enc3 & 3) << 6) | enc4;
64   -
65   - output = output + String.fromCharCode(chr1);
66   -
67   - if (enc3 != 64) {
68   - output = output + String.fromCharCode(chr2);
69   - }
70   - if (enc4 != 64) {
71   - output = output + String.fromCharCode(chr3);
72   - }
73   - } while (i < input.length);
74   -
75   - return output;
76   - }
77   - };
78   -
79   - return obj;
80   -})();
81   -/*
82   - * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
83   - * Digest Algorithm, as defined in RFC 1321.
84   - * Version 2.1 Copyright (C) Paul Johnston 1999 - 2002.
85   - * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
86   - * Distributed under the BSD License
87   - * See http://pajhome.org.uk/crypt/md5 for more info.
88   - */
89   -
90   -var MD5 = (function () {
91   - /*
92   - * Configurable variables. You may need to tweak these to be compatible with
93   - * the server-side, but the defaults work in most cases.
94   - */
95   - var hexcase = 0; /* hex output format. 0 - lowercase; 1 - uppercase */
96   - var b64pad = ""; /* base-64 pad character. "=" for strict RFC compliance */
97   - var chrsz = 8; /* bits per input character. 8 - ASCII; 16 - Unicode */
98   -
99   - /*
100   - * Add integers, wrapping at 2^32. This uses 16-bit operations internally
101   - * to work around bugs in some JS interpreters.
102   - */
103   - var safe_add = function (x, y) {
104   - var lsw = (x & 0xFFFF) + (y & 0xFFFF);
105   - var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
106   - return (msw << 16) | (lsw & 0xFFFF);
107   - };
108   -
109   - /*
110   - * Bitwise rotate a 32-bit number to the left.
111   - */
112   - var bit_rol = function (num, cnt) {
113   - return (num << cnt) | (num >>> (32 - cnt));
114   - };
115   -
116   - /*
117   - * Convert a string to an array of little-endian words
118   - * If chrsz is ASCII, characters >255 have their hi-byte silently ignored.
119   - */
120   - var str2binl = function (str) {
121   - var bin = [];
122   - var mask = (1 << chrsz) - 1;
123   - for(var i = 0; i < str.length * chrsz; i += chrsz)
124   - {
125   - bin[i>>5] |= (str.charCodeAt(i / chrsz) & mask) << (i%32);
126   - }
127   - return bin;
128   - };
129   -
130   - /*
131   - * Convert an array of little-endian words to a string
132   - */
133   - var binl2str = function (bin) {
134   - var str = "";
135   - var mask = (1 << chrsz) - 1;
136   - for(var i = 0; i < bin.length * 32; i += chrsz)
137   - {
138   - str += String.fromCharCode((bin[i>>5] >>> (i % 32)) & mask);
139   - }
140   - return str;
141   - };
142   -
143   - /*
144   - * Convert an array of little-endian words to a hex string.
145   - */
146   - var binl2hex = function (binarray) {
147   - var hex_tab = hexcase ? "0123456789ABCDEF" : "0123456789abcdef";
148   - var str = "";
149   - for(var i = 0; i < binarray.length * 4; i++)
150   - {
151   - str += hex_tab.charAt((binarray[i>>2] >> ((i%4)*8+4)) & 0xF) +
152   - hex_tab.charAt((binarray[i>>2] >> ((i%4)*8 )) & 0xF);
153   - }
154   - return str;
155   - };
156   -
157   - /*
158   - * Convert an array of little-endian words to a base-64 string
159   - */
160   - var binl2b64 = function (binarray) {
161   - var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
162   - var str = "";
163   - var triplet, j;
164   - for(var i = 0; i < binarray.length * 4; i += 3)
165   - {
166   - triplet = (((binarray[i >> 2] >> 8 * ( i %4)) & 0xFF) << 16) |
167   - (((binarray[i+1 >> 2] >> 8 * ((i+1)%4)) & 0xFF) << 8 ) |
168   - ((binarray[i+2 >> 2] >> 8 * ((i+2)%4)) & 0xFF);
169   - for(j = 0; j < 4; j++)
170   - {
171   - if(i * 8 + j * 6 > binarray.length * 32) { str += b64pad; }
172   - else { str += tab.charAt((triplet >> 6*(3-j)) & 0x3F); }
173   - }
174   - }
175   - return str;
176   - };
177   -
178   - /*
179   - * These functions implement the four basic operations the algorithm uses.
180   - */
181   - var md5_cmn = function (q, a, b, x, s, t) {
182   - return safe_add(bit_rol(safe_add(safe_add(a, q),safe_add(x, t)), s),b);
183   - };
184   -
185   - var md5_ff = function (a, b, c, d, x, s, t) {
186   - return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t);
187   - };
188   -
189   - var md5_gg = function (a, b, c, d, x, s, t) {
190   - return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t);
191   - };
192   -
193   - var md5_hh = function (a, b, c, d, x, s, t) {
194   - return md5_cmn(b ^ c ^ d, a, b, x, s, t);
195   - };
196   -
197   - var md5_ii = function (a, b, c, d, x, s, t) {
198   - return md5_cmn(c ^ (b | (~d)), a, b, x, s, t);
199   - };
200   -
201   - /*
202   - * Calculate the MD5 of an array of little-endian words, and a bit length
203   - */
204   - var core_md5 = function (x, len) {
205   - /* append padding */
206   - x[len >> 5] |= 0x80 << ((len) % 32);
207   - x[(((len + 64) >>> 9) << 4) + 14] = len;
208   -
209   - var a = 1732584193;
210   - var b = -271733879;
211   - var c = -1732584194;
212   - var d = 271733878;
213   -
214   - var olda, oldb, oldc, oldd;
215   - for (var i = 0; i < x.length; i += 16)
216   - {
217   - olda = a;
218   - oldb = b;
219   - oldc = c;
220   - oldd = d;
221   -
222   - a = md5_ff(a, b, c, d, x[i+ 0], 7 , -680876936);
223   - d = md5_ff(d, a, b, c, x[i+ 1], 12, -389564586);
224   - c = md5_ff(c, d, a, b, x[i+ 2], 17, 606105819);
225   - b = md5_ff(b, c, d, a, x[i+ 3], 22, -1044525330);
226   - a = md5_ff(a, b, c, d, x[i+ 4], 7 , -176418897);
227   - d = md5_ff(d, a, b, c, x[i+ 5], 12, 1200080426);
228   - c = md5_ff(c, d, a, b, x[i+ 6], 17, -1473231341);
229   - b = md5_ff(b, c, d, a, x[i+ 7], 22, -45705983);
230   - a = md5_ff(a, b, c, d, x[i+ 8], 7 , 1770035416);
231   - d = md5_ff(d, a, b, c, x[i+ 9], 12, -1958414417);
232   - c = md5_ff(c, d, a, b, x[i+10], 17, -42063);
233   - b = md5_ff(b, c, d, a, x[i+11], 22, -1990404162);
234   - a = md5_ff(a, b, c, d, x[i+12], 7 , 1804603682);
235   - d = md5_ff(d, a, b, c, x[i+13], 12, -40341101);
236   - c = md5_ff(c, d, a, b, x[i+14], 17, -1502002290);
237   - b = md5_ff(b, c, d, a, x[i+15], 22, 1236535329);
238   -
239   - a = md5_gg(a, b, c, d, x[i+ 1], 5 , -165796510);
240   - d = md5_gg(d, a, b, c, x[i+ 6], 9 , -1069501632);
241   - c = md5_gg(c, d, a, b, x[i+11], 14, 643717713);
242   - b = md5_gg(b, c, d, a, x[i+ 0], 20, -373897302);
243   - a = md5_gg(a, b, c, d, x[i+ 5], 5 , -701558691);
244   - d = md5_gg(d, a, b, c, x[i+10], 9 , 38016083);
245   - c = md5_gg(c, d, a, b, x[i+15], 14, -660478335);
246   - b = md5_gg(b, c, d, a, x[i+ 4], 20, -405537848);
247   - a = md5_gg(a, b, c, d, x[i+ 9], 5 , 568446438);
248   - d = md5_gg(d, a, b, c, x[i+14], 9 , -1019803690);
249   - c = md5_gg(c, d, a, b, x[i+ 3], 14, -187363961);
250   - b = md5_gg(b, c, d, a, x[i+ 8], 20, 1163531501);
251   - a = md5_gg(a, b, c, d, x[i+13], 5 , -1444681467);
252   - d = md5_gg(d, a, b, c, x[i+ 2], 9 , -51403784);
253   - c = md5_gg(c, d, a, b, x[i+ 7], 14, 1735328473);
254   - b = md5_gg(b, c, d, a, x[i+12], 20, -1926607734);
255   -
256   - a = md5_hh(a, b, c, d, x[i+ 5], 4 , -378558);
257   - d = md5_hh(d, a, b, c, x[i+ 8], 11, -2022574463);
258   - c = md5_hh(c, d, a, b, x[i+11], 16, 1839030562);
259   - b = md5_hh(b, c, d, a, x[i+14], 23, -35309556);
260   - a = md5_hh(a, b, c, d, x[i+ 1], 4 , -1530992060);
261   - d = md5_hh(d, a, b, c, x[i+ 4], 11, 1272893353);
262   - c = md5_hh(c, d, a, b, x[i+ 7], 16, -155497632);
263   - b = md5_hh(b, c, d, a, x[i+10], 23, -1094730640);
264   - a = md5_hh(a, b, c, d, x[i+13], 4 , 681279174);
265   - d = md5_hh(d, a, b, c, x[i+ 0], 11, -358537222);
266   - c = md5_hh(c, d, a, b, x[i+ 3], 16, -722521979);
267   - b = md5_hh(b, c, d, a, x[i+ 6], 23, 76029189);
268   - a = md5_hh(a, b, c, d, x[i+ 9], 4 , -640364487);
269   - d = md5_hh(d, a, b, c, x[i+12], 11, -421815835);
270   - c = md5_hh(c, d, a, b, x[i+15], 16, 530742520);
271   - b = md5_hh(b, c, d, a, x[i+ 2], 23, -995338651);
272   -
273   - a = md5_ii(a, b, c, d, x[i+ 0], 6 , -198630844);
274   - d = md5_ii(d, a, b, c, x[i+ 7], 10, 1126891415);
275   - c = md5_ii(c, d, a, b, x[i+14], 15, -1416354905);
276   - b = md5_ii(b, c, d, a, x[i+ 5], 21, -57434055);
277   - a = md5_ii(a, b, c, d, x[i+12], 6 , 1700485571);
278   - d = md5_ii(d, a, b, c, x[i+ 3], 10, -1894986606);
279   - c = md5_ii(c, d, a, b, x[i+10], 15, -1051523);
280   - b = md5_ii(b, c, d, a, x[i+ 1], 21, -2054922799);
281   - a = md5_ii(a, b, c, d, x[i+ 8], 6 , 1873313359);
282   - d = md5_ii(d, a, b, c, x[i+15], 10, -30611744);
283   - c = md5_ii(c, d, a, b, x[i+ 6], 15, -1560198380);
284   - b = md5_ii(b, c, d, a, x[i+13], 21, 1309151649);
285   - a = md5_ii(a, b, c, d, x[i+ 4], 6 , -145523070);
286   - d = md5_ii(d, a, b, c, x[i+11], 10, -1120210379);
287   - c = md5_ii(c, d, a, b, x[i+ 2], 15, 718787259);
288   - b = md5_ii(b, c, d, a, x[i+ 9], 21, -343485551);
289   -
290   - a = safe_add(a, olda);
291   - b = safe_add(b, oldb);
292   - c = safe_add(c, oldc);
293   - d = safe_add(d, oldd);
294   - }
295   - return [a, b, c, d];
296   - };
297   -
298   -
299   - /*
300   - * Calculate the HMAC-MD5, of a key and some data
301   - */
302   - var core_hmac_md5 = function (key, data) {
303   - var bkey = str2binl(key);
304   - if(bkey.length > 16) { bkey = core_md5(bkey, key.length * chrsz); }
305   -
306   - var ipad = new Array(16), opad = new Array(16);
307   - for(var i = 0; i < 16; i++)
308   - {
309   - ipad[i] = bkey[i] ^ 0x36363636;
310   - opad[i] = bkey[i] ^ 0x5C5C5C5C;
311   - }
312   -
313   - var hash = core_md5(ipad.concat(str2binl(data)), 512 + data.length * chrsz);
314   - return core_md5(opad.concat(hash), 512 + 128);
315   - };
316   -
317   - var obj = {
318   - /*
319   - * These are the functions you'll usually want to call.
320   - * They take string arguments and return either hex or base-64 encoded
321   - * strings.
322   - */
323   - hexdigest: function (s) {
324   - return binl2hex(core_md5(str2binl(s), s.length * chrsz));
325   - },
326   -
327   - b64digest: function (s) {
328   - return binl2b64(core_md5(str2binl(s), s.length * chrsz));
329   - },
330   -
331   - hash: function (s) {
332   - return binl2str(core_md5(str2binl(s), s.length * chrsz));
333   - },
334   -
335   - hmac_hexdigest: function (key, data) {
336   - return binl2hex(core_hmac_md5(key, data));
337   - },
338   -
339   - hmac_b64digest: function (key, data) {
340   - return binl2b64(core_hmac_md5(key, data));
341   - },
342   -
343   - hmac_hash: function (key, data) {
344   - return binl2str(core_hmac_md5(key, data));
345   - },
346   -
347   - /*
348   - * Perform a simple self-test to see if the VM is working
349   - */
350   - test: function () {
351   - return MD5.hexdigest("abc") === "900150983cd24fb0d6963f7d28e17f72";
352   - }
353   - };
354   -
355   - return obj;
356   -})();
357   -
358   -/*
359   - This program is distributed under the terms of the MIT license.
360   - Please see the LICENSE file for details.
361   -
362   - Copyright 2006-2008, OGG, LLC
363   -*/
364   -
365   -/* jslint configuration: */
366   -/*global document, window, setTimeout, clearTimeout, console,
367   - XMLHttpRequest, ActiveXObject,
368   - Base64, MD5,
369   - Strophe, $build, $msg, $iq, $pres */
370   -
371   -/** File: strophe.js
372   - * A JavaScript library for XMPP BOSH.
373   - *
374   - * This is the JavaScript version of the Strophe library. Since JavaScript
375   - * has no facilities for persistent TCP connections, this library uses
376   - * Bidirectional-streams Over Synchronous HTTP (BOSH) to emulate
377   - * a persistent, stateful, two-way connection to an XMPP server. More
378   - * information on BOSH can be found in XEP 124.
379   - */
380   -
381   -/** PrivateFunction: Function.prototype.bind
382   - * Bind a function to an instance.
383   - *
384   - * This Function object extension method creates a bound method similar
385   - * to those in Python. This means that the 'this' object will point
386   - * to the instance you want. See
387   - * <a href='http://benjamin.smedbergs.us/blog/2007-01-03/bound-functions-and-function-imports-in-javascript/'>Bound Functions and Function Imports in JavaScript</a>
388   - * for a complete explanation.
389   - *
390   - * This extension already exists in some browsers (namely, Firefox 3), but
391   - * we provide it to support those that don't.
392   - *
393   - * Parameters:
394   - * (Object) obj - The object that will become 'this' in the bound function.
395   - *
396   - * Returns:
397   - * The bound function.
398   - */
399   -if (!Function.prototype.bind) {
400   - Function.prototype.bind = function (obj)
401   - {
402   - var func = this;
403   - return function () { return func.apply(obj, arguments); };
404   - };
405   -}
406   -
407   -/** PrivateFunction: Function.prototype.prependArg
408   - * Prepend an argument to a function.
409   - *
410   - * This Function object extension method returns a Function that will
411   - * invoke the original function with an argument prepended. This is useful
412   - * when some object has a callback that needs to get that same object as
413   - * an argument. The following fragment illustrates a simple case of this
414   - * > var obj = new Foo(this.someMethod);</code></blockquote>
415   - *
416   - * Foo's constructor can now use func.prependArg(this) to ensure the
417   - * passed in callback function gets the instance of Foo as an argument.
418   - * Doing this without prependArg would mean not setting the callback
419   - * from the constructor.
420   - *
421   - * This is used inside Strophe for passing the Strophe.Request object to
422   - * the onreadystatechange handler of XMLHttpRequests.
423   - *
424   - * Parameters:
425   - * arg - The argument to pass as the first parameter to the function.
426   - *
427   - * Returns:
428   - * A new Function which calls the original with the prepended argument.
429   - */
430   -if (!Function.prototype.prependArg) {
431   - Function.prototype.prependArg = function (arg)
432   - {
433   - var func = this;
434   -
435   - return function () {
436   - var newargs = [arg];
437   - for (var i = 0; i < arguments.length; i++) {
438   - newargs.push(arguments[i]);
439   - }
440   - return func.apply(this, newargs);
441   - };
442   - };
443   -}
444   -
445   -/** PrivateFunction: Array.prototype.indexOf
446   - * Return the index of an object in an array.
447   - *
448   - * This function is not supplied by some JavaScript implementations, so
449   - * we provide it if it is missing. This code is from:
450   - * http://developer.mozilla.org/En/Core_JavaScript_1.5_Reference:Objects:Array:indexOf
451   - *
452   - * Parameters:
453   - * (Object) elt - The object to look for.
454   - * (Integer) from - The index from which to start looking. (optional).
455   - *
456   - * Returns:
457   - * The index of elt in the array or -1 if not found.
458   - */
459   -if (!Array.prototype.indexOf)
460   -{
461   - Array.prototype.indexOf = function(elt /*, from*/)
462   - {
463   - var len = this.length;
464   -
465   - var from = Number(arguments[1]) || 0;
466   - from = (from < 0) ? Math.ceil(from) : Math.floor(from);
467   - if (from < 0) {
468   - from += len;
469   - }
470   -
471   - for (; from < len; from++) {
472   - if (from in this && this[from] === elt) {
473   - return from;
474   - }
475   - }
476   -
477   - return -1;
478   - };
479   -}
480   -
481   -/* All of the Strophe globals are defined in this special function below so
482   - * that references to the globals become closures. This will ensure that
483   - * on page reload, these references will still be available to callbacks
484   - * that are still executing.
485   - */
486   -
487   -(function (callback) {
488   -var Strophe;
489   -
490   -/** Function: $build
491   - * Create a Strophe.Builder.
492   - * This is an alias for 'new Strophe.Builder(name, attrs)'.
493   - *
494   - * Parameters:
495   - * (String) name - The root element name.
496   - * (Object) attrs - The attributes for the root element in object notation.
497   - *
498   - * Returns:
499   - * A new Strophe.Builder object.
500   - */
501   -function $build(name, attrs) { return new Strophe.Builder(name, attrs); }
502   -/** Function: $msg
503   - * Create a Strophe.Builder with a <message/> element as the root.
504   - *
505   - * Parmaeters:
506   - * (Object) attrs - The <message/> element attributes in object notation.
507   - *
508   - * Returns:
509   - * A new Strophe.Builder object.
510   - */
511   -function $msg(attrs) { return new Strophe.Builder("message", attrs); }
512   -/** Function: $iq
513   - * Create a Strophe.Builder with an <iq/> element as the root.
514   - *
515   - * Parameters:
516   - * (Object) attrs - The <iq/> element attributes in object notation.
517   - *
518   - * Returns:
519   - * A new Strophe.Builder object.
520   - */
521   -function $iq(attrs) { return new Strophe.Builder("iq", attrs); }
522   -/** Function: $pres
523   - * Create a Strophe.Builder with a <presence/> element as the root.
524   - *
525   - * Parameters:
526   - * (Object) attrs - The <presence/> element attributes in object notation.
527   - *
528   - * Returns:
529   - * A new Strophe.Builder object.
530   - */
531   -function $pres(attrs) { return new Strophe.Builder("presence", attrs); }
532   -
533   -/** Class: Strophe
534   - * An object container for all Strophe library functions.
535   - *
536   - * This class is just a container for all the objects and constants
537   - * used in the library. It is not meant to be instantiated, but to
538   - * provide a namespace for library objects, constants, and functions.
539   - */
540   -Strophe = {
541   - /** Constant: VERSION
542   - * The version of the Strophe library. Unreleased builds will have
543   - * a version of head-HASH where HASH is a partial revision.
544   - */
545   - VERSION: "1.0.1",
546   -
547   - /** Constants: XMPP Namespace Constants
548   - * Common namespace constants from the XMPP RFCs and XEPs.
549   - *
550   - * NS.HTTPBIND - HTTP BIND namespace from XEP 124.
551   - * NS.BOSH - BOSH namespace from XEP 206.
552   - * NS.CLIENT - Main XMPP client namespace.
553   - * NS.AUTH - Legacy authentication namespace.
554   - * NS.ROSTER - Roster operations namespace.
555   - * NS.PROFILE - Profile namespace.
556   - * NS.DISCO_INFO - Service discovery info namespace from XEP 30.
557   - * NS.DISCO_ITEMS - Service discovery items namespace from XEP 30.
558   - * NS.MUC - Multi-User Chat namespace from XEP 45.
559   - * NS.SASL - XMPP SASL namespace from RFC 3920.
560   - * NS.STREAM - XMPP Streams namespace from RFC 3920.
561   - * NS.BIND - XMPP Binding namespace from RFC 3920.
562   - * NS.SESSION - XMPP Session namespace from RFC 3920.
563   - */
564   - NS: {
565   - HTTPBIND: "http://jabber.org/protocol/httpbind",
566   - BOSH: "urn:xmpp:xbosh",
567   - CLIENT: "jabber:client",
568   - AUTH: "jabber:iq:auth",
569   - ROSTER: "jabber:iq:roster",
570   - PROFILE: "jabber:iq:profile",
571   - DISCO_INFO: "http://jabber.org/protocol/disco#info",
572   - DISCO_ITEMS: "http://jabber.org/protocol/disco#items",
573   - MUC: "http://jabber.org/protocol/muc",
574   - SASL: "urn:ietf:params:xml:ns:xmpp-sasl",
575   - STREAM: "http://etherx.jabber.org/streams",
576   - BIND: "urn:ietf:params:xml:ns:xmpp-bind",
577   - SESSION: "urn:ietf:params:xml:ns:xmpp-session",
578   - VERSION: "jabber:iq:version",
579   - STANZAS: "urn:ietf:params:xml:ns:xmpp-stanzas"
580   - },
581   -
582   - /** Function: addNamespace
583   - * This function is used to extend the current namespaces in
584   - * Strophe.NS. It takes a key and a value with the key being the
585   - * name of the new namespace, with its actual value.
586   - * For example:
587   - * Strophe.addNamespace('PUBSUB', "http://jabber.org/protocol/pubsub");
588   - *
589   - * Parameters:
590   - * (String) name - The name under which the namespace will be
591   - * referenced under Strophe.NS
592   - * (String) value - The actual namespace.
593   - */
594   - addNamespace: function (name, value)
595   - {
596   - Strophe.NS[name] = value;
597   - },
598   -
599   - /** Constants: Connection Status Constants
600   - * Connection status constants for use by the connection handler
601   - * callback.
602   - *
603   - * Status.ERROR - An error has occurred
604   - * Status.CONNECTING - The connection is currently being made
605   - * Status.CONNFAIL - The connection attempt failed
606   - * Status.AUTHENTICATING - The connection is authenticating
607   - * Status.AUTHFAIL - The authentication attempt failed
608   - * Status.CONNECTED - The connection has succeeded
609   - * Status.DISCONNECTED - The connection has been terminated
610   - * Status.DISCONNECTING - The connection is currently being terminated
611   - * Status.ATTACHED - The connection has been attached
612   - */
613   - Status: {
614   - ERROR: 0,
615   - CONNECTING: 1,
616   - CONNFAIL: 2,
617   - AUTHENTICATING: 3,
618   - AUTHFAIL: 4,
619   - CONNECTED: 5,
620   - DISCONNECTED: 6,
621   - DISCONNECTING: 7,
622   - ATTACHED: 8
623   - },
624   -
625   - /** Constants: Log Level Constants
626   - * Logging level indicators.
627   - *
628   - * LogLevel.DEBUG - Debug output
629   - * LogLevel.INFO - Informational output
630   - * LogLevel.WARN - Warnings
631   - * LogLevel.ERROR - Errors
632   - * LogLevel.FATAL - Fatal errors
633   - */
634   - LogLevel: {
635   - DEBUG: 0,
636   - INFO: 1,
637   - WARN: 2,
638   - ERROR: 3,
639   - FATAL: 4
640   - },
641   -
642   - /** PrivateConstants: DOM Element Type Constants
643   - * DOM element types.
644   - *
645   - * ElementType.NORMAL - Normal element.
646   - * ElementType.TEXT - Text data element.
647   - */
648   - ElementType: {
649   - NORMAL: 1,
650   - TEXT: 3
651   - },
652   -
653   - /** PrivateConstants: Timeout Values
654   - * Timeout values for error states. These values are in seconds.
655   - * These should not be changed unless you know exactly what you are
656   - * doing.
657   - *
658   - * TIMEOUT - Timeout multiplier. A waiting request will be considered
659   - * failed after Math.floor(TIMEOUT * wait) seconds have elapsed.
660   - * This defaults to 1.1, and with default wait, 66 seconds.
661   - * SECONDARY_TIMEOUT - Secondary timeout multiplier. In cases where
662   - * Strophe can detect early failure, it will consider the request
663   - * failed if it doesn't return after
664   - * Math.floor(SECONDARY_TIMEOUT * wait) seconds have elapsed.
665   - * This defaults to 0.1, and with default wait, 6 seconds.
666   - */
667   - TIMEOUT: 1.1,
668   - SECONDARY_TIMEOUT: 0.1,
669   -
670   - /** Function: forEachChild
671   - * Map a function over some or all child elements of a given element.
672   - *
673   - * This is a small convenience function for mapping a function over
674   - * some or all of the children of an element. If elemName is null, all
675   - * children will be passed to the function, otherwise only children
676   - * whose tag names match elemName will be passed.
677   - *
678   - * Parameters:
679   - * (XMLElement) elem - The element to operate on.
680   - * (String) elemName - The child element tag name filter.
681   - * (Function) func - The function to apply to each child. This
682   - * function should take a single argument, a DOM element.
683   - */
684   - forEachChild: function (elem, elemName, func)
685   - {
686   - var i, childNode;
687   -
688   - for (i = 0; i < elem.childNodes.length; i++) {
689   - childNode = elem.childNodes[i];
690   - if (childNode.nodeType == Strophe.ElementType.NORMAL &&
691   - (!elemName || this.isTagEqual(childNode, elemName))) {
692   - func(childNode);
693   - }
694   - }
695   - },
696   -
697   - /** Function: isTagEqual
698   - * Compare an element's tag name with a string.
699   - *
700   - * This function is case insensitive.
701   - *
702   - * Parameters:
703   - * (XMLElement) el - A DOM element.
704   - * (String) name - The element name.
705   - *
706   - * Returns:
707   - * true if the element's tag name matches _el_, and false
708   - * otherwise.
709   - */
710   - isTagEqual: function (el, name)
711   - {
712   - return el.tagName.toLowerCase() == name.toLowerCase();
713   - },
714   -
715   - /** PrivateVariable: _xmlGenerator
716   - * _Private_ variable that caches a DOM document to
717   - * generate elements.
718   - */
719   - _xmlGenerator: null,
720   -
721   - /** PrivateFunction: _makeGenerator
722   - * _Private_ function that creates a dummy XML DOM document to serve as
723   - * an element and text node generator.
724   - */
725   - _makeGenerator: function () {
726   - var doc;
727   -
728   - if (window.ActiveXObject) {
729   - doc = new ActiveXObject("Microsoft.XMLDOM");
730   - doc.appendChild(doc.createElement('strophe'));
731   - } else {
732   - doc = document.implementation
733   - .createDocument('jabber:client', 'strophe', null);
734   - }
735   -
736   - return doc;
737   - },
738   -
739   - /** Function: xmlElement
740   - * Create an XML DOM element.
741   - *
742   - * This function creates an XML DOM element correctly across all
743   - * implementations. Specifically the Microsoft implementation of
744   - * document.createElement makes DOM elements with 43+ default attributes
745   - * unless elements are created with the ActiveX object Microsoft.XMLDOM.
746   - *
747   - * Most DOMs force element names to lowercase, so we use the
748   - * _realname attribute on the created element to store the case
749   - * sensitive name. This is required to generate proper XML for
750   - * things like vCard avatars (XEP 153). This attribute is stripped
751   - * out before being sent over the wire or serialized, but you may
752   - * notice it during debugging.
753   - *
754   - * Parameters:
755   - * (String) name - The name for the element.
756   - * (Array) attrs - An optional array of key/value pairs to use as
757   - * element attributes in the following format [['key1', 'value1'],
758   - * ['key2', 'value2']]
759   - * (String) text - The text child data for the element.
760   - *
761   - * Returns:
762   - * A new XML DOM element.
763   - */
764   - xmlElement: function (name)
765   - {
766   - if (!name) { return null; }
767   -
768   - var node = null;
769   - if (!Strophe._xmlGenerator) {
770   - Strophe._xmlGenerator = Strophe._makeGenerator();
771   - }
772   - node = Strophe._xmlGenerator.createElement(name);
773   -
774   - // FIXME: this should throw errors if args are the wrong type or
775   - // there are more than two optional args
776   - var a, i, k;
777   - for (a = 1; a < arguments.length; a++) {
778   - if (!arguments[a]) { continue; }
779   - if (typeof(arguments[a]) == "string" ||
780   - typeof(arguments[a]) == "number") {
781   - node.appendChild(Strophe.xmlTextNode(arguments[a]));
782   - } else if (typeof(arguments[a]) == "object" &&
783   - typeof(arguments[a].sort) == "function") {
784   - for (i = 0; i < arguments[a].length; i++) {
785   - if (typeof(arguments[a][i]) == "object" &&
786   - typeof(arguments[a][i].sort) == "function") {
787   - node.setAttribute(arguments[a][i][0],
788   - arguments[a][i][1]);
789   - }
790   - }
791   - } else if (typeof(arguments[a]) == "object") {
792   - for (k in arguments[a]) {
793   - if (arguments[a].hasOwnProperty(k)) {
794   - node.setAttribute(k, arguments[a][k]);
795   - }
796   - }
797   - }
798   - }
799   -
800   - return node;
801   - },
802   -
803   - /* Function: xmlescape
804   - * Excapes invalid xml characters.
805   - *
806   - * Parameters:
807   - * (String) text - text to escape.
808   - *
809   - * Returns:
810   - * Escaped text.
811   - */
812   - xmlescape: function(text)
813   - {
814   - text = text.replace(/\&/g, "&amp;");
815   - text = text.replace(/</g, "&lt;");
816   - text = text.replace(/>/g, "&gt;");
817   - return text;
818   - },
819   -
820   - /** Function: xmlTextNode
821   - * Creates an XML DOM text node.
822   - *
823   - * Provides a cross implementation version of document.createTextNode.
824   - *
825   - * Parameters:
826   - * (String) text - The content of the text node.
827   - *
828   - * Returns:
829   - * A new XML DOM text node.
830   - */
831   - xmlTextNode: function (text)
832   - {
833   - //ensure text is escaped
834   - text = Strophe.xmlescape(text);
835   -
836   - if (!Strophe._xmlGenerator) {
837   - Strophe._xmlGenerator = Strophe._makeGenerator();
838   - }
839   - return Strophe._xmlGenerator.createTextNode(text);
840   - },
841   -
842   - /** Function: getText
843   - * Get the concatenation of all text children of an element.
844   - *
845   - * Parameters:
846   - * (XMLElement) elem - A DOM element.
847   - *
848   - * Returns:
849   - * A String with the concatenated text of all text element children.
850   - */
851   - getText: function (elem)
852   - {
853   - if (!elem) { return null; }
854   -
855   - var str = "";
856   - if (elem.childNodes.length === 0 && elem.nodeType ==
857   - Strophe.ElementType.TEXT) {
858   - str += elem.nodeValue;
859   - }
860   -
861   - for (var i = 0; i < elem.childNodes.length; i++) {
862   - if (elem.childNodes[i].nodeType == Strophe.ElementType.TEXT) {
863   - str += elem.childNodes[i].nodeValue;
864   - }
865   - }
866   -
867   - return str;
868   - },
869   -
870   - /** Function: copyElement
871   - * Copy an XML DOM element.
872   - *
873   - * This function copies a DOM element and all its descendants and returns
874   - * the new copy.
875   - *
876   - * Parameters:
877   - * (XMLElement) elem - A DOM element.
878   - *
879   - * Returns:
880   - * A new, copied DOM element tree.
881   - */
882   - copyElement: function (elem)
883   - {
884   - var i, el;
885   - if (elem.nodeType == Strophe.ElementType.NORMAL) {
886   - el = Strophe.xmlElement(elem.tagName);
887   -
888   - for (i = 0; i < elem.attributes.length; i++) {
889   - el.setAttribute(elem.attributes[i].nodeName.toLowerCase(),
890   - elem.attributes[i].value);
891   - }
892   -
893   - for (i = 0; i < elem.childNodes.length; i++) {
894   - el.appendChild(Strophe.copyElement(elem.childNodes[i]));
895   - }
896   - } else if (elem.nodeType == Strophe.ElementType.TEXT) {
897   - el = Strophe.xmlTextNode(elem.nodeValue);
898   - }
899   -
900   - return el;
901   - },
902   -
903   - /** Function: escapeNode
904   - * Escape the node part (also called local part) of a JID.
905   - *
906   - * Parameters:
907   - * (String) node - A node (or local part).
908   - *
909   - * Returns:
910   - * An escaped node (or local part).
911   - */
912   - escapeNode: function (node)
913   - {
914   - return node.replace(/^\s+|\s+$/g, '')
915   - .replace(/\\/g, "\\5c")
916   - .replace(/ /g, "\\20")
917   - .replace(/\"/g, "\\22")
918   - .replace(/\&/g, "\\26")
919   - .replace(/\'/g, "\\27")
920   - .replace(/\//g, "\\2f")
921   - .replace(/:/g, "\\3a")
922   - .replace(/</g, "\\3c")
923   - .replace(/>/g, "\\3e")
924   - .replace(/@/g, "\\40");
925   - },
926   -
927   - /** Function: unescapeNode
928   - * Unescape a node part (also called local part) of a JID.
929   - *
930   - * Parameters:
931   - * (String) node - A node (or local part).
932   - *
933   - * Returns:
934   - * An unescaped node (or local part).
935   - */
936   - unescapeNode: function (node)
937   - {
938   - return node.replace(/\\20/g, " ")
939   - .replace(/\\22/g, '"')
940   - .replace(/\\26/g, "&")
941   - .replace(/\\27/g, "'")
942   - .replace(/\\2f/g, "/")
943   - .replace(/\\3a/g, ":")
944   - .replace(/\\3c/g, "<")
945   - .replace(/\\3e/g, ">")
946   - .replace(/\\40/g, "@")
947   - .replace(/\\5c/g, "\\");
948   - },
949   -
950   - /** Function: getNodeFromJid
951   - * Get the node portion of a JID String.
952   - *
953   - * Parameters:
954   - * (String) jid - A JID.
955   - *
956   - * Returns:
957   - * A String containing the node.
958   - */
959   - getNodeFromJid: function (jid)
960   - {
961   - if (jid.indexOf("@") < 0) { return null; }
962   - return jid.split("@")[0];
963   - },
964   -
965   - /** Function: getDomainFromJid
966   - * Get the domain portion of a JID String.
967   - *
968   - * Parameters:
969   - * (String) jid - A JID.
970   - *
971   - * Returns:
972   - * A String containing the domain.
973   - */
974   - getDomainFromJid: function (jid)
975   - {
976   - var bare = Strophe.getBareJidFromJid(jid);
977   - if (bare.indexOf("@") < 0) {
978   - return bare;
979   - } else {
980   - var parts = bare.split("@");
981   - parts.splice(0, 1);
982   - return parts.join('@');
983   - }
984   - },
985   -
986   - /** Function: getResourceFromJid
987   - * Get the resource portion of a JID String.
988   - *
989   - * Parameters:
990   - * (String) jid - A JID.
991   - *
992   - * Returns:
993   - * A String containing the resource.
994   - */
995   - getResourceFromJid: function (jid)
996   - {
997   - var s = jid.split("/");
998   - if (s.length < 2) { return null; }
999   - s.splice(0, 1);
1000   - return s.join('/');
1001   - },
1002   -
1003   - /** Function: getBareJidFromJid
1004   - * Get the bare JID from a JID String.
1005   - *
1006   - * Parameters:
1007   - * (String) jid - A JID.
1008   - *
1009   - * Returns:
1010   - * A String containing the bare JID.
1011   - */
1012   - getBareJidFromJid: function (jid)
1013   - {
1014   - return jid.split("/")[0];
1015   - },
1016   -
1017   - /** Function: log
1018   - * User overrideable logging function.
1019   - *
1020   - * This function is called whenever the Strophe library calls any
1021   - * of the logging functions. The default implementation of this
1022   - * function does nothing. If client code wishes to handle the logging
1023   - * messages, it should override this with
1024   - * > Strophe.log = function (level, msg) {
1025   - * > (user code here)
1026   - * > };
1027   - *
1028   - * Please note that data sent and received over the wire is logged
1029   - * via Strophe.Connection.rawInput() and Strophe.Connection.rawOutput().
1030   - *
1031   - * The different levels and their meanings are
1032   - *
1033   - * DEBUG - Messages useful for debugging purposes.
1034   - * INFO - Informational messages. This is mostly information like
1035   - * 'disconnect was called' or 'SASL auth succeeded'.
1036   - * WARN - Warnings about potential problems. This is mostly used
1037   - * to report transient connection errors like request timeouts.
1038   - * ERROR - Some error occurred.
1039   - * FATAL - A non-recoverable fatal error occurred.
1040   - *
1041   - * Parameters:
1042   - * (Integer) level - The log level of the log message. This will
1043   - * be one of the values in Strophe.LogLevel.
1044   - * (String) msg - The log message.
1045   - */
1046   - log: function (level, msg)
1047   - {
1048   - return;
1049   - },
1050   -
1051   - /** Function: debug
1052   - * Log a message at the Strophe.LogLevel.DEBUG level.
1053   - *
1054   - * Parameters:
1055   - * (String) msg - The log message.
1056   - */
1057   - debug: function(msg)
1058   - {
1059   - this.log(this.LogLevel.DEBUG, msg);
1060   - },
1061   -
1062   - /** Function: info
1063   - * Log a message at the Strophe.LogLevel.INFO level.
1064   - *
1065   - * Parameters:
1066   - * (String) msg - The log message.
1067   - */
1068   - info: function (msg)
1069   - {
1070   - this.log(this.LogLevel.INFO, msg);
1071   - },
1072   -
1073   - /** Function: warn
1074   - * Log a message at the Strophe.LogLevel.WARN level.
1075   - *
1076   - * Parameters:
1077   - * (String) msg - The log message.
1078   - */
1079   - warn: function (msg)
1080   - {
1081   - this.log(this.LogLevel.WARN, msg);
1082   - },
1083   -
1084   - /** Function: error
1085   - * Log a message at the Strophe.LogLevel.ERROR level.
1086   - *
1087   - * Parameters:
1088   - * (String) msg - The log message.
1089   - */
1090   - error: function (msg)
1091   - {
1092   - this.log(this.LogLevel.ERROR, msg);
1093   - },
1094   -
1095   - /** Function: fatal
1096   - * Log a message at the Strophe.LogLevel.FATAL level.
1097   - *
1098   - * Parameters:
1099   - * (String) msg - The log message.
1100   - */
1101   - fatal: function (msg)
1102   - {
1103   - this.log(this.LogLevel.FATAL, msg);
1104   - },
1105   -
1106   - /** Function: serialize
1107   - * Render a DOM element and all descendants to a String.
1108   - *
1109   - * Parameters:
1110   - * (XMLElement) elem - A DOM element.
1111   - *
1112   - * Returns:
1113   - * The serialized element tree as a String.
1114   - */
1115   - serialize: function (elem)
1116   - {
1117   - var result;
1118   -
1119   - if (!elem) { return null; }
1120   -
1121   - if (typeof(elem.tree) === "function") {
1122   - elem = elem.tree();
1123   - }
1124   -
1125   - var nodeName = elem.nodeName;
1126   - var i, child;
1127   -
1128   - if (elem.getAttribute("_realname")) {
1129   - nodeName = elem.getAttribute("_realname");
1130   - }
1131   -
1132   - result = "<" + nodeName;
1133   - for (i = 0; i < elem.attributes.length; i++) {
1134   - if(elem.attributes[i].nodeName != "_realname") {
1135   - result += " " + elem.attributes[i].nodeName.toLowerCase() +
1136   - "='" + elem.attributes[i].value
1137   - .replace("&", "&amp;")
1138   - .replace("'", "&apos;")
1139   - .replace("<", "&lt;") + "'";
1140   - }
1141   - }
1142   -
1143   - if (elem.childNodes.length > 0) {
1144   - result += ">";
1145   - for (i = 0; i < elem.childNodes.length; i++) {
1146   - child = elem.childNodes[i];
1147   - if (child.nodeType == Strophe.ElementType.NORMAL) {
1148   - // normal element, so recurse
1149   - result += Strophe.serialize(child);
1150   - } else if (child.nodeType == Strophe.ElementType.TEXT) {
1151   - // text element
1152   - result += child.nodeValue;
1153   - }
1154   - }
1155   - result += "</" + nodeName + ">";
1156   - } else {
1157   - result += "/>";
1158   - }
1159   -
1160   - return result;
1161   - },
1162   -
1163   - /** PrivateVariable: _requestId
1164   - * _Private_ variable that keeps track of the request ids for
1165   - * connections.
1166   - */
1167   - _requestId: 0,
1168   -
1169   - /** PrivateVariable: Strophe.connectionPlugins
1170   - * _Private_ variable Used to store plugin names that need
1171   - * initialization on Strophe.Connection construction.
1172   - */
1173   - _connectionPlugins: {},
1174   -
1175   - /** Function: addConnectionPlugin
1176   - * Extends the Strophe.Connection object with the given plugin.
1177   - *
1178   - * Paramaters:
1179   - * (String) name - The name of the extension.
1180   - * (Object) ptype - The plugin's prototype.
1181   - */
1182   - addConnectionPlugin: function (name, ptype)
1183   - {
1184   - Strophe._connectionPlugins[name] = ptype;
1185   - }
1186   -};
1187   -
1188   -/** Class: Strophe.Builder
1189   - * XML DOM builder.
1190   - *
1191   - * This object provides an interface similar to JQuery but for building
1192   - * DOM element easily and rapidly. All the functions except for toString()
1193   - * and tree() return the object, so calls can be chained. Here's an
1194   - * example using the $iq() builder helper.
1195   - * > $iq({to: 'you': from: 'me': type: 'get', id: '1'})
1196   - * > .c('query', {xmlns: 'strophe:example'})
1197   - * > .c('example')
1198   - * > .toString()
1199   - * The above generates this XML fragment
1200   - * > <iq to='you' from='me' type='get' id='1'>
1201   - * > <query xmlns='strophe:example'>
1202   - * > <example/>
1203   - * > </query>
1204   - * > </iq>
1205   - * The corresponding DOM manipulations to get a similar fragment would be
1206   - * a lot more tedious and probably involve several helper variables.
1207   - *
1208   - * Since adding children makes new operations operate on the child, up()
1209   - * is provided to traverse up the tree. To add two children, do
1210   - * > builder.c('child1', ...).up().c('child2', ...)
1211   - * The next operation on the Builder will be relative to the second child.
1212   - */
1213   -
1214   -/** Constructor: Strophe.Builder
1215   - * Create a Strophe.Builder object.
1216   - *
1217   - * The attributes should be passed in object notation. For example
1218   - * > var b = new Builder('message', {to: 'you', from: 'me'});
1219   - * or
1220   - * > var b = new Builder('messsage', {'xml:lang': 'en'});
1221   - *
1222   - * Parameters:
1223   - * (String) name - The name of the root element.
1224   - * (Object) attrs - The attributes for the root element in object notation.
1225   - *
1226   - * Returns:
1227   - * A new Strophe.Builder.
1228   - */
1229   -Strophe.Builder = function (name, attrs)
1230   -{
1231   - // Set correct namespace for jabber:client elements
1232   - if (name == "presence" || name == "message" || name == "iq") {
1233   - if (attrs && !attrs.xmlns) {
1234   - attrs.xmlns = Strophe.NS.CLIENT;
1235   - } else if (!attrs) {
1236   - attrs = {xmlns: Strophe.NS.CLIENT};
1237   - }
1238   - }
1239   -
1240   - // Holds the tree being built.
1241   - this.nodeTree = Strophe.xmlElement(name, attrs);
1242   -
1243   - // Points to the current operation node.
1244   - this.node = this.nodeTree;
1245   -};
1246   -
1247   -Strophe.Builder.prototype = {
1248   - /** Function: tree
1249   - * Return the DOM tree.
1250   - *
1251   - * This function returns the current DOM tree as an element object. This
1252   - * is suitable for passing to functions like Strophe.Connection.send().
1253   - *
1254   - * Returns:
1255   - * The DOM tree as a element object.
1256   - */
1257   - tree: function ()
1258   - {
1259   - return this.nodeTree;
1260   - },
1261   -
1262   - /** Function: toString
1263   - * Serialize the DOM tree to a String.
1264   - *
1265   - * This function returns a string serialization of the current DOM
1266   - * tree. It is often used internally to pass data to a
1267   - * Strophe.Request object.
1268   - *
1269   - * Returns:
1270   - * The serialized DOM tree in a String.
1271   - */
1272   - toString: function ()
1273   - {
1274   - return Strophe.serialize(this.nodeTree);
1275   - },
1276   -
1277   - /** Function: up
1278   - * Make the current parent element the new current element.
1279   - *
1280   - * This function is often used after c() to traverse back up the tree.
1281   - * For example, to add two children to the same element
1282   - * > builder.c('child1', {}).up().c('child2', {});
1283   - *
1284   - * Returns:
1285   - * The Stophe.Builder object.
1286   - */
1287   - up: function ()
1288   - {
1289   - this.node = this.node.parentNode;
1290   - return this;
1291   - },
1292   -
1293   - /** Function: attrs
1294   - * Add or modify attributes of the current element.
1295   - *
1296   - * The attributes should be passed in object notation. This function
1297   - * does not move the current element pointer.
1298   - *
1299   - * Parameters:
1300   - * (Object) moreattrs - The attributes to add/modify in object notation.
1301   - *
1302   - * Returns:
1303   - * The Strophe.Builder object.
1304   - */
1305   - attrs: function (moreattrs)
1306   - {
1307   - for (var k in moreattrs) {
1308   - if (moreattrs.hasOwnProperty(k)) {
1309   - this.node.setAttribute(k, moreattrs[k]);
1310   - }
1311   - }
1312   - return this;
1313   - },
1314   -
1315   - /** Function: c
1316   - * Add a child to the current element and make it the new current
1317   - * element.
1318   - *
1319   - * This function moves the current element pointer to the child. If you
1320   - * need to add another child, it is necessary to use up() to go back
1321   - * to the parent in the tree.
1322   - *
1323   - * Parameters:
1324   - * (String) name - The name of the child.
1325   - * (Object) attrs - The attributes of the child in object notation.
1326   - *
1327   - * Returns:
1328   - * The Strophe.Builder object.
1329   - */
1330   - c: function (name, attrs)
1331   - {
1332   - var child = Strophe.xmlElement(name, attrs);
1333   - this.node.appendChild(child);
1334   - this.node = child;
1335   - return this;
1336   - },
1337   -
1338   - /** Function: cnode
1339   - * Add a child to the current element and make it the new current
1340   - * element.
1341   - *
1342   - * This function is the same as c() except that instead of using a
1343   - * name and an attributes object to create the child it uses an
1344   - * existing DOM element object.
1345   - *
1346   - * Parameters:
1347   - * (XMLElement) elem - A DOM element.
1348   - *
1349   - * Returns:
1350   - * The Strophe.Builder object.
1351   - */
1352   - cnode: function (elem)
1353   - {
1354   - this.node.appendChild(elem);
1355   - this.node = elem;
1356   - return this;
1357   - },
1358   -
1359   - /** Function: t
1360   - * Add a child text element.
1361   - *
1362   - * This *does not* make the child the new current element since there
1363   - * are no children of text elements.
1364   - *
1365   - * Parameters:
1366   - * (String) text - The text data to append to the current element.
1367   - *
1368   - * Returns:
1369   - * The Strophe.Builder object.
1370   - */
1371   - t: function (text)
1372   - {
1373   - var child = Strophe.xmlTextNode(text);
1374   - this.node.appendChild(child);
1375   - return this;
1376   - }
1377   -};
1378   -
1379   -
1380   -/** PrivateClass: Strophe.Handler
1381   - * _Private_ helper class for managing stanza handlers.
1382   - *
1383   - * A Strophe.Handler encapsulates a user provided callback function to be
1384   - * executed when matching stanzas are received by the connection.
1385   - * Handlers can be either one-off or persistant depending on their
1386   - * return value. Returning true will cause a Handler to remain active, and
1387   - * returning false will remove the Handler.
1388   - *
1389   - * Users will not use Strophe.Handler objects directly, but instead they
1390   - * will use Strophe.Connection.addHandler() and
1391   - * Strophe.Connection.deleteHandler().
1392   - */
1393   -
1394   -/** PrivateConstructor: Strophe.Handler
1395   - * Create and initialize a new Strophe.Handler.
1396   - *
1397   - * Parameters:
1398   - * (Function) handler - A function to be executed when the handler is run.
1399   - * (String) ns - The namespace to match.
1400   - * (String) name - The element name to match.
1401   - * (String) type - The element type to match.
1402   - * (String) id - The element id attribute to match.
1403   - * (String) from - The element from attribute to match.
1404   - * (Object) options - Handler options
1405   - *
1406   - * Returns:
1407   - * A new Strophe.Handler object.
1408   - */
1409   -Strophe.Handler = function (handler, ns, name, type, id, from, options)
1410   -{
1411   - this.handler = handler;
1412   - this.ns = ns;
1413   - this.name = name;
1414   - this.type = type;
1415   - this.id = id;
1416   - this.options = options || {matchbare: false};
1417   -
1418   - // default matchBare to false if undefined
1419   - if (!this.options.matchBare) {
1420   - this.options.matchBare = false;
1421   - }
1422   -
1423   - if (this.options.matchBare) {
1424   - this.from = Strophe.getBareJidFromJid(from);
1425   - } else {
1426   - this.from = from;
1427   - }
1428   -
1429   - // whether the handler is a user handler or a system handler
1430   - this.user = true;
1431   -};
1432   -
1433   -Strophe.Handler.prototype = {
1434   - /** PrivateFunction: isMatch
1435   - * Tests if a stanza matches the Strophe.Handler.
1436   - *
1437   - * Parameters:
1438   - * (XMLElement) elem - The XML element to test.
1439   - *
1440   - * Returns:
1441   - * true if the stanza matches and false otherwise.
1442   - */
1443   - isMatch: function (elem)
1444   - {
1445   - var nsMatch;
1446   - var from = null;
1447   -
1448   - if (this.options.matchBare) {
1449   - from = Strophe.getBareJidFromJid(elem.getAttribute('from'));
1450   - } else {
1451   - from = elem.getAttribute('from');
1452   - }
1453   -
1454   - nsMatch = false;
1455   - if (!this.ns) {
1456   - nsMatch = true;
1457   - } else {
1458   - var self = this;
1459   - Strophe.forEachChild(elem, null, function (elem) {
1460   - if (elem.getAttribute("xmlns") == self.ns) {
1461   - nsMatch = true;
1462   - }
1463   - });
1464   -
1465   - nsMatch = nsMatch || elem.getAttribute("xmlns") == this.ns;
1466   - }
1467   -
1468   - if (nsMatch &&
1469   - (!this.name || Strophe.isTagEqual(elem, this.name)) &&
1470   - (!this.type || elem.getAttribute("type") === this.type) &&
1471   - (!this.id || elem.getAttribute("id") === this.id) &&
1472   - (!this.from || from === this.from)) {
1473   - return true;
1474   - }
1475   -
1476   - return false;
1477   - },
1478   -
1479   - /** PrivateFunction: run
1480   - * Run the callback on a matching stanza.
1481   - *
1482   - * Parameters:
1483   - * (XMLElement) elem - The DOM element that triggered the
1484   - * Strophe.Handler.
1485   - *
1486   - * Returns:
1487   - * A boolean indicating if the handler should remain active.
1488   - */
1489   - run: function (elem)
1490   - {
1491   - var result = null;
1492   - try {
1493   - result = this.handler(elem);
1494   - } catch (e) {
1495   - if (e.sourceURL) {
1496   - Strophe.fatal("error: " + this.handler +
1497   - " " + e.sourceURL + ":" +
1498   - e.line + " - " + e.name + ": " + e.message);
1499   - } else if (e.fileName) {
1500   - if (typeof(console) != "undefined") {
1501   - console.trace();
1502   - console.error(this.handler, " - error - ", e, e.message);
1503   - }
1504   - Strophe.fatal("error: " + this.handler + " " +
1505   - e.fileName + ":" + e.lineNumber + " - " +
1506   - e.name + ": " + e.message);
1507   - } else {
1508   - Strophe.fatal("error: " + this.handler);
1509   - }
1510   -
1511   - throw e;
1512   - }
1513   -
1514   - return result;
1515   - },
1516   -
1517   - /** PrivateFunction: toString
1518   - * Get a String representation of the Strophe.Handler object.
1519   - *
1520   - * Returns:
1521   - * A String.
1522   - */
1523   - toString: function ()
1524   - {
1525   - return "{Handler: " + this.handler + "(" + this.name + "," +
1526   - this.id + "," + this.ns + ")}";
1527   - }
1528   -};
1529   -
1530   -/** PrivateClass: Strophe.TimedHandler
1531   - * _Private_ helper class for managing timed handlers.
1532   - *
1533   - * A Strophe.TimedHandler encapsulates a user provided callback that
1534   - * should be called after a certain period of time or at regular
1535   - * intervals. The return value of the callback determines whether the
1536   - * Strophe.TimedHandler will continue to fire.
1537   - *
1538   - * Users will not use Strophe.TimedHandler objects directly, but instead
1539   - * they will use Strophe.Connection.addTimedHandler() and
1540   - * Strophe.Connection.deleteTimedHandler().
1541   - */
1542   -
1543   -/** PrivateConstructor: Strophe.TimedHandler
1544   - * Create and initialize a new Strophe.TimedHandler object.
1545   - *
1546   - * Parameters:
1547   - * (Integer) period - The number of milliseconds to wait before the
1548   - * handler is called.
1549   - * (Function) handler - The callback to run when the handler fires. This
1550   - * function should take no arguments.
1551   - *
1552   - * Returns:
1553   - * A new Strophe.TimedHandler object.
1554   - */
1555   -Strophe.TimedHandler = function (period, handler)
1556   -{
1557   - this.period = period;
1558   - this.handler = handler;
1559   -
1560   - this.lastCalled = new Date().getTime();
1561   - this.user = true;
1562   -};
1563   -
1564   -Strophe.TimedHandler.prototype = {
1565   - /** PrivateFunction: run
1566   - * Run the callback for the Strophe.TimedHandler.
1567   - *
1568   - * Returns:
1569   - * true if the Strophe.TimedHandler should be called again, and false
1570   - * otherwise.
1571   - */
1572   - run: function ()
1573   - {
1574   - this.lastCalled = new Date().getTime();
1575   - return this.handler();
1576   - },
1577   -
1578   - /** PrivateFunction: reset
1579   - * Reset the last called time for the Strophe.TimedHandler.
1580   - */
1581   - reset: function ()
1582   - {
1583   - this.lastCalled = new Date().getTime();
1584   - },
1585   -
1586   - /** PrivateFunction: toString
1587   - * Get a string representation of the Strophe.TimedHandler object.
1588   - *
1589   - * Returns:
1590   - * The string representation.
1591   - */
1592   - toString: function ()
1593   - {
1594   - return "{TimedHandler: " + this.handler + "(" + this.period +")}";
1595   - }
1596   -};
1597   -
1598   -/** PrivateClass: Strophe.Request
1599   - * _Private_ helper class that provides a cross implementation abstraction
1600   - * for a BOSH related XMLHttpRequest.
1601   - *
1602   - * The Strophe.Request class is used internally to encapsulate BOSH request
1603   - * information. It is not meant to be used from user's code.
1604   - */
1605   -
1606   -/** PrivateConstructor: Strophe.Request
1607   - * Create and initialize a new Strophe.Request object.
1608   - *
1609   - * Parameters:
1610   - * (XMLElement) elem - The XML data to be sent in the request.
1611   - * (Function) func - The function that will be called when the
1612   - * XMLHttpRequest readyState changes.
1613   - * (Integer) rid - The BOSH rid attribute associated with this request.
1614   - * (Integer) sends - The number of times this same request has been
1615   - * sent.
1616   - */
1617   -Strophe.Request = function (elem, func, rid, sends)
1618   -{
1619   - this.id = ++Strophe._requestId;
1620   - this.xmlData = elem;
1621   - this.data = Strophe.serialize(elem);
1622   - // save original function in case we need to make a new request
1623   - // from this one.
1624   - this.origFunc = func;
1625   - this.func = func;
1626   - this.rid = rid;
1627   - this.date = NaN;
1628   - this.sends = sends || 0;
1629   - this.abort = false;
1630   - this.dead = null;
1631   - this.age = function () {
1632   - if (!this.date) { return 0; }
1633   - var now = new Date();
1634   - return (now - this.date) / 1000;
1635   - };
1636   - this.timeDead = function () {
1637   - if (!this.dead) { return 0; }
1638   - var now = new Date();
1639   - return (now - this.dead) / 1000;
1640   - };
1641   - this.xhr = this._newXHR();
1642   -};
1643   -
1644   -Strophe.Request.prototype = {
1645   - /** PrivateFunction: getResponse
1646   - * Get a response from the underlying XMLHttpRequest.
1647   - *
1648   - * This function attempts to get a response from the request and checks
1649   - * for errors.
1650   - *
1651   - * Throws:
1652   - * "parsererror" - A parser error occured.
1653   - *
1654   - * Returns:
1655   - * The DOM element tree of the response.
1656   - */
1657   - getResponse: function ()
1658   - {
1659   - var node = null;
1660   - if (this.xhr.responseXML && this.xhr.responseXML.documentElement) {
1661   - node = this.xhr.responseXML.documentElement;
1662   - if (node.tagName == "parsererror") {
1663   - Strophe.error("invalid response received");
1664   - Strophe.error("responseText: " + this.xhr.responseText);
1665   - Strophe.error("responseXML: " +
1666   - Strophe.serialize(this.xhr.responseXML));
1667   - throw "parsererror";
1668   - }
1669   - } else if (this.xhr.responseText) {
1670   - Strophe.error("invalid response received");
1671   - Strophe.error("responseText: " + this.xhr.responseText);
1672   - Strophe.error("responseXML: " +
1673   - Strophe.serialize(this.xhr.responseXML));
1674   - }
1675   -
1676   - return node;
1677   - },
1678   -
1679   - /** PrivateFunction: _newXHR
1680   - * _Private_ helper function to create XMLHttpRequests.
1681   - *
1682   - * This function creates XMLHttpRequests across all implementations.
1683   - *
1684   - * Returns:
1685   - * A new XMLHttpRequest.
1686   - */
1687   - _newXHR: function ()
1688   - {
1689   - var xhr = null;
1690   - if (window.XMLHttpRequest) {
1691   - xhr = new XMLHttpRequest();
1692   - if (xhr.overrideMimeType) {
1693   - xhr.overrideMimeType("text/xml");
1694   - }
1695   - } else if (window.ActiveXObject) {
1696   - xhr = new ActiveXObject("Microsoft.XMLHTTP");
1697   - }
1698   -
1699   - xhr.onreadystatechange = this.func.prependArg(this);
1700   -
1701   - return xhr;
1702   - }
1703   -};
1704   -
1705   -/** Class: Strophe.Connection
1706   - * XMPP Connection manager.
1707   - *
1708   - * Thie class is the main part of Strophe. It manages a BOSH connection
1709   - * to an XMPP server and dispatches events to the user callbacks as
1710   - * data arrives. It supports SASL PLAIN, SASL DIGEST-MD5, and legacy
1711   - * authentication.
1712   - *
1713   - * After creating a Strophe.Connection object, the user will typically
1714   - * call connect() with a user supplied callback to handle connection level
1715   - * events like authentication failure, disconnection, or connection
1716   - * complete.
1717   - *
1718   - * The user will also have several event handlers defined by using
1719   - * addHandler() and addTimedHandler(). These will allow the user code to
1720   - * respond to interesting stanzas or do something periodically with the
1721   - * connection. These handlers will be active once authentication is
1722   - * finished.
1723   - *
1724   - * To send data to the connection, use send().
1725   - */
1726   -
1727   -/** Constructor: Strophe.Connection
1728   - * Create and initialize a Strophe.Connection object.
1729   - *
1730   - * Parameters:
1731   - * (String) service - The BOSH service URL.
1732   - *
1733   - * Returns:
1734   - * A new Strophe.Connection object.
1735   - */
1736   -Strophe.Connection = function (service)
1737   -{
1738   - /* The path to the httpbind service. */
1739   - this.service = service;
1740   - /* The connected JID. */
1741   - this.jid = "";
1742   - /* request id for body tags */
1743   - this.rid = Math.floor(Math.random() * 4294967295);
1744   - /* The current session ID. */
1745   - this.sid = null;
1746   - this.streamId = null;
1747   -
1748   - // SASL
1749   - this.do_session = false;
1750   - this.do_bind = false;
1751   -
1752   - // handler lists
1753   - this.timedHandlers = [];
1754   - this.handlers = [];
1755   - this.removeTimeds = [];
1756   - this.removeHandlers = [];
1757   - this.addTimeds = [];
1758   - this.addHandlers = [];
1759   -
1760   - this._idleTimeout = null;
1761   - this._disconnectTimeout = null;
1762   -
1763   - this.authenticated = false;
1764   - this.disconnecting = false;
1765   - this.connected = false;
1766   -
1767   - this.errors = 0;
1768   -
1769   - this.paused = false;
1770   -
1771   - // default BOSH values
1772   - this.hold = 1;
1773   - this.wait = 60;
1774   - this.window = 5;
1775   -
1776   - this._data = [];
1777   - this._requests = [];
1778   - this._uniqueId = Math.round(Math.random() * 10000);
1779   -
1780   - this._sasl_success_handler = null;
1781   - this._sasl_failure_handler = null;
1782   - this._sasl_challenge_handler = null;
1783   -
1784   - // setup onIdle callback every 1/10th of a second
1785   - this._idleTimeout = setTimeout(this._onIdle.bind(this), 100);
1786   -
1787   - // initialize plugins
1788   - for (var k in Strophe._connectionPlugins) {
1789   - if (Strophe._connectionPlugins.hasOwnProperty(k)) {
1790   - var ptype = Strophe._connectionPlugins[k];
1791   - // jslint complaints about the below line, but this is fine
1792   - var F = function () {};
1793   - F.prototype = ptype;
1794   - this[k] = new F();
1795   - this[k].init(this);
1796   - }
1797   - }
1798   -};
1799   -
1800   -Strophe.Connection.prototype = {
1801   - /** Function: reset
1802   - * Reset the connection.
1803   - *
1804   - * This function should be called after a connection is disconnected
1805   - * before that connection is reused.
1806   - */
1807   - reset: function ()
1808   - {
1809   - this.rid = Math.floor(Math.random() * 4294967295);
1810   -
1811   - this.sid = null;
1812   - this.streamId = null;
1813   -
1814   - // SASL
1815   - this.do_session = false;
1816   - this.do_bind = false;
1817   -
1818   - // handler lists
1819   - this.timedHandlers = [];
1820   - this.handlers = [];
1821   - this.removeTimeds = [];
1822   - this.removeHandlers = [];
1823   - this.addTimeds = [];
1824   - this.addHandlers = [];
1825   -
1826   - this.authenticated = false;
1827   - this.disconnecting = false;
1828   - this.connected = false;
1829   -
1830   - this.errors = 0;
1831   -
1832   - this._requests = [];
1833   - this._uniqueId = Math.round(Math.random()*10000);
1834   - },
1835   -
1836   - /** Function: pause
1837   - * Pause the request manager.
1838   - *
1839   - * This will prevent Strophe from sending any more requests to the
1840   - * server. This is very useful for temporarily pausing while a lot
1841   - * of send() calls are happening quickly. This causes Strophe to
1842   - * send the data in a single request, saving many request trips.
1843   - */
1844   - pause: function ()
1845   - {
1846   - this.paused = true;
1847   - },
1848   -
1849   - /** Function: resume
1850   - * Resume the request manager.
1851   - *
1852   - * This resumes after pause() has been called.
1853   - */
1854   - resume: function ()
1855   - {
1856   - this.paused = false;
1857   - },
1858   -
1859   - /** Function: getUniqueId
1860   - * Generate a unique ID for use in <iq/> elements.
1861   - *
1862   - * All <iq/> stanzas are required to have unique id attributes. This
1863   - * function makes creating these easy. Each connection instance has
1864   - * a counter which starts from zero, and the value of this counter
1865   - * plus a colon followed by the suffix becomes the unique id. If no
1866   - * suffix is supplied, the counter is used as the unique id.
1867   - *
1868   - * Suffixes are used to make debugging easier when reading the stream
1869   - * data, and their use is recommended. The counter resets to 0 for
1870   - * every new connection for the same reason. For connections to the
1871   - * same server that authenticate the same way, all the ids should be
1872   - * the same, which makes it easy to see changes. This is useful for
1873   - * automated testing as well.
1874   - *
1875   - * Parameters:
1876   - * (String) suffix - A optional suffix to append to the id.
1877   - *
1878   - * Returns:
1879   - * A unique string to be used for the id attribute.
1880   - */
1881   - getUniqueId: function (suffix)
1882   - {
1883   - if (typeof(suffix) == "string" || typeof(suffix) == "number") {
1884   - return ++this._uniqueId + ":" + suffix;
1885   - } else {
1886   - return ++this._uniqueId + "";
1887   - }
1888   - },
1889   -
1890   - /** Function: connect
1891   - * Starts the connection process.
1892   - *
1893   - * As the connection process proceeds, the user supplied callback will
1894   - * be triggered multiple times with status updates. The callback
1895   - * should take two arguments - the status code and the error condition.
1896   - *
1897   - * The status code will be one of the values in the Strophe.Status
1898   - * constants. The error condition will be one of the conditions
1899   - * defined in RFC 3920 or the condition 'strophe-parsererror'.
1900   - *
1901   - * Please see XEP 124 for a more detailed explanation of the optional
1902   - * parameters below.
1903   - *
1904   - * Parameters:
1905   - * (String) jid - The user's JID. This may be a bare JID,
1906   - * or a full JID. If a node is not supplied, SASL ANONYMOUS
1907   - * authentication will be attempted.
1908   - * (String) pass - The user's password.
1909   - * (Function) callback The connect callback function.
1910   - * (Integer) wait - The optional HTTPBIND wait value. This is the
1911   - * time the server will wait before returning an empty result for
1912   - * a request. The default setting of 60 seconds is recommended.
1913   - * Other settings will require tweaks to the Strophe.TIMEOUT value.
1914   - * (Integer) hold - The optional HTTPBIND hold value. This is the
1915   - * number of connections the server will hold at one time. This
1916   - * should almost always be set to 1 (the default).
1917   - */
1918   - connect: function (jid, pass, callback, wait, hold)
1919   - {
1920   - this.jid = jid;
1921   - this.pass = pass;
1922   - this.connect_callback = callback;
1923   - this.disconnecting = false;
1924   - this.connected = false;
1925   - this.authenticated = false;
1926   - this.errors = 0;
1927   -
1928   - this.wait = wait || this.wait;
1929   - this.hold = hold || this.hold;
1930   -
1931   - // parse jid for domain and resource
1932   - this.domain = Strophe.getDomainFromJid(this.jid);
1933   -
1934   - // build the body tag
1935   - var body = this._buildBody().attrs({
1936   - to: this.domain,
1937   - "xml:lang": "en",
1938   - wait: this.wait,
1939   - hold: this.hold,
1940   - content: "text/xml; charset=utf-8",
1941   - ver: "1.6",
1942   - "xmpp:version": "1.0",
1943   - "xmlns:xmpp": Strophe.NS.BOSH
1944   - });
1945   -
1946   - this._changeConnectStatus(Strophe.Status.CONNECTING, null);
1947   -
1948   - this._requests.push(
1949   - new Strophe.Request(body.tree(),
1950   - this._onRequestStateChange.bind(this)
1951   - .prependArg(this._connect_cb.bind(this)),
1952   - body.tree().getAttribute("rid")));
1953   - this._throttledRequestHandler();
1954   - },
1955   -
1956   - /** Function: attach
1957   - * Attach to an already created and authenticated BOSH session.
1958   - *
1959   - * This function is provided to allow Strophe to attach to BOSH
1960   - * sessions which have been created externally, perhaps by a Web
1961   - * application. This is often used to support auto-login type features
1962   - * without putting user credentials into the page.
1963   - *
1964   - * Parameters:
1965   - * (String) jid - The full JID that is bound by the session.
1966   - * (String) sid - The SID of the BOSH session.
1967   - * (String) rid - The current RID of the BOSH session. This RID
1968   - * will be used by the next request.
1969   - * (Function) callback The connect callback function.
1970   - * (Integer) wait - The optional HTTPBIND wait value. This is the
1971   - * time the server will wait before returning an empty result for
1972   - * a request. The default setting of 60 seconds is recommended.
1973   - * Other settings will require tweaks to the Strophe.TIMEOUT value.
1974   - * (Integer) hold - The optional HTTPBIND hold value. This is the
1975   - * number of connections the server will hold at one time. This
1976   - * should almost always be set to 1 (the default).
1977   - * (Integer) wind - The optional HTTBIND window value. This is the
1978   - * allowed range of request ids that are valid. The default is 5.
1979   - */
1980   - attach: function (jid, sid, rid, callback, wait, hold, wind)
1981   - {
1982   - this.jid = jid;
1983   - this.sid = sid;
1984   - this.rid = rid;
1985   - this.connect_callback = callback;
1986   -
1987   - this.domain = Strophe.getDomainFromJid(this.jid);
1988   -
1989   - this.authenticated = true;
1990   - this.connected = true;
1991   -
1992   - this.wait = wait || this.wait;
1993   - this.hold = hold || this.hold;
1994   - this.window = wind || this.window;
1995   -
1996   - this._changeConnectStatus(Strophe.Status.ATTACHED, null);
1997   - },
1998   -
1999   - /** Function: xmlInput
2000   - * User overrideable function that receives XML data coming into the
2001   - * connection.
2002   - *
2003   - * The default function does nothing. User code can override this with
2004   - * > Strophe.Connection.xmlInput = function (elem) {
2005   - * > (user code)
2006   - * > };
2007   - *
2008   - * Parameters:
2009   - * (XMLElement) elem - The XML data received by the connection.
2010   - */
2011   - xmlInput: function (elem)
2012   - {
2013   - return;
2014   - },
2015   -
2016   - /** Function: xmlOutput
2017   - * User overrideable function that receives XML data sent to the
2018   - * connection.
2019   - *
2020   - * The default function does nothing. User code can override this with
2021   - * > Strophe.Connection.xmlOutput = function (elem) {
2022   - * > (user code)
2023   - * > };
2024   - *
2025   - * Parameters:
2026   - * (XMLElement) elem - The XMLdata sent by the connection.
2027   - */
2028   - xmlOutput: function (elem)
2029   - {
2030   - return;
2031   - },
2032   -
2033   - /** Function: rawInput
2034   - * User overrideable function that receives raw data coming into the
2035   - * connection.
2036   - *
2037   - * The default function does nothing. User code can override this with
2038   - * > Strophe.Connection.rawInput = function (data) {
2039   - * > (user code)
2040   - * > };
2041   - *
2042   - * Parameters:
2043   - * (String) data - The data received by the connection.
2044   - */
2045   - rawInput: function (data)
2046   - {
2047   - return;
2048   - },
2049   -
2050   - /** Function: rawOutput
2051   - * User overrideable function that receives raw data sent to the
2052   - * connection.
2053   - *
2054   - * The default function does nothing. User code can override this with
2055   - * > Strophe.Connection.rawOutput = function (data) {
2056   - * > (user code)
2057   - * > };
2058   - *
2059   - * Parameters:
2060   - * (String) data - The data sent by the connection.
2061   - */
2062   - rawOutput: function (data)
2063   - {
2064   - return;
2065   - },
2066   -
2067   - /** Function: send
2068   - * Send a stanza.
2069   - *
2070   - * This function is called to push data onto the send queue to
2071   - * go out over the wire. Whenever a request is sent to the BOSH
2072   - * server, all pending data is sent and the queue is flushed.
2073   - *
2074   - * Parameters:
2075   - * (XMLElement |
2076   - * [XMLElement] |
2077   - * Strophe.Builder) elem - The stanza to send.
2078   - */
2079   - send: function (elem)
2080   - {
2081   - if (elem === null) { return ; }
2082   - if (typeof(elem.sort) === "function") {
2083   - for (var i = 0; i < elem.length; i++) {
2084   - this._queueData(elem[i]);
2085   - }
2086   - } else if (typeof(elem.tree) === "function") {
2087   - this._queueData(elem.tree());
2088   - } else {
2089   - this._queueData(elem);
2090   - }
2091   -
2092   - this._throttledRequestHandler();
2093   - clearTimeout(this._idleTimeout);
2094   - this._idleTimeout = setTimeout(this._onIdle.bind(this), 100);
2095   - },
2096   -
2097   - /** Function: flush
2098   - * Immediately send any pending outgoing data.
2099   - *
2100   - * Normally send() queues outgoing data until the next idle period
2101   - * (100ms), which optimizes network use in the common cases when
2102   - * several send()s are called in succession. flush() can be used to
2103   - * immediately send all pending data.
2104   - */
2105   - flush: function ()
2106   - {
2107   - // cancel the pending idle period and run the idle function
2108   - // immediately
2109   - clearTimeout(this._idleTimeout);
2110   - this._onIdle();
2111   - },
2112   -
2113   - /** Function: sendIQ
2114   - * Helper function to send IQ stanzas.
2115   - *
2116   - * Parameters:
2117   - * (XMLElement) elem - The stanza to send.
2118   - * (Function) callback - The callback function for a successful request.
2119   - * (Function) errback - The callback function for a failed or timed
2120   - * out request. On timeout, the stanza will be null.
2121   - * (Integer) timeout - The time specified in milliseconds for a
2122   - * timeout to occur.
2123   - *
2124   - * Returns:
2125   - * The id used to send the IQ.
2126   - */
2127   - sendIQ: function(elem, callback, errback, timeout) {
2128   - var timeoutHandler = null;
2129   - var that = this;
2130   -
2131   - if (typeof(elem.tree) === "function") {
2132   - elem = elem.tree();
2133   - }
2134   - var id = elem.getAttribute('id');
2135   -
2136   - // inject id if not found
2137   - if (!id) {
2138   - id = this.getUniqueId("sendIQ");
2139   - elem.setAttribute("id", id);
2140   - }
2141   -
2142   - var handler = this.addHandler(function (stanza) {
2143   - // remove timeout handler if there is one
2144   - if (timeoutHandler) {
2145   - that.deleteTimedHandler(timeoutHandler);
2146   - }
2147   -
2148   - var iqtype = stanza.getAttribute('type');
2149   - if (iqtype === 'result') {
2150   - if (callback) {
2151   - callback(stanza);
2152   - }
2153   - } else if (iqtype === 'error') {
2154   - if (errback) {
2155   - errback(stanza);
2156   - }
2157   - } else {
2158   - throw {
2159   - name: "StropheError",
2160   - message: "Got bad IQ type of " + iqtype
2161   - };
2162   - }
2163   - }, null, 'iq', null, id);
2164   -
2165   - // if timeout specified, setup timeout handler.
2166   - if (timeout) {
2167   - timeoutHandler = this.addTimedHandler(timeout, function () {
2168   - // get rid of normal handler
2169   - that.deleteHandler(handler);
2170   -
2171   - // call errback on timeout with null stanza
2172   - if (errback) {
2173   - errback(null);
2174   - }
2175   - return false;
2176   - });
2177   - }
2178   -
2179   - this.send(elem);
2180   -
2181   - return id;
2182   - },
2183   -
2184   - /** PrivateFunction: _queueData
2185   - * Queue outgoing data for later sending. Also ensures that the data
2186   - * is a DOMElement.
2187   - */
2188   - _queueData: function (element) {
2189   - if (element === null ||
2190   - !element.tagName ||
2191   - !element.childNodes) {
2192   - throw {
2193   - name: "StropheError",
2194   - message: "Cannot queue non-DOMElement."
2195   - };
2196   - }
2197   -
2198   - this._data.push(element);
2199   - },
2200   -
2201   - /** PrivateFunction: _sendRestart
2202   - * Send an xmpp:restart stanza.
2203   - */
2204   - _sendRestart: function ()
2205   - {
2206   - this._data.push("restart");
2207   -
2208   - this._throttledRequestHandler();
2209   - clearTimeout(this._idleTimeout);
2210   - this._idleTimeout = setTimeout(this._onIdle.bind(this), 100);
2211   - },
2212   -
2213   - /** Function: addTimedHandler
2214   - * Add a timed handler to the connection.
2215   - *
2216   - * This function adds a timed handler. The provided handler will
2217   - * be called every period milliseconds until it returns false,
2218   - * the connection is terminated, or the handler is removed. Handlers
2219   - * that wish to continue being invoked should return true.
2220   - *
2221   - * Because of method binding it is necessary to save the result of
2222   - * this function if you wish to remove a handler with
2223   - * deleteTimedHandler().
2224   - *
2225   - * Note that user handlers are not active until authentication is
2226   - * successful.
2227   - *
2228   - * Parameters:
2229   - * (Integer) period - The period of the handler.
2230   - * (Function) handler - The callback function.
2231   - *
2232   - * Returns:
2233   - * A reference to the handler that can be used to remove it.
2234   - */
2235   - addTimedHandler: function (period, handler)
2236   - {
2237   - var thand = new Strophe.TimedHandler(period, handler);
2238   - this.addTimeds.push(thand);
2239   - return thand;
2240   - },
2241   -
2242   - /** Function: deleteTimedHandler
2243   - * Delete a timed handler for a connection.
2244   - *
2245   - * This function removes a timed handler from the connection. The
2246   - * handRef parameter is *not* the function passed to addTimedHandler(),
2247   - * but is the reference returned from addTimedHandler().
2248   - *
2249   - * Parameters:
2250   - * (Strophe.TimedHandler) handRef - The handler reference.
2251   - */
2252   - deleteTimedHandler: function (handRef)
2253   - {
2254   - // this must be done in the Idle loop so that we don't change
2255   - // the handlers during iteration
2256   - this.removeTimeds.push(handRef);
2257   - },
2258   -
2259   - /** Function: addHandler
2260   - * Add a stanza handler for the connection.
2261   - *
2262   - * This function adds a stanza handler to the connection. The
2263   - * handler callback will be called for any stanza that matches
2264   - * the parameters. Note that if multiple parameters are supplied,
2265   - * they must all match for the handler to be invoked.
2266   - *
2267   - * The handler will receive the stanza that triggered it as its argument.
2268   - * The handler should return true if it is to be invoked again;
2269   - * returning false will remove the handler after it returns.
2270   - *
2271   - * As a convenience, the ns parameters applies to the top level element
2272   - * and also any of its immediate children. This is primarily to make
2273   - * matching /iq/query elements easy.
2274   - *
2275   - * The options argument contains handler matching flags that affect how
2276   - * matches are determined. Currently the only flag is matchBare (a
2277   - * boolean). When matchBare is true, the from parameter and the from
2278   - * attribute on the stanza will be matched as bare JIDs instead of
2279   - * full JIDs. To use this, pass {matchBare: true} as the value of
2280   - * options. The default value for matchBare is false.
2281   - *
2282   - * The return value should be saved if you wish to remove the handler
2283   - * with deleteHandler().
2284   - *
2285   - * Parameters:
2286   - * (Function) handler - The user callback.
2287   - * (String) ns - The namespace to match.
2288   - * (String) name - The stanza name to match.
2289   - * (String) type - The stanza type attribute to match.
2290   - * (String) id - The stanza id attribute to match.
2291   - * (String) from - The stanza from attribute to match.
2292   - * (String) options - The handler options
2293   - *
2294   - * Returns:
2295   - * A reference to the handler that can be used to remove it.
2296   - */
2297   - addHandler: function (handler, ns, name, type, id, from, options)
2298   - {
2299   - var hand = new Strophe.Handler(handler, ns, name, type, id, from, options);
2300   - this.addHandlers.push(hand);
2301   - return hand;
2302   - },
2303   -
2304   - /** Function: deleteHandler
2305   - * Delete a stanza handler for a connection.
2306   - *
2307   - * This function removes a stanza handler from the connection. The
2308   - * handRef parameter is *not* the function passed to addHandler(),
2309   - * but is the reference returned from addHandler().
2310   - *
2311   - * Parameters:
2312   - * (Strophe.Handler) handRef - The handler reference.
2313   - */
2314   - deleteHandler: function (handRef)
2315   - {
2316   - // this must be done in the Idle loop so that we don't change
2317   - // the handlers during iteration
2318   - this.removeHandlers.push(handRef);
2319   - },
2320   -
2321   - /** Function: disconnect
2322   - * Start the graceful disconnection process.
2323   - *
2324   - * This function starts the disconnection process. This process starts
2325   - * by sending unavailable presence and sending BOSH body of type
2326   - * terminate. A timeout handler makes sure that disconnection happens
2327   - * even if the BOSH server does not respond.
2328   - *
2329   - * The user supplied connection callback will be notified of the
2330   - * progress as this process happens.
2331   - *
2332   - * Parameters:
2333   - * (String) reason - The reason the disconnect is occuring.
2334   - */
2335   - disconnect: function (reason)
2336   - {
2337   - this._changeConnectStatus(Strophe.Status.DISCONNECTING, reason);
2338   -
2339   - Strophe.info("Disconnect was called because: " + reason);
2340   - if (this.connected) {
2341   - // setup timeout handler
2342   - this._disconnectTimeout = this._addSysTimedHandler(
2343   - 3000, this._onDisconnectTimeout.bind(this));
2344   - this._sendTerminate();
2345   - }
2346   - },
2347   -
2348   - /** PrivateFunction: _changeConnectStatus
2349   - * _Private_ helper function that makes sure plugins and the user's
2350   - * callback are notified of connection status changes.
2351   - *
2352   - * Parameters:
2353   - * (Integer) status - the new connection status, one of the values
2354   - * in Strophe.Status
2355   - * (String) condition - the error condition or null
2356   - */
2357   - _changeConnectStatus: function (status, condition)
2358   - {
2359   - // notify all plugins listening for status changes
2360   - for (var k in Strophe._connectionPlugins) {
2361   - if (Strophe._connectionPlugins.hasOwnProperty(k)) {
2362   - var plugin = this[k];
2363   - if (plugin.statusChanged) {
2364   - try {
2365   - plugin.statusChanged(status, condition);
2366   - } catch (err) {
2367   - Strophe.error("" + k + " plugin caused an exception " +
2368   - "changing status: " + err);
2369   - }
2370   - }
2371   - }
2372   - }
2373   -
2374   - // notify the user's callback
2375   - if (this.connect_callback) {
2376   - try {
2377   - this.connect_callback(status, condition);
2378   - } catch (e) {
2379   - Strophe.error("User connection callback caused an " +
2380   - "exception: " + e);
2381   - }
2382   - }
2383   - },
2384   -
2385   - /** PrivateFunction: _buildBody
2386   - * _Private_ helper function to generate the <body/> wrapper for BOSH.
2387   - *
2388   - * Returns:
2389   - * A Strophe.Builder with a <body/> element.
2390   - */
2391   - _buildBody: function ()
2392   - {
2393   - var bodyWrap = $build('body', {
2394   - rid: this.rid++,
2395   - xmlns: Strophe.NS.HTTPBIND
2396   - });
2397   -
2398   - if (this.sid !== null) {
2399   - bodyWrap.attrs({sid: this.sid});
2400   - }
2401   -
2402   - return bodyWrap;
2403   - },
2404   -
2405   - /** PrivateFunction: _removeRequest
2406   - * _Private_ function to remove a request from the queue.
2407   - *
2408   - * Parameters:
2409   - * (Strophe.Request) req - The request to remove.
2410   - */
2411   - _removeRequest: function (req)
2412   - {
2413   - Strophe.debug("removing request");
2414   -
2415   - var i;
2416   - for (i = this._requests.length - 1; i >= 0; i--) {
2417   - if (req == this._requests[i]) {
2418   - this._requests.splice(i, 1);
2419   - }
2420   - }
2421   -
2422   - // IE6 fails on setting to null, so set to empty function
2423   - req.xhr.onreadystatechange = function () {};
2424   -
2425   - this._throttledRequestHandler();
2426   - },
2427   -
2428   - /** PrivateFunction: _restartRequest
2429   - * _Private_ function to restart a request that is presumed dead.
2430   - *
2431   - * Parameters:
2432   - * (Integer) i - The index of the request in the queue.
2433   - */
2434   - _restartRequest: function (i)
2435   - {
2436   - var req = this._requests[i];
2437   - if (req.dead === null) {
2438   - req.dead = new Date();
2439   - }
2440   -
2441   - this._processRequest(i);
2442   - },
2443   -
2444   - /** PrivateFunction: _processRequest
2445   - * _Private_ function to process a request in the queue.
2446   - *
2447   - * This function takes requests off the queue and sends them and
2448   - * restarts dead requests.
2449   - *
2450   - * Parameters:
2451   - * (Integer) i - The index of the request in the queue.
2452   - */
2453   - _processRequest: function (i)
2454   - {
2455   - var req = this._requests[i];
2456   - var reqStatus = -1;
2457   -
2458   - try {
2459   - if (req.xhr.readyState == 4) {
2460   - reqStatus = req.xhr.status;
2461   - }
2462   - } catch (e) {
2463   - Strophe.error("caught an error in _requests[" + i +
2464   - "], reqStatus: " + reqStatus);
2465   - }
2466   -
2467   - if (typeof(reqStatus) == "undefined") {
2468   - reqStatus = -1;
2469   - }
2470   -
2471   - var time_elapsed = req.age();
2472   - var primaryTimeout = (!isNaN(time_elapsed) &&
2473   - time_elapsed > Math.floor(Strophe.TIMEOUT * this.wait));
2474   - var secondaryTimeout = (req.dead !== null &&
2475   - req.timeDead() > Math.floor(Strophe.SECONDARY_TIMEOUT * this.wait));
2476   - var requestCompletedWithServerError = (req.xhr.readyState == 4 &&
2477   - (reqStatus < 1 ||
2478   - reqStatus >= 500));
2479   - if (primaryTimeout || secondaryTimeout ||
2480   - requestCompletedWithServerError) {
2481   - if (secondaryTimeout) {
2482   - Strophe.error("Request " +
2483   - this._requests[i].id +
2484   - " timed out (secondary), restarting");
2485   - }
2486   - req.abort = true;
2487   - req.xhr.abort();
2488   - // setting to null fails on IE6, so set to empty function
2489   - req.xhr.onreadystatechange = function () {};
2490   - this._requests[i] = new Strophe.Request(req.xmlData,
2491   - req.origFunc,
2492   - req.rid,
2493   - req.sends);
2494   - req = this._requests[i];
2495   - }
2496   -
2497   - if (req.xhr.readyState === 0) {
2498   - Strophe.debug("request id " + req.id +
2499   - "." + req.sends + " posting");
2500   -
2501   - req.date = new Date();
2502   - try {
2503   - req.xhr.open("POST", this.service, true);
2504   - } catch (e2) {
2505   - Strophe.error("XHR open failed.");
2506   - if (!this.connected) {
2507   - this._changeConnectStatus(Strophe.Status.CONNFAIL,
2508   - "bad-service");
2509   - }
2510   - this.disconnect();
2511   - return;
2512   - }
2513   -
2514   - // Fires the XHR request -- may be invoked immediately
2515   - // or on a gradually expanding retry window for reconnects
2516   - var sendFunc = function () {
2517   - req.xhr.send(req.data);
2518   - };
2519   -
2520   - // Implement progressive backoff for reconnects --
2521   - // First retry (send == 1) should also be instantaneous
2522   - if (req.sends > 1) {
2523   - // Using a cube of the retry number creats a nicely
2524   - // expanding retry window
2525   - var backoff = Math.pow(req.sends, 3) * 1000;
2526   - setTimeout(sendFunc, backoff);
2527   - } else {
2528   - sendFunc();
2529   - }
2530   -
2531   - req.sends++;
2532   -
2533   - this.xmlOutput(req.xmlData);
2534   - this.rawOutput(req.data);
2535   - } else {
2536   - Strophe.debug("_processRequest: " +
2537   - (i === 0 ? "first" : "second") +
2538   - " request has readyState of " +
2539   - req.xhr.readyState);
2540   - }
2541   - },
2542   -
2543   - /** PrivateFunction: _throttledRequestHandler
2544   - * _Private_ function to throttle requests to the connection window.
2545   - *
2546   - * This function makes sure we don't send requests so fast that the
2547   - * request ids overflow the connection window in the case that one
2548   - * request died.
2549   - */
2550   - _throttledRequestHandler: function ()
2551   - {
2552   - if (!this._requests) {
2553   - Strophe.debug("_throttledRequestHandler called with " +
2554   - "undefined requests");
2555   - } else {
2556   - Strophe.debug("_throttledRequestHandler called with " +
2557   - this._requests.length + " requests");
2558   - }
2559   -
2560   - if (!this._requests || this._requests.length === 0) {
2561   - return;
2562   - }
2563   -
2564   - if (this._requests.length > 0) {
2565   - this._processRequest(0);
2566   - }
2567   -
2568   - if (this._requests.length > 1 &&
2569   - Math.abs(this._requests[0].rid -
2570   - this._requests[1].rid) < this.window - 1) {
2571   - this._processRequest(1);
2572   - }
2573   - },
2574   -
2575   - /** PrivateFunction: _onRequestStateChange
2576   - * _Private_ handler for Strophe.Request state changes.
2577   - *
2578   - * This function is called when the XMLHttpRequest readyState changes.
2579   - * It contains a lot of error handling logic for the many ways that
2580   - * requests can fail, and calls the request callback when requests
2581   - * succeed.
2582   - *
2583   - * Parameters:
2584   - * (Function) func - The handler for the request.
2585   - * (Strophe.Request) req - The request that is changing readyState.
2586   - */
2587   - _onRequestStateChange: function (func, req)
2588   - {
2589   - Strophe.debug("request id " + req.id +
2590   - "." + req.sends + " state changed to " +
2591   - req.xhr.readyState);
2592   -
2593   - if (req.abort) {
2594   - req.abort = false;
2595   - return;
2596   - }
2597   -
2598   - // request complete
2599   - var reqStatus;
2600   - if (req.xhr.readyState == 4) {
2601   - reqStatus = 0;
2602   - try {
2603   - reqStatus = req.xhr.status;
2604   - } catch (e) {
2605   - // ignore errors from undefined status attribute. works
2606   - // around a browser bug
2607   - }
2608   -
2609   - if (typeof(reqStatus) == "undefined") {
2610   - reqStatus = 0;
2611   - }
2612   -
2613   - if (this.disconnecting) {
2614   - if (reqStatus >= 400) {
2615   - this._hitError(reqStatus);
2616   - return;
2617   - }
2618   - }
2619   -
2620   - var reqIs0 = (this._requests[0] == req);
2621   - var reqIs1 = (this._requests[1] == req);
2622   -
2623   - if ((reqStatus > 0 && reqStatus < 500) || req.sends > 5) {
2624   - // remove from internal queue
2625   - this._removeRequest(req);
2626   - Strophe.debug("request id " +
2627   - req.id +
2628   - " should now be removed");
2629   - }
2630   -
2631   - // request succeeded
2632   - if (reqStatus == 200) {
2633   - // if request 1 finished, or request 0 finished and request
2634   - // 1 is over Strophe.SECONDARY_TIMEOUT seconds old, we need to
2635   - // restart the other - both will be in the first spot, as the
2636   - // completed request has been removed from the queue already
2637   - if (reqIs1 ||
2638   - (reqIs0 && this._requests.length > 0 &&
2639   - this._requests[0].age() > Math.floor(Strophe.SECONDARY_TIMEOUT * this.wait))) {
2640   - this._restartRequest(0);
2641   - }
2642   - // call handler
2643   - Strophe.debug("request id " +
2644   - req.id + "." +
2645   - req.sends + " got 200");
2646   - func(req);
2647   - this.errors = 0;
2648   - } else {
2649   - Strophe.error("request id " +
2650   - req.id + "." +
2651   - req.sends + " error " + reqStatus +
2652   - " happened");
2653   - if (reqStatus === 0 ||
2654   - (reqStatus >= 400 && reqStatus < 600) ||
2655   - reqStatus >= 12000) {
2656   - this._hitError(reqStatus);
2657   - if (reqStatus >= 400 && reqStatus < 500) {
2658   - this._changeConnectStatus(Strophe.Status.DISCONNECTING,
2659   - null);
2660   - this._doDisconnect();
2661   - }
2662   - }
2663   - }
2664   -
2665   - if (!((reqStatus > 0 && reqStatus < 10000) ||
2666   - req.sends > 5)) {
2667   - this._throttledRequestHandler();
2668   - }
2669   - }
2670   - },
2671   -
2672   - /** PrivateFunction: _hitError
2673   - * _Private_ function to handle the error count.
2674   - *
2675   - * Requests are resent automatically until their error count reaches
2676   - * 5. Each time an error is encountered, this function is called to
2677   - * increment the count and disconnect if the count is too high.
2678   - *
2679   - * Parameters:
2680   - * (Integer) reqStatus - The request status.
2681   - */
2682   - _hitError: function (reqStatus)
2683   - {
2684   - this.errors++;
2685   - Strophe.warn("request errored, status: " + reqStatus +
2686   - ", number of errors: " + this.errors);
2687   - if (this.errors > 4) {
2688   - this._onDisconnectTimeout();
2689   - }
2690   - },
2691   -
2692   - /** PrivateFunction: _doDisconnect
2693   - * _Private_ function to disconnect.
2694   - *
2695   - * This is the last piece of the disconnection logic. This resets the
2696   - * connection and alerts the user's connection callback.
2697   - */
2698   - _doDisconnect: function ()
2699   - {
2700   - Strophe.info("_doDisconnect was called");
2701   - this.authenticated = false;
2702   - this.disconnecting = false;
2703   - this.sid = null;
2704   - this.streamId = null;
2705   - this.rid = Math.floor(Math.random() * 4294967295);
2706   -
2707   - // tell the parent we disconnected
2708   - if (this.connected) {
2709   - this._changeConnectStatus(Strophe.Status.DISCONNECTED, null);
2710   - this.connected = false;
2711   - }
2712   -
2713   - // delete handlers
2714   - this.handlers = [];
2715   - this.timedHandlers = [];
2716   - this.removeTimeds = [];
2717   - this.removeHandlers = [];
2718   - this.addTimeds = [];
2719   - this.addHandlers = [];
2720   - },
2721   -
2722   - /** PrivateFunction: _dataRecv
2723   - * _Private_ handler to processes incoming data from the the connection.
2724   - *
2725   - * Except for _connect_cb handling the initial connection request,
2726   - * this function handles the incoming data for all requests. This
2727   - * function also fires stanza handlers that match each incoming
2728   - * stanza.
2729   - *
2730   - * Parameters:
2731   - * (Strophe.Request) req - The request that has data ready.
2732   - */
2733   - _dataRecv: function (req)
2734   - {
2735   - try {
2736   - var elem = req.getResponse();
2737   - } catch (e) {
2738   - if (e != "parsererror") { throw e; }
2739   - this.disconnect("strophe-parsererror");
2740   - }
2741   - if (elem === null) { return; }
2742   -
2743   - this.xmlInput(elem);
2744   - this.rawInput(Strophe.serialize(elem));
2745   -
2746   - // remove handlers scheduled for deletion
2747   - var i, hand;
2748   - while (this.removeHandlers.length > 0) {
2749   - hand = this.removeHandlers.pop();
2750   - i = this.handlers.indexOf(hand);
2751   - if (i >= 0) {
2752   - this.handlers.splice(i, 1);
2753   - }
2754   - }
2755   -
2756   - // add handlers scheduled for addition
2757   - while (this.addHandlers.length > 0) {
2758   - this.handlers.push(this.addHandlers.pop());
2759   - }
2760   -
2761   - // handle graceful disconnect
2762   - if (this.disconnecting && this._requests.length === 0) {
2763   - this.deleteTimedHandler(this._disconnectTimeout);
2764   - this._disconnectTimeout = null;
2765   - this._doDisconnect();
2766   - return;
2767   - }
2768   -
2769   - var typ = elem.getAttribute("type");
2770   - var cond, conflict;
2771   - if (typ !== null && typ == "terminate") {
2772   - // an error occurred
2773   - cond = elem.getAttribute("condition");
2774   - conflict = elem.getElementsByTagName("conflict");
2775   - if (cond !== null) {
2776   - if (cond == "remote-stream-error" && conflict.length > 0) {
2777   - cond = "conflict";
2778   - }
2779   - this._changeConnectStatus(Strophe.Status.CONNFAIL, cond);
2780   - } else {
2781   - this._changeConnectStatus(Strophe.Status.CONNFAIL, "unknown");
2782   - }
2783   - this.disconnect();
2784   - return;
2785   - }
2786   -
2787   - // send each incoming stanza through the handler chain
2788   - var self = this;
2789   - Strophe.forEachChild(elem, null, function (child) {
2790   - var i, newList;
2791   - // process handlers
2792   - newList = self.handlers;
2793   - self.handlers = [];
2794   - for (i = 0; i < newList.length; i++) {
2795   - var hand = newList[i];
2796   - if (hand.isMatch(child) &&
2797   - (self.authenticated || !hand.user)) {
2798   - if (hand.run(child)) {
2799   - self.handlers.push(hand);
2800   - }
2801   - } else {
2802   - self.handlers.push(hand);
2803   - }
2804   - }
2805   - });
2806   - },
2807   -
2808   - /** PrivateFunction: _sendTerminate
2809   - * _Private_ function to send initial disconnect sequence.
2810   - *
2811   - * This is the first step in a graceful disconnect. It sends
2812   - * the BOSH server a terminate body and includes an unavailable
2813   - * presence if authentication has completed.
2814   - */
2815   - _sendTerminate: function ()
2816   - {
2817   - Strophe.info("_sendTerminate was called");
2818   - var body = this._buildBody().attrs({type: "terminate"});
2819   -
2820   - if (this.authenticated) {
2821   - body.c('presence', {
2822   - xmlns: Strophe.NS.CLIENT,
2823   - type: 'unavailable'
2824   - });
2825   - }
2826   -
2827   - this.disconnecting = true;
2828   -
2829   - var req = new Strophe.Request(body.tree(),
2830   - this._onRequestStateChange.bind(this)
2831   - .prependArg(this._dataRecv.bind(this)),
2832   - body.tree().getAttribute("rid"));
2833   -
2834   - this._requests.push(req);
2835   - this._throttledRequestHandler();
2836   - },
2837   -
2838   - /** PrivateFunction: _connect_cb
2839   - * _Private_ handler for initial connection request.
2840   - *
2841   - * This handler is used to process the initial connection request
2842   - * response from the BOSH server. It is used to set up authentication
2843   - * handlers and start the authentication process.
2844   - *
2845   - * SASL authentication will be attempted if available, otherwise
2846   - * the code will fall back to legacy authentication.
2847   - *
2848   - * Parameters:
2849   - * (Strophe.Request) req - The current request.
2850   - */
2851   - _connect_cb: function (req)
2852   - {
2853   - Strophe.info("_connect_cb was called");
2854   -
2855   - this.connected = true;
2856   - var bodyWrap = req.getResponse();
2857   - if (!bodyWrap) { return; }
2858   -
2859   - this.xmlInput(bodyWrap);
2860   - this.rawInput(Strophe.serialize(bodyWrap));
2861   -
2862   - var typ = bodyWrap.getAttribute("type");
2863   - var cond, conflict;
2864   - if (typ !== null && typ == "terminate") {
2865   - // an error occurred
2866   - cond = bodyWrap.getAttribute("condition");
2867   - conflict = bodyWrap.getElementsByTagName("conflict");
2868   - if (cond !== null) {
2869   - if (cond == "remote-stream-error" && conflict.length > 0) {
2870   - cond = "conflict";
2871   - }
2872   - this._changeConnectStatus(Strophe.Status.CONNFAIL, cond);
2873   - } else {
2874   - this._changeConnectStatus(Strophe.Status.CONNFAIL, "unknown");
2875   - }
2876   - return;
2877   - }
2878   -
2879   - // check to make sure we don't overwrite these if _connect_cb is
2880   - // called multiple times in the case of missing stream:features
2881   - if (!this.sid) {
2882   - this.sid = bodyWrap.getAttribute("sid");
2883   - }
2884   - if (!this.stream_id) {
2885   - this.stream_id = bodyWrap.getAttribute("authid");
2886   - }
2887   - var wind = bodyWrap.getAttribute('requests');
2888   - if (wind) { this.window = parseInt(wind, 10); }
2889   - var hold = bodyWrap.getAttribute('hold');
2890   - if (hold) { this.hold = parseInt(hold, 10); }
2891   - var wait = bodyWrap.getAttribute('wait');
2892   - if (wait) { this.wait = parseInt(wait, 10); }
2893   -
2894   -
2895   - var do_sasl_plain = false;
2896   - var do_sasl_digest_md5 = false;
2897   - var do_sasl_anonymous = false;
2898   -
2899   - var mechanisms = bodyWrap.getElementsByTagName("mechanism");
2900   - var i, mech, auth_str, hashed_auth_str;
2901   - if (mechanisms.length > 0) {
2902   - for (i = 0; i < mechanisms.length; i++) {
2903   - mech = Strophe.getText(mechanisms[i]);
2904   - if (mech == 'DIGEST-MD5') {
2905   - do_sasl_digest_md5 = true;
2906   - } else if (mech == 'PLAIN') {
2907   - do_sasl_plain = true;
2908   - } else if (mech == 'ANONYMOUS') {
2909   - do_sasl_anonymous = true;
2910   - }
2911   - }
2912   - } else {
2913   - // we didn't get stream:features yet, so we need wait for it
2914   - // by sending a blank poll request
2915   - var body = this._buildBody();
2916   - this._requests.push(
2917   - new Strophe.Request(body.tree(),
2918   - this._onRequestStateChange.bind(this)
2919   - .prependArg(this._connect_cb.bind(this)),
2920   - body.tree().getAttribute("rid")));
2921   - this._throttledRequestHandler();
2922   - return;
2923   - }
2924   -
2925   - if (Strophe.getNodeFromJid(this.jid) === null &&
2926   - do_sasl_anonymous) {
2927   - this._changeConnectStatus(Strophe.Status.AUTHENTICATING, null);
2928   - this._sasl_success_handler = this._addSysHandler(
2929   - this._sasl_success_cb.bind(this), null,
2930   - "success", null, null);
2931   - this._sasl_failure_handler = this._addSysHandler(
2932   - this._sasl_failure_cb.bind(this), null,
2933   - "failure", null, null);
2934   -
2935   - this.send($build("auth", {
2936   - xmlns: Strophe.NS.SASL,
2937   - mechanism: "ANONYMOUS"
2938   - }).tree());
2939   - } else if (Strophe.getNodeFromJid(this.jid) === null) {
2940   - // we don't have a node, which is required for non-anonymous
2941   - // client connections
2942   - this._changeConnectStatus(Strophe.Status.CONNFAIL,
2943   - 'x-strophe-bad-non-anon-jid');
2944   - this.disconnect();
2945   - } else if (do_sasl_digest_md5) {
2946   - this._changeConnectStatus(Strophe.Status.AUTHENTICATING, null);
2947   - this._sasl_challenge_handler = this._addSysHandler(
2948   - this._sasl_challenge1_cb.bind(this), null,
2949   - "challenge", null, null);
2950   - this._sasl_failure_handler = this._addSysHandler(
2951   - this._sasl_failure_cb.bind(this), null,
2952   - "failure", null, null);
2953   -
2954   - this.send($build("auth", {
2955   - xmlns: Strophe.NS.SASL,
2956   - mechanism: "DIGEST-MD5"
2957   - }).tree());
2958   - } else if (do_sasl_plain) {
2959   - // Build the plain auth string (barejid null
2960   - // username null password) and base 64 encoded.
2961   - auth_str = Strophe.getBareJidFromJid(this.jid);
2962   - auth_str = auth_str + "\u0000";
2963   - auth_str = auth_str + Strophe.getNodeFromJid(this.jid);
2964   - auth_str = auth_str + "\u0000";
2965   - auth_str = auth_str + this.pass;
2966   -
2967   - this._changeConnectStatus(Strophe.Status.AUTHENTICATING, null);
2968   - this._sasl_success_handler = this._addSysHandler(
2969   - this._sasl_success_cb.bind(this), null,
2970   - "success", null, null);
2971   - this._sasl_failure_handler = this._addSysHandler(
2972   - this._sasl_failure_cb.bind(this), null,
2973   - "failure", null, null);
2974   -
2975   - hashed_auth_str = Base64.encode(auth_str);
2976   - this.send($build("auth", {
2977   - xmlns: Strophe.NS.SASL,
2978   - mechanism: "PLAIN"
2979   - }).t(hashed_auth_str).tree());
2980   - } else {
2981   - this._changeConnectStatus(Strophe.Status.AUTHENTICATING, null);
2982   - this._addSysHandler(this._auth1_cb.bind(this), null, null,
2983   - null, "_auth_1");
2984   -
2985   - this.send($iq({
2986   - type: "get",
2987   - to: this.domain,
2988   - id: "_auth_1"
2989   - }).c("query", {
2990   - xmlns: Strophe.NS.AUTH
2991   - }).c("username", {}).t(Strophe.getNodeFromJid(this.jid)).tree());
2992   - }
2993   - },
2994   -
2995   - /** PrivateFunction: _sasl_challenge1_cb
2996   - * _Private_ handler for DIGEST-MD5 SASL authentication.
2997   - *
2998   - * Parameters:
2999   - * (XMLElement) elem - The challenge stanza.
3000   - *
3001   - * Returns:
3002   - * false to remove the handler.
3003   - */
3004   - _sasl_challenge1_cb: function (elem)
3005   - {
3006   - var attribMatch = /([a-z]+)=("[^"]+"|[^,"]+)(?:,|$)/;
3007   -
3008   - var challenge = Base64.decode(Strophe.getText(elem));
3009   - var cnonce = MD5.hexdigest(Math.random() * 1234567890);
3010   - var realm = "";
3011   - var host = null;
3012   - var nonce = "";
3013   - var qop = "";
3014   - var matches;
3015   -
3016   - // remove unneeded handlers
3017   - this.deleteHandler(this._sasl_failure_handler);
3018   -
3019   - while (challenge.match(attribMatch)) {
3020   - matches = challenge.match(attribMatch);
3021   - challenge = challenge.replace(matches[0], "");
3022   - matches[2] = matches[2].replace(/^"(.+)"$/, "$1");
3023   - switch (matches[1]) {
3024   - case "realm":
3025   - realm = matches[2];
3026   - break;
3027   - case "nonce":
3028   - nonce = matches[2];
3029   - break;
3030   - case "qop":
3031   - qop = matches[2];
3032   - break;
3033   - case "host":
3034   - host = matches[2];
3035   - break;
3036   - }
3037   - }
3038   -
3039   - var digest_uri = "xmpp/" + this.domain;
3040   - if (host !== null) {
3041   - digest_uri = digest_uri + "/" + host;
3042   - }
3043   -
3044   - var A1 = MD5.hash(Strophe.getNodeFromJid(this.jid) +
3045   - ":" + realm + ":" + this.pass) +
3046   - ":" + nonce + ":" + cnonce;
3047   - var A2 = 'AUTHENTICATE:' + digest_uri;
3048   -
3049   - var responseText = "";
3050   - responseText += 'username=' +
3051   - this._quote(Strophe.getNodeFromJid(this.jid)) + ',';
3052   - responseText += 'realm=' + this._quote(realm) + ',';
3053   - responseText += 'nonce=' + this._quote(nonce) + ',';
3054   - responseText += 'cnonce=' + this._quote(cnonce) + ',';
3055   - responseText += 'nc="00000001",';
3056   - responseText += 'qop="auth",';
3057   - responseText += 'digest-uri=' + this._quote(digest_uri) + ',';
3058   - responseText += 'response=' + this._quote(
3059   - MD5.hexdigest(MD5.hexdigest(A1) + ":" +
3060   - nonce + ":00000001:" +
3061   - cnonce + ":auth:" +
3062   - MD5.hexdigest(A2))) + ',';
3063   - responseText += 'charset="utf-8"';
3064   -
3065   - this._sasl_challenge_handler = this._addSysHandler(
3066   - this._sasl_challenge2_cb.bind(this), null,
3067   - "challenge", null, null);
3068   - this._sasl_success_handler = this._addSysHandler(
3069   - this._sasl_success_cb.bind(this), null,
3070   - "success", null, null);
3071   - this._sasl_failure_handler = this._addSysHandler(
3072   - this._sasl_failure_cb.bind(this), null,
3073   - "failure", null, null);
3074   -
3075   - this.send($build('response', {
3076   - xmlns: Strophe.NS.SASL
3077   - }).t(Base64.encode(responseText)).tree());
3078   -
3079   - return false;
3080   - },
3081   -
3082   - /** PrivateFunction: _quote
3083   - * _Private_ utility function to backslash escape and quote strings.
3084   - *
3085   - * Parameters:
3086   - * (String) str - The string to be quoted.
3087   - *
3088   - * Returns:
3089   - * quoted string
3090   - */
3091   - _quote: function (str)
3092   - {
3093   - return '"' + str.replace(/\\/g, "\\\\").replace(/"/g, '\\"') + '"';
3094   - //" end string workaround for emacs
3095   - },
3096   -
3097   -
3098   - /** PrivateFunction: _sasl_challenge2_cb
3099   - * _Private_ handler for second step of DIGEST-MD5 SASL authentication.
3100   - *
3101   - * Parameters:
3102   - * (XMLElement) elem - The challenge stanza.
3103   - *
3104   - * Returns:
3105   - * false to remove the handler.
3106   - */
3107   - _sasl_challenge2_cb: function (elem)
3108   - {
3109   - // remove unneeded handlers
3110   - this.deleteHandler(this._sasl_success_handler);
3111   - this.deleteHandler(this._sasl_failure_handler);
3112   -
3113   - this._sasl_success_handler = this._addSysHandler(
3114   - this._sasl_success_cb.bind(this), null,
3115   - "success", null, null);
3116   - this._sasl_failure_handler = this._addSysHandler(
3117   - this._sasl_failure_cb.bind(this), null,
3118   - "failure", null, null);
3119   - this.send($build('response', {xmlns: Strophe.NS.SASL}).tree());
3120   - return false;
3121   - },
3122   -
3123   - /** PrivateFunction: _auth1_cb
3124   - * _Private_ handler for legacy authentication.
3125   - *
3126   - * This handler is called in response to the initial <iq type='get'/>
3127   - * for legacy authentication. It builds an authentication <iq/> and
3128   - * sends it, creating a handler (calling back to _auth2_cb()) to
3129   - * handle the result
3130   - *
3131   - * Parameters:
3132   - * (XMLElement) elem - The stanza that triggered the callback.
3133   - *
3134   - * Returns:
3135   - * false to remove the handler.
3136   - */
3137   - _auth1_cb: function (elem)
3138   - {
3139   - // build plaintext auth iq
3140   - var iq = $iq({type: "set", id: "_auth_2"})
3141   - .c('query', {xmlns: Strophe.NS.AUTH})
3142   - .c('username', {}).t(Strophe.getNodeFromJid(this.jid))
3143   - .up()
3144   - .c('password').t(this.pass);
3145   -
3146   - if (!Strophe.getResourceFromJid(this.jid)) {
3147   - // since the user has not supplied a resource, we pick
3148   - // a default one here. unlike other auth methods, the server
3149   - // cannot do this for us.
3150   - this.jid = Strophe.getBareJidFromJid(this.jid) + '/strophe';
3151   - }
3152   - iq.up().c('resource', {}).t(Strophe.getResourceFromJid(this.jid));
3153   -
3154   - this._addSysHandler(this._auth2_cb.bind(this), null,
3155   - null, null, "_auth_2");
3156   -
3157   - this.send(iq.tree());
3158   -
3159   - return false;
3160   - },
3161   -
3162   - /** PrivateFunction: _sasl_success_cb
3163   - * _Private_ handler for succesful SASL authentication.
3164   - *
3165   - * Parameters:
3166   - * (XMLElement) elem - The matching stanza.
3167   - *
3168   - * Returns:
3169   - * false to remove the handler.
3170   - */
3171   - _sasl_success_cb: function (elem)
3172   - {
3173   - Strophe.info("SASL authentication succeeded.");
3174   -
3175   - // remove old handlers
3176   - this.deleteHandler(this._sasl_failure_handler);
3177   - this._sasl_failure_handler = null;
3178   - if (this._sasl_challenge_handler) {
3179   - this.deleteHandler(this._sasl_challenge_handler);
3180   - this._sasl_challenge_handler = null;
3181   - }
3182   -
3183   - this._addSysHandler(this._sasl_auth1_cb.bind(this), null,
3184   - "stream:features", null, null);
3185   -
3186   - // we must send an xmpp:restart now
3187   - this._sendRestart();
3188   -
3189   - return false;
3190   - },
3191   -
3192   - /** PrivateFunction: _sasl_auth1_cb
3193   - * _Private_ handler to start stream binding.
3194   - *
3195   - * Parameters:
3196   - * (XMLElement) elem - The matching stanza.
3197   - *
3198   - * Returns:
3199   - * false to remove the handler.
3200   - */
3201   - _sasl_auth1_cb: function (elem)
3202   - {
3203   - var i, child;
3204   -
3205   - for (i = 0; i < elem.childNodes.length; i++) {
3206   - child = elem.childNodes[i];
3207   - if (child.nodeName == 'bind') {
3208   - this.do_bind = true;
3209   - }
3210   -
3211   - if (child.nodeName == 'session') {
3212   - this.do_session = true;
3213   - }
3214   - }
3215   -
3216   - if (!this.do_bind) {
3217   - this._changeConnectStatus(Strophe.Status.AUTHFAIL, null);
3218   - return false;
3219   - } else {
3220   - this._addSysHandler(this._sasl_bind_cb.bind(this), null, null,
3221   - null, "_bind_auth_2");
3222   -
3223   - var resource = Strophe.getResourceFromJid(this.jid);
3224   - if (resource) {
3225   - this.send($iq({type: "set", id: "_bind_auth_2"})
3226   - .c('bind', {xmlns: Strophe.NS.BIND})
3227   - .c('resource', {}).t(resource).tree());
3228   - } else {
3229   - this.send($iq({type: "set", id: "_bind_auth_2"})
3230   - .c('bind', {xmlns: Strophe.NS.BIND})
3231   - .tree());
3232   - }
3233   - }
3234   -
3235   - return false;
3236   - },
3237   -
3238   - /** PrivateFunction: _sasl_bind_cb
3239   - * _Private_ handler for binding result and session start.
3240   - *
3241   - * Parameters:
3242   - * (XMLElement) elem - The matching stanza.
3243   - *
3244   - * Returns:
3245   - * false to remove the handler.
3246   - */
3247   - _sasl_bind_cb: function (elem)
3248   - {
3249   - if (elem.getAttribute("type") == "error") {
3250   - Strophe.info("SASL binding failed.");
3251   - this._changeConnectStatus(Strophe.Status.AUTHFAIL, null);
3252   - return false;
3253   - }
3254   -
3255   - // TODO - need to grab errors
3256   - var bind = elem.getElementsByTagName("bind");
3257   - var jidNode;
3258   - if (bind.length > 0) {
3259   - // Grab jid
3260   - jidNode = bind[0].getElementsByTagName("jid");
3261   - if (jidNode.length > 0) {
3262   - this.jid = Strophe.getText(jidNode[0]);
3263   -
3264   - if (this.do_session) {
3265   - this._addSysHandler(this._sasl_session_cb.bind(this),
3266   - null, null, null, "_session_auth_2");
3267   -
3268   - this.send($iq({type: "set", id: "_session_auth_2"})
3269   - .c('session', {xmlns: Strophe.NS.SESSION})
3270   - .tree());
3271   - } else {
3272   - this.authenticated = true;
3273   - this._changeConnectStatus(Strophe.Status.CONNECTED, null);
3274   - }
3275   - }
3276   - } else {
3277   - Strophe.info("SASL binding failed.");
3278   - this._changeConnectStatus(Strophe.Status.AUTHFAIL, null);
3279   - return false;
3280   - }
3281   - },
3282   -
3283   - /** PrivateFunction: _sasl_session_cb
3284   - * _Private_ handler to finish successful SASL connection.
3285   - *
3286   - * This sets Connection.authenticated to true on success, which
3287   - * starts the processing of user handlers.
3288   - *
3289   - * Parameters:
3290   - * (XMLElement) elem - The matching stanza.
3291   - *
3292   - * Returns:
3293   - * false to remove the handler.
3294   - */
3295   - _sasl_session_cb: function (elem)
3296   - {
3297   - if (elem.getAttribute("type") == "result") {
3298   - this.authenticated = true;
3299   - this._changeConnectStatus(Strophe.Status.CONNECTED, null);
3300   - } else if (elem.getAttribute("type") == "error") {
3301   - Strophe.info("Session creation failed.");
3302   - this._changeConnectStatus(Strophe.Status.AUTHFAIL, null);
3303   - return false;
3304   - }
3305   -
3306   - return false;
3307   - },
3308   -
3309   - /** PrivateFunction: _sasl_failure_cb
3310   - * _Private_ handler for SASL authentication failure.
3311   - *
3312   - * Parameters:
3313   - * (XMLElement) elem - The matching stanza.
3314   - *
3315   - * Returns:
3316   - * false to remove the handler.
3317   - */
3318   - _sasl_failure_cb: function (elem)
3319   - {
3320   - // delete unneeded handlers
3321   - if (this._sasl_success_handler) {
3322   - this.deleteHandler(this._sasl_success_handler);
3323   - this._sasl_success_handler = null;
3324   - }
3325   - if (this._sasl_challenge_handler) {
3326   - this.deleteHandler(this._sasl_challenge_handler);
3327   - this._sasl_challenge_handler = null;
3328   - }
3329   -
3330   - this._changeConnectStatus(Strophe.Status.AUTHFAIL, null);
3331   - return false;
3332   - },
3333   -
3334   - /** PrivateFunction: _auth2_cb
3335   - * _Private_ handler to finish legacy authentication.
3336   - *
3337   - * This handler is called when the result from the jabber:iq:auth
3338   - * <iq/> stanza is returned.
3339   - *
3340   - * Parameters:
3341   - * (XMLElement) elem - The stanza that triggered the callback.
3342   - *
3343   - * Returns:
3344   - * false to remove the handler.
3345   - */
3346   - _auth2_cb: function (elem)
3347   - {
3348   - if (elem.getAttribute("type") == "result") {
3349   - this.authenticated = true;
3350   - this._changeConnectStatus(Strophe.Status.CONNECTED, null);
3351   - } else if (elem.getAttribute("type") == "error") {
3352   - this._changeConnectStatus(Strophe.Status.AUTHFAIL, null);
3353   - this.disconnect();
3354   - }
3355   -
3356   - return false;
3357   - },
3358   -
3359   - /** PrivateFunction: _addSysTimedHandler
3360   - * _Private_ function to add a system level timed handler.
3361   - *
3362   - * This function is used to add a Strophe.TimedHandler for the
3363   - * library code. System timed handlers are allowed to run before
3364   - * authentication is complete.
3365   - *
3366   - * Parameters:
3367   - * (Integer) period - The period of the handler.
3368   - * (Function) handler - The callback function.
3369   - */
3370   - _addSysTimedHandler: function (period, handler)
3371   - {
3372   - var thand = new Strophe.TimedHandler(period, handler);
3373   - thand.user = false;
3374   - this.addTimeds.push(thand);
3375   - return thand;
3376   - },
3377   -
3378   - /** PrivateFunction: _addSysHandler
3379   - * _Private_ function to add a system level stanza handler.
3380   - *
3381   - * This function is used to add a Strophe.Handler for the
3382   - * library code. System stanza handlers are allowed to run before
3383   - * authentication is complete.
3384   - *
3385   - * Parameters:
3386   - * (Function) handler - The callback function.
3387   - * (String) ns - The namespace to match.
3388   - * (String) name - The stanza name to match.
3389   - * (String) type - The stanza type attribute to match.
3390   - * (String) id - The stanza id attribute to match.
3391   - */
3392   - _addSysHandler: function (handler, ns, name, type, id)
3393   - {
3394   - var hand = new Strophe.Handler(handler, ns, name, type, id);
3395   - hand.user = false;
3396   - this.addHandlers.push(hand);
3397   - return hand;
3398   - },
3399   -
3400   - /** PrivateFunction: _onDisconnectTimeout
3401   - * _Private_ timeout handler for handling non-graceful disconnection.
3402   - *
3403   - * If the graceful disconnect process does not complete within the
3404   - * time allotted, this handler finishes the disconnect anyway.
3405   - *
3406   - * Returns:
3407   - * false to remove the handler.
3408   - */
3409   - _onDisconnectTimeout: function ()
3410   - {
3411   - Strophe.info("_onDisconnectTimeout was called");
3412   -
3413   - // cancel all remaining requests and clear the queue
3414   - var req;
3415   - while (this._requests.length > 0) {
3416   - req = this._requests.pop();
3417   - req.abort = true;
3418   - req.xhr.abort();
3419   - // jslint complains, but this is fine. setting to empty func
3420   - // is necessary for IE6
3421   - req.xhr.onreadystatechange = function () {};
3422   - }
3423   -
3424   - // actually disconnect
3425   - this._doDisconnect();
3426   -
3427   - return false;
3428   - },
3429   -
3430   - /** PrivateFunction: _onIdle
3431   - * _Private_ handler to process events during idle cycle.
3432   - *
3433   - * This handler is called every 100ms to fire timed handlers that
3434   - * are ready and keep poll requests going.
3435   - */
3436   - _onIdle: function ()
3437   - {
3438   - var i, thand, since, newList;
3439   -
3440   - // remove timed handlers that have been scheduled for deletion
3441   - while (this.removeTimeds.length > 0) {
3442   - thand = this.removeTimeds.pop();
3443   - i = this.timedHandlers.indexOf(thand);
3444   - if (i >= 0) {
3445   - this.timedHandlers.splice(i, 1);
3446   - }
3447   - }
3448   -
3449   - // add timed handlers scheduled for addition
3450   - while (this.addTimeds.length > 0) {
3451   - this.timedHandlers.push(this.addTimeds.pop());
3452   - }
3453   -
3454   - // call ready timed handlers
3455   - var now = new Date().getTime();
3456   - newList = [];
3457   - for (i = 0; i < this.timedHandlers.length; i++) {
3458   - thand = this.timedHandlers[i];
3459   - if (this.authenticated || !thand.user) {
3460   - since = thand.lastCalled + thand.period;
3461   - if (since - now <= 0) {
3462   - if (thand.run()) {
3463   - newList.push(thand);
3464   - }
3465   - } else {
3466   - newList.push(thand);
3467   - }
3468   - }
3469   - }
3470   - this.timedHandlers = newList;
3471   -
3472   - var body, time_elapsed;
3473   -
3474   - // if no requests are in progress, poll
3475   - if (this.authenticated && this._requests.length === 0 &&
3476   - this._data.length === 0 && !this.disconnecting) {
3477   - Strophe.info("no requests during idle cycle, sending " +
3478   - "blank request");
3479   - this._data.push(null);
3480   - }
3481   -
3482   - if (this._requests.length < 2 && this._data.length > 0 &&
3483   - !this.paused) {
3484   - body = this._buildBody();
3485   - for (i = 0; i < this._data.length; i++) {
3486   - if (this._data[i] !== null) {
3487   - if (this._data[i] === "restart") {
3488   - body.attrs({
3489   - to: this.domain,
3490   - "xml:lang": "en",
3491   - "xmpp:restart": "true",
3492   - "xmlns:xmpp": Strophe.NS.BOSH
3493   - });
3494   - } else {
3495   - body.cnode(this._data[i]).up();
3496   - }
3497   - }
3498   - }
3499   - delete this._data;
3500   - this._data = [];
3501   - this._requests.push(
3502   - new Strophe.Request(body.tree(),
3503   - this._onRequestStateChange.bind(this)
3504   - .prependArg(this._dataRecv.bind(this)),
3505   - body.tree().getAttribute("rid")));
3506   - this._processRequest(this._requests.length - 1);
3507   - }
3508   -
3509   - if (this._requests.length > 0) {
3510   - time_elapsed = this._requests[0].age();
3511   - if (this._requests[0].dead !== null) {
3512   - if (this._requests[0].timeDead() >
3513   - Math.floor(Strophe.SECONDARY_TIMEOUT * this.wait)) {
3514   - this._throttledRequestHandler();
3515   - }
3516   - }
3517   -
3518   - if (time_elapsed > Math.floor(Strophe.TIMEOUT * this.wait)) {
3519   - Strophe.warn("Request " +
3520   - this._requests[0].id +
3521   - " timed out, over " + Math.floor(Strophe.TIMEOUT * this.wait) +
3522   - " seconds since last activity");
3523   - this._throttledRequestHandler();
3524   - }
3525   - }
3526   -
3527   - // reactivate the timer
3528   - clearTimeout(this._idleTimeout);
3529   - this._idleTimeout = setTimeout(this._onIdle.bind(this), 100);
3530   - }
3531   -};
3532   -
3533   -if (callback) {
3534   - callback(Strophe, $build, $msg, $iq, $pres);
3535   -}
3536   -
3537   -})(function () {
3538   - window.Strophe = arguments[0];
3539   - window.$build = arguments[1];
3540   - window.$msg = arguments[2];
3541   - window.$iq = arguments[3];
3542   - window.$pres = arguments[4];
3543   -});
public/javascripts/strophejs-1.0.1/strophe.min.js
... ... @@ -1 +0,0 @@
1   -var Base64=(function(){var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var obj={encode:function(input){var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;do{chr1=input.charCodeAt(i++);chr2=input.charCodeAt(i++);chr3=input.charCodeAt(i++);enc1=chr1>>2;enc2=((chr1&3)<<4)|(chr2>>4);enc3=((chr2&15)<<2)|(chr3>>6);enc4=chr3&63;if(isNaN(chr2)){enc3=enc4=64}else{if(isNaN(chr3)){enc4=64}}output=output+keyStr.charAt(enc1)+keyStr.charAt(enc2)+keyStr.charAt(enc3)+keyStr.charAt(enc4)}while(i<input.length);return output},decode:function(input){var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{enc1=keyStr.indexOf(input.charAt(i++));enc2=keyStr.indexOf(input.charAt(i++));enc3=keyStr.indexOf(input.charAt(i++));enc4=keyStr.indexOf(input.charAt(i++));chr1=(enc1<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;output=output+String.fromCharCode(chr1);if(enc3!=64){output=output+String.fromCharCode(chr2)}if(enc4!=64){output=output+String.fromCharCode(chr3)}}while(i<input.length);return output}};return obj})();var MD5=(function(){var hexcase=0;var b64pad="";var chrsz=8;var safe_add=function(x,y){var lsw=(x&65535)+(y&65535);var msw=(x>>16)+(y>>16)+(lsw>>16);return(msw<<16)|(lsw&65535)};var bit_rol=function(num,cnt){return(num<<cnt)|(num>>>(32-cnt))};var str2binl=function(str){var bin=[];var mask=(1<<chrsz)-1;for(var i=0;i<str.length*chrsz;i+=chrsz){bin[i>>5]|=(str.charCodeAt(i/chrsz)&mask)<<(i%32)}return bin};var binl2str=function(bin){var str="";var mask=(1<<chrsz)-1;for(var i=0;i<bin.length*32;i+=chrsz){str+=String.fromCharCode((bin[i>>5]>>>(i%32))&mask)}return str};var binl2hex=function(binarray){var hex_tab=hexcase?"0123456789ABCDEF":"0123456789abcdef";var str="";for(var i=0;i<binarray.length*4;i++){str+=hex_tab.charAt((binarray[i>>2]>>((i%4)*8+4))&15)+hex_tab.charAt((binarray[i>>2]>>((i%4)*8))&15)}return str};var binl2b64=function(binarray){var tab="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var str="";var triplet,j;for(var i=0;i<binarray.length*4;i+=3){triplet=(((binarray[i>>2]>>8*(i%4))&255)<<16)|(((binarray[i+1>>2]>>8*((i+1)%4))&255)<<8)|((binarray[i+2>>2]>>8*((i+2)%4))&255);for(j=0;j<4;j++){if(i*8+j*6>binarray.length*32){str+=b64pad}else{str+=tab.charAt((triplet>>6*(3-j))&63)}}}return str};var md5_cmn=function(q,a,b,x,s,t){return safe_add(bit_rol(safe_add(safe_add(a,q),safe_add(x,t)),s),b)};var md5_ff=function(a,b,c,d,x,s,t){return md5_cmn((b&c)|((~b)&d),a,b,x,s,t)};var md5_gg=function(a,b,c,d,x,s,t){return md5_cmn((b&d)|(c&(~d)),a,b,x,s,t)};var md5_hh=function(a,b,c,d,x,s,t){return md5_cmn(b^c^d,a,b,x,s,t)};var md5_ii=function(a,b,c,d,x,s,t){return md5_cmn(c^(b|(~d)),a,b,x,s,t)};var core_md5=function(x,len){x[len>>5]|=128<<((len)%32);x[(((len+64)>>>9)<<4)+14]=len;var a=1732584193;var b=-271733879;var c=-1732584194;var d=271733878;var olda,oldb,oldc,oldd;for(var i=0;i<x.length;i+=16){olda=a;oldb=b;oldc=c;oldd=d;a=md5_ff(a,b,c,d,x[i+0],7,-680876936);d=md5_ff(d,a,b,c,x[i+1],12,-389564586);c=md5_ff(c,d,a,b,x[i+2],17,606105819);b=md5_ff(b,c,d,a,x[i+3],22,-1044525330);a=md5_ff(a,b,c,d,x[i+4],7,-176418897);d=md5_ff(d,a,b,c,x[i+5],12,1200080426);c=md5_ff(c,d,a,b,x[i+6],17,-1473231341);b=md5_ff(b,c,d,a,x[i+7],22,-45705983);a=md5_ff(a,b,c,d,x[i+8],7,1770035416);d=md5_ff(d,a,b,c,x[i+9],12,-1958414417);c=md5_ff(c,d,a,b,x[i+10],17,-42063);b=md5_ff(b,c,d,a,x[i+11],22,-1990404162);a=md5_ff(a,b,c,d,x[i+12],7,1804603682);d=md5_ff(d,a,b,c,x[i+13],12,-40341101);c=md5_ff(c,d,a,b,x[i+14],17,-1502002290);b=md5_ff(b,c,d,a,x[i+15],22,1236535329);a=md5_gg(a,b,c,d,x[i+1],5,-165796510);d=md5_gg(d,a,b,c,x[i+6],9,-1069501632);c=md5_gg(c,d,a,b,x[i+11],14,643717713);b=md5_gg(b,c,d,a,x[i+0],20,-373897302);a=md5_gg(a,b,c,d,x[i+5],5,-701558691);d=md5_gg(d,a,b,c,x[i+10],9,38016083);c=md5_gg(c,d,a,b,x[i+15],14,-660478335);b=md5_gg(b,c,d,a,x[i+4],20,-405537848);a=md5_gg(a,b,c,d,x[i+9],5,568446438);d=md5_gg(d,a,b,c,x[i+14],9,-1019803690);c=md5_gg(c,d,a,b,x[i+3],14,-187363961);b=md5_gg(b,c,d,a,x[i+8],20,1163531501);a=md5_gg(a,b,c,d,x[i+13],5,-1444681467);d=md5_gg(d,a,b,c,x[i+2],9,-51403784);c=md5_gg(c,d,a,b,x[i+7],14,1735328473);b=md5_gg(b,c,d,a,x[i+12],20,-1926607734);a=md5_hh(a,b,c,d,x[i+5],4,-378558);d=md5_hh(d,a,b,c,x[i+8],11,-2022574463);c=md5_hh(c,d,a,b,x[i+11],16,1839030562);b=md5_hh(b,c,d,a,x[i+14],23,-35309556);a=md5_hh(a,b,c,d,x[i+1],4,-1530992060);d=md5_hh(d,a,b,c,x[i+4],11,1272893353);c=md5_hh(c,d,a,b,x[i+7],16,-155497632);b=md5_hh(b,c,d,a,x[i+10],23,-1094730640);a=md5_hh(a,b,c,d,x[i+13],4,681279174);d=md5_hh(d,a,b,c,x[i+0],11,-358537222);c=md5_hh(c,d,a,b,x[i+3],16,-722521979);b=md5_hh(b,c,d,a,x[i+6],23,76029189);a=md5_hh(a,b,c,d,x[i+9],4,-640364487);d=md5_hh(d,a,b,c,x[i+12],11,-421815835);c=md5_hh(c,d,a,b,x[i+15],16,530742520);b=md5_hh(b,c,d,a,x[i+2],23,-995338651);a=md5_ii(a,b,c,d,x[i+0],6,-198630844);d=md5_ii(d,a,b,c,x[i+7],10,1126891415);c=md5_ii(c,d,a,b,x[i+14],15,-1416354905);b=md5_ii(b,c,d,a,x[i+5],21,-57434055);a=md5_ii(a,b,c,d,x[i+12],6,1700485571);d=md5_ii(d,a,b,c,x[i+3],10,-1894986606);c=md5_ii(c,d,a,b,x[i+10],15,-1051523);b=md5_ii(b,c,d,a,x[i+1],21,-2054922799);a=md5_ii(a,b,c,d,x[i+8],6,1873313359);d=md5_ii(d,a,b,c,x[i+15],10,-30611744);c=md5_ii(c,d,a,b,x[i+6],15,-1560198380);b=md5_ii(b,c,d,a,x[i+13],21,1309151649);a=md5_ii(a,b,c,d,x[i+4],6,-145523070);d=md5_ii(d,a,b,c,x[i+11],10,-1120210379);c=md5_ii(c,d,a,b,x[i+2],15,718787259);b=md5_ii(b,c,d,a,x[i+9],21,-343485551);a=safe_add(a,olda);b=safe_add(b,oldb);c=safe_add(c,oldc);d=safe_add(d,oldd)}return[a,b,c,d]};var core_hmac_md5=function(key,data){var bkey=str2binl(key);if(bkey.length>16){bkey=core_md5(bkey,key.length*chrsz)}var ipad=new Array(16),opad=new Array(16);for(var i=0;i<16;i++){ipad[i]=bkey[i]^909522486;opad[i]=bkey[i]^1549556828}var hash=core_md5(ipad.concat(str2binl(data)),512+data.length*chrsz);return core_md5(opad.concat(hash),512+128)};var obj={hexdigest:function(s){return binl2hex(core_md5(str2binl(s),s.length*chrsz))},b64digest:function(s){return binl2b64(core_md5(str2binl(s),s.length*chrsz))},hash:function(s){return binl2str(core_md5(str2binl(s),s.length*chrsz))},hmac_hexdigest:function(key,data){return binl2hex(core_hmac_md5(key,data))},hmac_b64digest:function(key,data){return binl2b64(core_hmac_md5(key,data))},hmac_hash:function(key,data){return binl2str(core_hmac_md5(key,data))},test:function(){return MD5.hexdigest("abc")==="900150983cd24fb0d6963f7d28e17f72"}};return obj})();if(!Function.prototype.bind){Function.prototype.bind=function(obj){var func=this;return function(){return func.apply(obj,arguments)}}}if(!Function.prototype.prependArg){Function.prototype.prependArg=function(arg){var func=this;return function(){var newargs=[arg];for(var i=0;i<arguments.length;i++){newargs.push(arguments[i])}return func.apply(this,newargs)}}}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(elt){var len=this.length;var from=Number(arguments[1])||0;from=(from<0)?Math.ceil(from):Math.floor(from);if(from<0){from+=len}for(;from<len;from++){if(from in this&&this[from]===elt){return from}}return -1}}(function(callback){var Strophe;function $build(name,attrs){return new Strophe.Builder(name,attrs)}function $msg(attrs){return new Strophe.Builder("message",attrs)}function $iq(attrs){return new Strophe.Builder("iq",attrs)}function $pres(attrs){return new Strophe.Builder("presence",attrs)}Strophe={VERSION:"1.0.1",NS:{HTTPBIND:"http://jabber.org/protocol/httpbind",BOSH:"urn:xmpp:xbosh",CLIENT:"jabber:client",AUTH:"jabber:iq:auth",ROSTER:"jabber:iq:roster",PROFILE:"jabber:iq:profile",DISCO_INFO:"http://jabber.org/protocol/disco#info",DISCO_ITEMS:"http://jabber.org/protocol/disco#items",MUC:"http://jabber.org/protocol/muc",SASL:"urn:ietf:params:xml:ns:xmpp-sasl",STREAM:"http://etherx.jabber.org/streams",BIND:"urn:ietf:params:xml:ns:xmpp-bind",SESSION:"urn:ietf:params:xml:ns:xmpp-session",VERSION:"jabber:iq:version",STANZAS:"urn:ietf:params:xml:ns:xmpp-stanzas"},addNamespace:function(name,value){Strophe.NS[name]=value},Status:{ERROR:0,CONNECTING:1,CONNFAIL:2,AUTHENTICATING:3,AUTHFAIL:4,CONNECTED:5,DISCONNECTED:6,DISCONNECTING:7,ATTACHED:8},LogLevel:{DEBUG:0,INFO:1,WARN:2,ERROR:3,FATAL:4},ElementType:{NORMAL:1,TEXT:3},TIMEOUT:1.1,SECONDARY_TIMEOUT:0.1,forEachChild:function(elem,elemName,func){var i,childNode;for(i=0;i<elem.childNodes.length;i++){childNode=elem.childNodes[i];if(childNode.nodeType==Strophe.ElementType.NORMAL&&(!elemName||this.isTagEqual(childNode,elemName))){func(childNode)}}},isTagEqual:function(el,name){return el.tagName.toLowerCase()==name.toLowerCase()},_xmlGenerator:null,_makeGenerator:function(){var doc;if(window.ActiveXObject){doc=new ActiveXObject("Microsoft.XMLDOM");doc.appendChild(doc.createElement("strophe"))}else{doc=document.implementation.createDocument("jabber:client","strophe",null)}return doc},xmlElement:function(name){if(!name){return null}var node=null;if(!Strophe._xmlGenerator){Strophe._xmlGenerator=Strophe._makeGenerator()}node=Strophe._xmlGenerator.createElement(name);var a,i,k;for(a=1;a<arguments.length;a++){if(!arguments[a]){continue}if(typeof(arguments[a])=="string"||typeof(arguments[a])=="number"){node.appendChild(Strophe.xmlTextNode(arguments[a]))}else{if(typeof(arguments[a])=="object"&&typeof(arguments[a].sort)=="function"){for(i=0;i<arguments[a].length;i++){if(typeof(arguments[a][i])=="object"&&typeof(arguments[a][i].sort)=="function"){node.setAttribute(arguments[a][i][0],arguments[a][i][1])}}}else{if(typeof(arguments[a])=="object"){for(k in arguments[a]){if(arguments[a].hasOwnProperty(k)){node.setAttribute(k,arguments[a][k])}}}}}}return node},xmlescape:function(text){text=text.replace(/\&/g,"&amp;");text=text.replace(/</g,"&lt;");text=text.replace(/>/g,"&gt;");return text},xmlTextNode:function(text){text=Strophe.xmlescape(text);if(!Strophe._xmlGenerator){Strophe._xmlGenerator=Strophe._makeGenerator()}return Strophe._xmlGenerator.createTextNode(text)},getText:function(elem){if(!elem){return null}var str="";if(elem.childNodes.length===0&&elem.nodeType==Strophe.ElementType.TEXT){str+=elem.nodeValue}for(var i=0;i<elem.childNodes.length;i++){if(elem.childNodes[i].nodeType==Strophe.ElementType.TEXT){str+=elem.childNodes[i].nodeValue}}return str},copyElement:function(elem){var i,el;if(elem.nodeType==Strophe.ElementType.NORMAL){el=Strophe.xmlElement(elem.tagName);for(i=0;i<elem.attributes.length;i++){el.setAttribute(elem.attributes[i].nodeName.toLowerCase(),elem.attributes[i].value)}for(i=0;i<elem.childNodes.length;i++){el.appendChild(Strophe.copyElement(elem.childNodes[i]))}}else{if(elem.nodeType==Strophe.ElementType.TEXT){el=Strophe.xmlTextNode(elem.nodeValue)}}return el},escapeNode:function(node){return node.replace(/^\s+|\s+$/g,"").replace(/\\/g,"\\5c").replace(/ /g,"\\20").replace(/\"/g,"\\22").replace(/\&/g,"\\26").replace(/\'/g,"\\27").replace(/\//g,"\\2f").replace(/:/g,"\\3a").replace(/</g,"\\3c").replace(/>/g,"\\3e").replace(/@/g,"\\40")},unescapeNode:function(node){return node.replace(/\\20/g," ").replace(/\\22/g,'"').replace(/\\26/g,"&").replace(/\\27/g,"'").replace(/\\2f/g,"/").replace(/\\3a/g,":").replace(/\\3c/g,"<").replace(/\\3e/g,">").replace(/\\40/g,"@").replace(/\\5c/g,"\\")},getNodeFromJid:function(jid){if(jid.indexOf("@")<0){return null}return jid.split("@")[0]},getDomainFromJid:function(jid){var bare=Strophe.getBareJidFromJid(jid);if(bare.indexOf("@")<0){return bare}else{var parts=bare.split("@");parts.splice(0,1);return parts.join("@")}},getResourceFromJid:function(jid){var s=jid.split("/");if(s.length<2){return null}s.splice(0,1);return s.join("/")},getBareJidFromJid:function(jid){return jid.split("/")[0]},log:function(level,msg){return},debug:function(msg){this.log(this.LogLevel.DEBUG,msg)},info:function(msg){this.log(this.LogLevel.INFO,msg)},warn:function(msg){this.log(this.LogLevel.WARN,msg)},error:function(msg){this.log(this.LogLevel.ERROR,msg)},fatal:function(msg){this.log(this.LogLevel.FATAL,msg)},serialize:function(elem){var result;if(!elem){return null}if(typeof(elem.tree)==="function"){elem=elem.tree()}var nodeName=elem.nodeName;var i,child;if(elem.getAttribute("_realname")){nodeName=elem.getAttribute("_realname")}result="<"+nodeName;for(i=0;i<elem.attributes.length;i++){if(elem.attributes[i].nodeName!="_realname"){result+=" "+elem.attributes[i].nodeName.toLowerCase()+"='"+elem.attributes[i].value.replace("&","&amp;").replace("'","&apos;").replace("<","&lt;")+"'"}}if(elem.childNodes.length>0){result+=">";for(i=0;i<elem.childNodes.length;i++){child=elem.childNodes[i];if(child.nodeType==Strophe.ElementType.NORMAL){result+=Strophe.serialize(child)}else{if(child.nodeType==Strophe.ElementType.TEXT){result+=child.nodeValue}}}result+="</"+nodeName+">"}else{result+="/>"}return result},_requestId:0,_connectionPlugins:{},addConnectionPlugin:function(name,ptype){Strophe._connectionPlugins[name]=ptype}};Strophe.Builder=function(name,attrs){if(name=="presence"||name=="message"||name=="iq"){if(attrs&&!attrs.xmlns){attrs.xmlns=Strophe.NS.CLIENT}else{if(!attrs){attrs={xmlns:Strophe.NS.CLIENT}}}}this.nodeTree=Strophe.xmlElement(name,attrs);this.node=this.nodeTree};Strophe.Builder.prototype={tree:function(){return this.nodeTree},toString:function(){return Strophe.serialize(this.nodeTree)},up:function(){this.node=this.node.parentNode;return this},attrs:function(moreattrs){for(var k in moreattrs){if(moreattrs.hasOwnProperty(k)){this.node.setAttribute(k,moreattrs[k])}}return this},c:function(name,attrs){var child=Strophe.xmlElement(name,attrs);this.node.appendChild(child);this.node=child;return this},cnode:function(elem){this.node.appendChild(elem);this.node=elem;return this},t:function(text){var child=Strophe.xmlTextNode(text);this.node.appendChild(child);return this}};Strophe.Handler=function(handler,ns,name,type,id,from,options){this.handler=handler;this.ns=ns;this.name=name;this.type=type;this.id=id;this.options=options||{matchbare:false};if(!this.options.matchBare){this.options.matchBare=false}if(this.options.matchBare){this.from=Strophe.getBareJidFromJid(from)}else{this.from=from}this.user=true};Strophe.Handler.prototype={isMatch:function(elem){var nsMatch;var from=null;if(this.options.matchBare){from=Strophe.getBareJidFromJid(elem.getAttribute("from"))}else{from=elem.getAttribute("from")}nsMatch=false;if(!this.ns){nsMatch=true}else{var self=this;Strophe.forEachChild(elem,null,function(elem){if(elem.getAttribute("xmlns")==self.ns){nsMatch=true}});nsMatch=nsMatch||elem.getAttribute("xmlns")==this.ns}if(nsMatch&&(!this.name||Strophe.isTagEqual(elem,this.name))&&(!this.type||elem.getAttribute("type")===this.type)&&(!this.id||elem.getAttribute("id")===this.id)&&(!this.from||from===this.from)){return true}return false},run:function(elem){var result=null;try{result=this.handler(elem)}catch(e){if(e.sourceURL){Strophe.fatal("error: "+this.handler+" "+e.sourceURL+":"+e.line+" - "+e.name+": "+e.message)}else{if(e.fileName){if(typeof(console)!="undefined"){console.trace();console.error(this.handler," - error - ",e,e.message)}Strophe.fatal("error: "+this.handler+" "+e.fileName+":"+e.lineNumber+" - "+e.name+": "+e.message)}else{Strophe.fatal("error: "+this.handler)}}throw e}return result},toString:function(){return"{Handler: "+this.handler+"("+this.name+","+this.id+","+this.ns+")}"}};Strophe.TimedHandler=function(period,handler){this.period=period;this.handler=handler;this.lastCalled=new Date().getTime();this.user=true};Strophe.TimedHandler.prototype={run:function(){this.lastCalled=new Date().getTime();return this.handler()},reset:function(){this.lastCalled=new Date().getTime()},toString:function(){return"{TimedHandler: "+this.handler+"("+this.period+")}"}};Strophe.Request=function(elem,func,rid,sends){this.id=++Strophe._requestId;this.xmlData=elem;this.data=Strophe.serialize(elem);this.origFunc=func;this.func=func;this.rid=rid;this.date=NaN;this.sends=sends||0;this.abort=false;this.dead=null;this.age=function(){if(!this.date){return 0}var now=new Date();return(now-this.date)/1000};this.timeDead=function(){if(!this.dead){return 0}var now=new Date();return(now-this.dead)/1000};this.xhr=this._newXHR()};Strophe.Request.prototype={getResponse:function(){var node=null;if(this.xhr.responseXML&&this.xhr.responseXML.documentElement){node=this.xhr.responseXML.documentElement;if(node.tagName=="parsererror"){Strophe.error("invalid response received");Strophe.error("responseText: "+this.xhr.responseText);Strophe.error("responseXML: "+Strophe.serialize(this.xhr.responseXML));throw"parsererror"}}else{if(this.xhr.responseText){Strophe.error("invalid response received");Strophe.error("responseText: "+this.xhr.responseText);Strophe.error("responseXML: "+Strophe.serialize(this.xhr.responseXML))}}return node},_newXHR:function(){var xhr=null;if(window.XMLHttpRequest){xhr=new XMLHttpRequest();if(xhr.overrideMimeType){xhr.overrideMimeType("text/xml")}}else{if(window.ActiveXObject){xhr=new ActiveXObject("Microsoft.XMLHTTP")}}xhr.onreadystatechange=this.func.prependArg(this);return xhr}};Strophe.Connection=function(service){this.service=service;this.jid="";this.rid=Math.floor(Math.random()*4294967295);this.sid=null;this.streamId=null;this.do_session=false;this.do_bind=false;this.timedHandlers=[];this.handlers=[];this.removeTimeds=[];this.removeHandlers=[];this.addTimeds=[];this.addHandlers=[];this._idleTimeout=null;this._disconnectTimeout=null;this.authenticated=false;this.disconnecting=false;this.connected=false;this.errors=0;this.paused=false;this.hold=1;this.wait=60;this.window=5;this._data=[];this._requests=[];this._uniqueId=Math.round(Math.random()*10000);this._sasl_success_handler=null;this._sasl_failure_handler=null;this._sasl_challenge_handler=null;this._idleTimeout=setTimeout(this._onIdle.bind(this),100);for(var k in Strophe._connectionPlugins){if(Strophe._connectionPlugins.hasOwnProperty(k)){var ptype=Strophe._connectionPlugins[k];var F=function(){};F.prototype=ptype;this[k]=new F();this[k].init(this)}}};Strophe.Connection.prototype={reset:function(){this.rid=Math.floor(Math.random()*4294967295);this.sid=null;this.streamId=null;this.do_session=false;this.do_bind=false;this.timedHandlers=[];this.handlers=[];this.removeTimeds=[];this.removeHandlers=[];this.addTimeds=[];this.addHandlers=[];this.authenticated=false;this.disconnecting=false;this.connected=false;this.errors=0;this._requests=[];this._uniqueId=Math.round(Math.random()*10000)},pause:function(){this.paused=true},resume:function(){this.paused=false},getUniqueId:function(suffix){if(typeof(suffix)=="string"||typeof(suffix)=="number"){return ++this._uniqueId+":"+suffix}else{return ++this._uniqueId+""}},connect:function(jid,pass,callback,wait,hold){this.jid=jid;this.pass=pass;this.connect_callback=callback;this.disconnecting=false;this.connected=false;this.authenticated=false;this.errors=0;this.wait=wait||this.wait;this.hold=hold||this.hold;this.domain=Strophe.getDomainFromJid(this.jid);var body=this._buildBody().attrs({to:this.domain,"xml:lang":"en",wait:this.wait,hold:this.hold,content:"text/xml; charset=utf-8",ver:"1.6","xmpp:version":"1.0","xmlns:xmpp":Strophe.NS.BOSH});this._changeConnectStatus(Strophe.Status.CONNECTING,null);this._requests.push(new Strophe.Request(body.tree(),this._onRequestStateChange.bind(this).prependArg(this._connect_cb.bind(this)),body.tree().getAttribute("rid")));this._throttledRequestHandler()},attach:function(jid,sid,rid,callback,wait,hold,wind){this.jid=jid;this.sid=sid;this.rid=rid;this.connect_callback=callback;this.domain=Strophe.getDomainFromJid(this.jid);this.authenticated=true;this.connected=true;this.wait=wait||this.wait;this.hold=hold||this.hold;this.window=wind||this.window;this._changeConnectStatus(Strophe.Status.ATTACHED,null)},xmlInput:function(elem){return},xmlOutput:function(elem){return},rawInput:function(data){return},rawOutput:function(data){return},send:function(elem){if(elem===null){return}if(typeof(elem.sort)==="function"){for(var i=0;i<elem.length;i++){this._queueData(elem[i])}}else{if(typeof(elem.tree)==="function"){this._queueData(elem.tree())}else{this._queueData(elem)}}this._throttledRequestHandler();clearTimeout(this._idleTimeout);this._idleTimeout=setTimeout(this._onIdle.bind(this),100)},flush:function(){clearTimeout(this._idleTimeout);this._onIdle()},sendIQ:function(elem,callback,errback,timeout){var timeoutHandler=null;var that=this;if(typeof(elem.tree)==="function"){elem=elem.tree()}var id=elem.getAttribute("id");if(!id){id=this.getUniqueId("sendIQ");elem.setAttribute("id",id)}var handler=this.addHandler(function(stanza){if(timeoutHandler){that.deleteTimedHandler(timeoutHandler)}var iqtype=stanza.getAttribute("type");if(iqtype==="result"){if(callback){callback(stanza)}}else{if(iqtype==="error"){if(errback){errback(stanza)}}else{throw {name:"StropheError",message:"Got bad IQ type of "+iqtype}}}},null,"iq",null,id);if(timeout){timeoutHandler=this.addTimedHandler(timeout,function(){that.deleteHandler(handler);if(errback){errback(null)}return false})}this.send(elem);return id},_queueData:function(element){if(element===null||!element.tagName||!element.childNodes){throw {name:"StropheError",message:"Cannot queue non-DOMElement."}}this._data.push(element)},_sendRestart:function(){this._data.push("restart");this._throttledRequestHandler();clearTimeout(this._idleTimeout);this._idleTimeout=setTimeout(this._onIdle.bind(this),100)},addTimedHandler:function(period,handler){var thand=new Strophe.TimedHandler(period,handler);this.addTimeds.push(thand);return thand},deleteTimedHandler:function(handRef){this.removeTimeds.push(handRef)},addHandler:function(handler,ns,name,type,id,from,options){var hand=new Strophe.Handler(handler,ns,name,type,id,from,options);this.addHandlers.push(hand);return hand},deleteHandler:function(handRef){this.removeHandlers.push(handRef)},disconnect:function(reason){this._changeConnectStatus(Strophe.Status.DISCONNECTING,reason);Strophe.info("Disconnect was called because: "+reason);if(this.connected){this._disconnectTimeout=this._addSysTimedHandler(3000,this._onDisconnectTimeout.bind(this));this._sendTerminate()}},_changeConnectStatus:function(status,condition){for(var k in Strophe._connectionPlugins){if(Strophe._connectionPlugins.hasOwnProperty(k)){var plugin=this[k];if(plugin.statusChanged){try{plugin.statusChanged(status,condition)}catch(err){Strophe.error(""+k+" plugin caused an exception changing status: "+err)}}}}if(this.connect_callback){try{this.connect_callback(status,condition)}catch(e){Strophe.error("User connection callback caused an exception: "+e)}}},_buildBody:function(){var bodyWrap=$build("body",{rid:this.rid++,xmlns:Strophe.NS.HTTPBIND});if(this.sid!==null){bodyWrap.attrs({sid:this.sid})}return bodyWrap},_removeRequest:function(req){Strophe.debug("removing request");var i;for(i=this._requests.length-1;i>=0;i--){if(req==this._requests[i]){this._requests.splice(i,1)}}req.xhr.onreadystatechange=function(){};this._throttledRequestHandler()},_restartRequest:function(i){var req=this._requests[i];if(req.dead===null){req.dead=new Date()}this._processRequest(i)},_processRequest:function(i){var req=this._requests[i];var reqStatus=-1;try{if(req.xhr.readyState==4){reqStatus=req.xhr.status}}catch(e){Strophe.error("caught an error in _requests["+i+"], reqStatus: "+reqStatus)}if(typeof(reqStatus)=="undefined"){reqStatus=-1}var time_elapsed=req.age();var primaryTimeout=(!isNaN(time_elapsed)&&time_elapsed>Math.floor(Strophe.TIMEOUT*this.wait));var secondaryTimeout=(req.dead!==null&&req.timeDead()>Math.floor(Strophe.SECONDARY_TIMEOUT*this.wait));var requestCompletedWithServerError=(req.xhr.readyState==4&&(reqStatus<1||reqStatus>=500));if(primaryTimeout||secondaryTimeout||requestCompletedWithServerError){if(secondaryTimeout){Strophe.error("Request "+this._requests[i].id+" timed out (secondary), restarting")}req.abort=true;req.xhr.abort();req.xhr.onreadystatechange=function(){};this._requests[i]=new Strophe.Request(req.xmlData,req.origFunc,req.rid,req.sends);req=this._requests[i]}if(req.xhr.readyState===0){Strophe.debug("request id "+req.id+"."+req.sends+" posting");req.date=new Date();try{req.xhr.open("POST",this.service,true)}catch(e2){Strophe.error("XHR open failed.");if(!this.connected){this._changeConnectStatus(Strophe.Status.CONNFAIL,"bad-service")}this.disconnect();return}var sendFunc=function(){req.xhr.send(req.data)};if(req.sends>1){var backoff=Math.pow(req.sends,3)*1000;setTimeout(sendFunc,backoff)}else{sendFunc()}req.sends++;this.xmlOutput(req.xmlData);this.rawOutput(req.data)}else{Strophe.debug("_processRequest: "+(i===0?"first":"second")+" request has readyState of "+req.xhr.readyState)}},_throttledRequestHandler:function(){if(!this._requests){Strophe.debug("_throttledRequestHandler called with undefined requests")}else{Strophe.debug("_throttledRequestHandler called with "+this._requests.length+" requests")}if(!this._requests||this._requests.length===0){return}if(this._requests.length>0){this._processRequest(0)}if(this._requests.length>1&&Math.abs(this._requests[0].rid-this._requests[1].rid)<this.window-1){this._processRequest(1)}},_onRequestStateChange:function(func,req){Strophe.debug("request id "+req.id+"."+req.sends+" state changed to "+req.xhr.readyState);if(req.abort){req.abort=false;return}var reqStatus;if(req.xhr.readyState==4){reqStatus=0;try{reqStatus=req.xhr.status}catch(e){}if(typeof(reqStatus)=="undefined"){reqStatus=0}if(this.disconnecting){if(reqStatus>=400){this._hitError(reqStatus);return}}var reqIs0=(this._requests[0]==req);var reqIs1=(this._requests[1]==req);if((reqStatus>0&&reqStatus<500)||req.sends>5){this._removeRequest(req);Strophe.debug("request id "+req.id+" should now be removed")}if(reqStatus==200){if(reqIs1||(reqIs0&&this._requests.length>0&&this._requests[0].age()>Math.floor(Strophe.SECONDARY_TIMEOUT*this.wait))){this._restartRequest(0)}Strophe.debug("request id "+req.id+"."+req.sends+" got 200");func(req);this.errors=0}else{Strophe.error("request id "+req.id+"."+req.sends+" error "+reqStatus+" happened");if(reqStatus===0||(reqStatus>=400&&reqStatus<600)||reqStatus>=12000){this._hitError(reqStatus);if(reqStatus>=400&&reqStatus<500){this._changeConnectStatus(Strophe.Status.DISCONNECTING,null);this._doDisconnect()}}}if(!((reqStatus>0&&reqStatus<10000)||req.sends>5)){this._throttledRequestHandler()}}},_hitError:function(reqStatus){this.errors++;Strophe.warn("request errored, status: "+reqStatus+", number of errors: "+this.errors);if(this.errors>4){this._onDisconnectTimeout()}},_doDisconnect:function(){Strophe.info("_doDisconnect was called");this.authenticated=false;this.disconnecting=false;this.sid=null;this.streamId=null;this.rid=Math.floor(Math.random()*4294967295);if(this.connected){this._changeConnectStatus(Strophe.Status.DISCONNECTED,null);this.connected=false}this.handlers=[];this.timedHandlers=[];this.removeTimeds=[];this.removeHandlers=[];this.addTimeds=[];this.addHandlers=[]},_dataRecv:function(req){try{var elem=req.getResponse()}catch(e){if(e!="parsererror"){throw e}this.disconnect("strophe-parsererror")}if(elem===null){return}this.xmlInput(elem);this.rawInput(Strophe.serialize(elem));var i,hand;while(this.removeHandlers.length>0){hand=this.removeHandlers.pop();i=this.handlers.indexOf(hand);if(i>=0){this.handlers.splice(i,1)}}while(this.addHandlers.length>0){this.handlers.push(this.addHandlers.pop())}if(this.disconnecting&&this._requests.length===0){this.deleteTimedHandler(this._disconnectTimeout);this._disconnectTimeout=null;this._doDisconnect();return}var typ=elem.getAttribute("type");var cond,conflict;if(typ!==null&&typ=="terminate"){cond=elem.getAttribute("condition");conflict=elem.getElementsByTagName("conflict");if(cond!==null){if(cond=="remote-stream-error"&&conflict.length>0){cond="conflict"}this._changeConnectStatus(Strophe.Status.CONNFAIL,cond)}else{this._changeConnectStatus(Strophe.Status.CONNFAIL,"unknown")}this.disconnect();return}var self=this;Strophe.forEachChild(elem,null,function(child){var i,newList;newList=self.handlers;self.handlers=[];for(i=0;i<newList.length;i++){var hand=newList[i];if(hand.isMatch(child)&&(self.authenticated||!hand.user)){if(hand.run(child)){self.handlers.push(hand)}}else{self.handlers.push(hand)}}})},_sendTerminate:function(){Strophe.info("_sendTerminate was called");var body=this._buildBody().attrs({type:"terminate"});if(this.authenticated){body.c("presence",{xmlns:Strophe.NS.CLIENT,type:"unavailable"})}this.disconnecting=true;var req=new Strophe.Request(body.tree(),this._onRequestStateChange.bind(this).prependArg(this._dataRecv.bind(this)),body.tree().getAttribute("rid"));this._requests.push(req);this._throttledRequestHandler()},_connect_cb:function(req){Strophe.info("_connect_cb was called");this.connected=true;var bodyWrap=req.getResponse();if(!bodyWrap){return}this.xmlInput(bodyWrap);this.rawInput(Strophe.serialize(bodyWrap));var typ=bodyWrap.getAttribute("type");var cond,conflict;if(typ!==null&&typ=="terminate"){cond=bodyWrap.getAttribute("condition");conflict=bodyWrap.getElementsByTagName("conflict");if(cond!==null){if(cond=="remote-stream-error"&&conflict.length>0){cond="conflict"}this._changeConnectStatus(Strophe.Status.CONNFAIL,cond)}else{this._changeConnectStatus(Strophe.Status.CONNFAIL,"unknown")}return}if(!this.sid){this.sid=bodyWrap.getAttribute("sid")}if(!this.stream_id){this.stream_id=bodyWrap.getAttribute("authid")}var wind=bodyWrap.getAttribute("requests");if(wind){this.window=parseInt(wind,10)}var hold=bodyWrap.getAttribute("hold");if(hold){this.hold=parseInt(hold,10)}var wait=bodyWrap.getAttribute("wait");if(wait){this.wait=parseInt(wait,10)}var do_sasl_plain=false;var do_sasl_digest_md5=false;var do_sasl_anonymous=false;var mechanisms=bodyWrap.getElementsByTagName("mechanism");var i,mech,auth_str,hashed_auth_str;if(mechanisms.length>0){for(i=0;i<mechanisms.length;i++){mech=Strophe.getText(mechanisms[i]);if(mech=="DIGEST-MD5"){do_sasl_digest_md5=true}else{if(mech=="PLAIN"){do_sasl_plain=true}else{if(mech=="ANONYMOUS"){do_sasl_anonymous=true}}}}}else{var body=this._buildBody();this._requests.push(new Strophe.Request(body.tree(),this._onRequestStateChange.bind(this).prependArg(this._connect_cb.bind(this)),body.tree().getAttribute("rid")));this._throttledRequestHandler();return}if(Strophe.getNodeFromJid(this.jid)===null&&do_sasl_anonymous){this._changeConnectStatus(Strophe.Status.AUTHENTICATING,null);this._sasl_success_handler=this._addSysHandler(this._sasl_success_cb.bind(this),null,"success",null,null);this._sasl_failure_handler=this._addSysHandler(this._sasl_failure_cb.bind(this),null,"failure",null,null);this.send($build("auth",{xmlns:Strophe.NS.SASL,mechanism:"ANONYMOUS"}).tree())}else{if(Strophe.getNodeFromJid(this.jid)===null){this._changeConnectStatus(Strophe.Status.CONNFAIL,"x-strophe-bad-non-anon-jid");this.disconnect()}else{if(do_sasl_digest_md5){this._changeConnectStatus(Strophe.Status.AUTHENTICATING,null);this._sasl_challenge_handler=this._addSysHandler(this._sasl_challenge1_cb.bind(this),null,"challenge",null,null);this._sasl_failure_handler=this._addSysHandler(this._sasl_failure_cb.bind(this),null,"failure",null,null);this.send($build("auth",{xmlns:Strophe.NS.SASL,mechanism:"DIGEST-MD5"}).tree())}else{if(do_sasl_plain){auth_str=Strophe.getBareJidFromJid(this.jid);auth_str=auth_str+"\u0000";auth_str=auth_str+Strophe.getNodeFromJid(this.jid);auth_str=auth_str+"\u0000";auth_str=auth_str+this.pass;this._changeConnectStatus(Strophe.Status.AUTHENTICATING,null);this._sasl_success_handler=this._addSysHandler(this._sasl_success_cb.bind(this),null,"success",null,null);this._sasl_failure_handler=this._addSysHandler(this._sasl_failure_cb.bind(this),null,"failure",null,null);hashed_auth_str=Base64.encode(auth_str);this.send($build("auth",{xmlns:Strophe.NS.SASL,mechanism:"PLAIN"}).t(hashed_auth_str).tree())}else{this._changeConnectStatus(Strophe.Status.AUTHENTICATING,null);this._addSysHandler(this._auth1_cb.bind(this),null,null,null,"_auth_1");this.send($iq({type:"get",to:this.domain,id:"_auth_1"}).c("query",{xmlns:Strophe.NS.AUTH}).c("username",{}).t(Strophe.getNodeFromJid(this.jid)).tree())}}}}},_sasl_challenge1_cb:function(elem){var attribMatch=/([a-z]+)=("[^"]+"|[^,"]+)(?:,|$)/;var challenge=Base64.decode(Strophe.getText(elem));var cnonce=MD5.hexdigest(Math.random()*1234567890);var realm="";var host=null;var nonce="";var qop="";var matches;this.deleteHandler(this._sasl_failure_handler);while(challenge.match(attribMatch)){matches=challenge.match(attribMatch);challenge=challenge.replace(matches[0],"");matches[2]=matches[2].replace(/^"(.+)"$/,"$1");switch(matches[1]){case"realm":realm=matches[2];break;case"nonce":nonce=matches[2];break;case"qop":qop=matches[2];break;case"host":host=matches[2];break}}var digest_uri="xmpp/"+this.domain;if(host!==null){digest_uri=digest_uri+"/"+host}var A1=MD5.hash(Strophe.getNodeFromJid(this.jid)+":"+realm+":"+this.pass)+":"+nonce+":"+cnonce;var A2="AUTHENTICATE:"+digest_uri;var responseText="";responseText+="username="+this._quote(Strophe.getNodeFromJid(this.jid))+",";responseText+="realm="+this._quote(realm)+",";responseText+="nonce="+this._quote(nonce)+",";responseText+="cnonce="+this._quote(cnonce)+",";responseText+='nc="00000001",';responseText+='qop="auth",';responseText+="digest-uri="+this._quote(digest_uri)+",";responseText+="response="+this._quote(MD5.hexdigest(MD5.hexdigest(A1)+":"+nonce+":00000001:"+cnonce+":auth:"+MD5.hexdigest(A2)))+",";responseText+='charset="utf-8"';this._sasl_challenge_handler=this._addSysHandler(this._sasl_challenge2_cb.bind(this),null,"challenge",null,null);this._sasl_success_handler=this._addSysHandler(this._sasl_success_cb.bind(this),null,"success",null,null);this._sasl_failure_handler=this._addSysHandler(this._sasl_failure_cb.bind(this),null,"failure",null,null);this.send($build("response",{xmlns:Strophe.NS.SASL}).t(Base64.encode(responseText)).tree());return false},_quote:function(str){return'"'+str.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'},_sasl_challenge2_cb:function(elem){this.deleteHandler(this._sasl_success_handler);this.deleteHandler(this._sasl_failure_handler);this._sasl_success_handler=this._addSysHandler(this._sasl_success_cb.bind(this),null,"success",null,null);this._sasl_failure_handler=this._addSysHandler(this._sasl_failure_cb.bind(this),null,"failure",null,null);this.send($build("response",{xmlns:Strophe.NS.SASL}).tree());return false},_auth1_cb:function(elem){var iq=$iq({type:"set",id:"_auth_2"}).c("query",{xmlns:Strophe.NS.AUTH}).c("username",{}).t(Strophe.getNodeFromJid(this.jid)).up().c("password").t(this.pass);if(!Strophe.getResourceFromJid(this.jid)){this.jid=Strophe.getBareJidFromJid(this.jid)+"/strophe"}iq.up().c("resource",{}).t(Strophe.getResourceFromJid(this.jid));this._addSysHandler(this._auth2_cb.bind(this),null,null,null,"_auth_2");this.send(iq.tree());return false},_sasl_success_cb:function(elem){Strophe.info("SASL authentication succeeded.");this.deleteHandler(this._sasl_failure_handler);this._sasl_failure_handler=null;if(this._sasl_challenge_handler){this.deleteHandler(this._sasl_challenge_handler);this._sasl_challenge_handler=null}this._addSysHandler(this._sasl_auth1_cb.bind(this),null,"stream:features",null,null);this._sendRestart();return false},_sasl_auth1_cb:function(elem){var i,child;for(i=0;i<elem.childNodes.length;i++){child=elem.childNodes[i];if(child.nodeName=="bind"){this.do_bind=true}if(child.nodeName=="session"){this.do_session=true}}if(!this.do_bind){this._changeConnectStatus(Strophe.Status.AUTHFAIL,null);return false}else{this._addSysHandler(this._sasl_bind_cb.bind(this),null,null,null,"_bind_auth_2");var resource=Strophe.getResourceFromJid(this.jid);if(resource){this.send($iq({type:"set",id:"_bind_auth_2"}).c("bind",{xmlns:Strophe.NS.BIND}).c("resource",{}).t(resource).tree())}else{this.send($iq({type:"set",id:"_bind_auth_2"}).c("bind",{xmlns:Strophe.NS.BIND}).tree())}}return false},_sasl_bind_cb:function(elem){if(elem.getAttribute("type")=="error"){Strophe.info("SASL binding failed.");this._changeConnectStatus(Strophe.Status.AUTHFAIL,null);return false}var bind=elem.getElementsByTagName("bind");var jidNode;if(bind.length>0){jidNode=bind[0].getElementsByTagName("jid");if(jidNode.length>0){this.jid=Strophe.getText(jidNode[0]);if(this.do_session){this._addSysHandler(this._sasl_session_cb.bind(this),null,null,null,"_session_auth_2");this.send($iq({type:"set",id:"_session_auth_2"}).c("session",{xmlns:Strophe.NS.SESSION}).tree())}else{this.authenticated=true;this._changeConnectStatus(Strophe.Status.CONNECTED,null)}}}else{Strophe.info("SASL binding failed.");this._changeConnectStatus(Strophe.Status.AUTHFAIL,null);return false}},_sasl_session_cb:function(elem){if(elem.getAttribute("type")=="result"){this.authenticated=true;this._changeConnectStatus(Strophe.Status.CONNECTED,null)}else{if(elem.getAttribute("type")=="error"){Strophe.info("Session creation failed.");this._changeConnectStatus(Strophe.Status.AUTHFAIL,null);return false}}return false},_sasl_failure_cb:function(elem){if(this._sasl_success_handler){this.deleteHandler(this._sasl_success_handler);this._sasl_success_handler=null}if(this._sasl_challenge_handler){this.deleteHandler(this._sasl_challenge_handler);this._sasl_challenge_handler=null}this._changeConnectStatus(Strophe.Status.AUTHFAIL,null);return false},_auth2_cb:function(elem){if(elem.getAttribute("type")=="result"){this.authenticated=true;this._changeConnectStatus(Strophe.Status.CONNECTED,null)}else{if(elem.getAttribute("type")=="error"){this._changeConnectStatus(Strophe.Status.AUTHFAIL,null);this.disconnect()}}return false},_addSysTimedHandler:function(period,handler){var thand=new Strophe.TimedHandler(period,handler);thand.user=false;this.addTimeds.push(thand);return thand},_addSysHandler:function(handler,ns,name,type,id){var hand=new Strophe.Handler(handler,ns,name,type,id);hand.user=false;this.addHandlers.push(hand);return hand},_onDisconnectTimeout:function(){Strophe.info("_onDisconnectTimeout was called");var req;while(this._requests.length>0){req=this._requests.pop();req.abort=true;req.xhr.abort();req.xhr.onreadystatechange=function(){}}this._doDisconnect();return false},_onIdle:function(){var i,thand,since,newList;while(this.removeTimeds.length>0){thand=this.removeTimeds.pop();i=this.timedHandlers.indexOf(thand);if(i>=0){this.timedHandlers.splice(i,1)}}while(this.addTimeds.length>0){this.timedHandlers.push(this.addTimeds.pop())}var now=new Date().getTime();newList=[];for(i=0;i<this.timedHandlers.length;i++){thand=this.timedHandlers[i];if(this.authenticated||!thand.user){since=thand.lastCalled+thand.period;if(since-now<=0){if(thand.run()){newList.push(thand)}}else{newList.push(thand)}}}this.timedHandlers=newList;var body,time_elapsed;if(this.authenticated&&this._requests.length===0&&this._data.length===0&&!this.disconnecting){Strophe.info("no requests during idle cycle, sending blank request");this._data.push(null)}if(this._requests.length<2&&this._data.length>0&&!this.paused){body=this._buildBody();for(i=0;i<this._data.length;i++){if(this._data[i]!==null){if(this._data[i]==="restart"){body.attrs({to:this.domain,"xml:lang":"en","xmpp:restart":"true","xmlns:xmpp":Strophe.NS.BOSH})}else{body.cnode(this._data[i]).up()}}}delete this._data;this._data=[];this._requests.push(new Strophe.Request(body.tree(),this._onRequestStateChange.bind(this).prependArg(this._dataRecv.bind(this)),body.tree().getAttribute("rid")));this._processRequest(this._requests.length-1)}if(this._requests.length>0){time_elapsed=this._requests[0].age();if(this._requests[0].dead!==null){if(this._requests[0].timeDead()>Math.floor(Strophe.SECONDARY_TIMEOUT*this.wait)){this._throttledRequestHandler()}}if(time_elapsed>Math.floor(Strophe.TIMEOUT*this.wait)){Strophe.warn("Request "+this._requests[0].id+" timed out, over "+Math.floor(Strophe.TIMEOUT*this.wait)+" seconds since last activity");this._throttledRequestHandler()}}clearTimeout(this._idleTimeout);this._idleTimeout=setTimeout(this._onIdle.bind(this),100)}};if(callback){callback(Strophe,$build,$msg,$iq,$pres)}})(function(){window.Strophe=arguments[0];window.$build=arguments[1];window.$msg=arguments[2];window.$iq=arguments[3];window.$pres=arguments[4]});
2 0 \ No newline at end of file