This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mongoose = require("mongoose"); | |
var config = require("./config"); | |
// Assemble our connection details from config.js | |
var loginCredentials = config.username + ':' + config.password; | |
var dbUrl = config.databaseUrl; | |
var dbName = config.databaseName; | |
// Connect to the MongoLab database | |
mongoose.connect("mongodb://" + loginCredentials + "@" + dbUrl + "/" + dbName); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//First you create your new page element to later be appended to the tab element | |
var amlPage = new apf.page({ | |
id : "chatUser" + chatUserID, | |
caption : chatUserName, | |
name : "groupchat", | |
closebtn : "true", | |
childNodes : [ | |
new apf.toolbar({ | |
height : "6" |
NewerOlder