Shadowfiend / Strophe.j
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Fri Jul 31 13:50:52 -0700 2009 | |
| |
Info.plist | Fri Aug 14 12:40:44 -0700 2009 | |
| |
README | Fri Jul 31 13:50:52 -0700 2009 | |
| |
README.rdoc | Fri Aug 14 12:45:42 -0700 2009 | |
| |
SRJID.j | Wed Aug 05 21:42:05 -0700 2009 | |
| |
SRJabberConnection.j | Fri Aug 14 12:40:15 -0700 2009 | |
| |
SRMessage.j | Fri Aug 07 15:04:07 -0700 2009 | |
| |
SRMyUser.j | Fri Aug 07 15:04:07 -0700 2009 | |
| |
SRObject.j | Wed Aug 05 21:42:05 -0700 2009 | |
| |
SRRoom.j | Fri Aug 07 15:04:07 -0700 2009 | |
| |
SRRoomOccupant.j | Wed Aug 05 21:42:05 -0700 2009 | |
| |
SRUser.j | Fri Aug 07 15:04:07 -0700 2009 | |
| |
b64.js | Fri Jul 31 13:50:52 -0700 2009 | |
| |
jquery-1.3.2.min.js | Tue Aug 04 22:08:33 -0700 2009 | |
| |
md5.js | Fri Jul 31 13:50:52 -0700 2009 | |
| |
sha1.js | Fri Jul 31 13:50:52 -0700 2009 | |
| |
strophe.js | Fri Jul 31 13:50:52 -0700 2009 |
README.rdoc
Strophe.j
Strophe.j is an Objective-J wrapper around the strophe.js library. It mostly offers some decoration around the more class-like aspects of strophe.js while letting strophe.js do its thing for message assembly (since the strophe message assembly syntax is wonderfully concise).
Usage
Due to some issues with importing via Objective-J’s @import directive, currently you have to explicitly include the relevant scripts in your HTML page.
Add this wherever your scripts are included after putting Strophe in your Frameworks directory:
<script src = "Frameworks/Strophe/sha1.js" type = "text/javascript"></script>
<script src = "Frameworks/Strophe/md5.js" type = "text/javascript"></script>
<script src = "Frameworks/Strophe/b64.js" type = "text/javascript"></script>
<script src = "Frameworks/Strophe/jquery-1.3.2.min.js" type = "text/javascript"></script>
<script src = "Frameworks/Strophe/strophe.js" type = "text/javascript"></script>
Then, you can @import any Strophe files regularly (e.g., @import <Strophe/SRJabberConnection.j>) and go from there.
