code
stringlengths
1
2.08M
language
stringclasses
1 value
$C.Extend(['Archetype.component.graphicalComponent'], { name : "shuttle5.components.container", setup: { dependencies: { components: { header: "shuttle5.components.header", chatzone: "shuttle5.components.chatzone", sidebar: "shuttle5.components...
JavaScript
/* * To change this template, choose Tools | Templates * and open the template in the editor. */
JavaScript
$C.Extend(['Archetype.component.graphicalComponent'], { name : "shuttle5.components.sidebar", setup: { dependencies: { components: { }, html: { main: "shuttle5.templates.sidebarView" }, lib: [], css: [] } ...
JavaScript
$C.Extend(['Archetype.component.graphicalComponent'], { name : "shuttle5.components.roster", setup: { dependencies: { components: { }, html: { main: "shuttle5.templates.rosterView" }, lib: ["shuttle5.lib.js.strophejs-master.plug...
JavaScript
$C.Extend(['Archetype.component.graphicalComponent'], { name : "shuttle5.components.footer", setup: { dependencies: { components: { }, html: { main: "shuttle5.templates.footerView" }, lib: [], css: [] } ...
JavaScript
/* * To change this template, choose Tools | Templates * and open the template in the editor. */
JavaScript
$C.Extend(['Archetype.component.graphicalComponent'], { name : "shuttle5.components.chatzone", setup: { dependencies: { components: { }, html: { main: "shuttle5.templates.chatzoneView" }, lib: ["shuttle5.lib.js.date"], ...
JavaScript
/* * To change this template, choose Tools | Templates * and open the template in the editor. */
JavaScript
Archetype.useArchetypeClass = true; Archetype.classOverride = true; var $break = { }; var $identity = function(x) {return x;}; Class = {}; Object.extend = jQuery.extend; Object.clone = function(object) { return Object.extend({}, object); }; Object.isArray = function(object) { return object != nu...
JavaScript
$E = function(/*DOM Element*/ element) {}; $A = function(/*Array*/ array) {}; $H = function(/*HashMap*/ hash) {}; $S = function(/*String*/ string) {}; /** Map abstract engine functions */ Archetype.engine = { name: Archetype.engine, fire: function(/*String*/ type, /*Object*/ data) {}, observe: funct...
JavaScript
/** * * This part of the code come from the script.aculo.us wiki: * http://wiki.script.aculo.us/scriptaculous/show/ExtendClassFurther * This function is loaded after prototype to overload Class.create */ /** * @namespace Archetype.Class * @param {Object} proto */ Archetype.Class={ // Creators ...
JavaScript
/** * Defines an abstract logger that does nothing but no error when called :) * @namespace Archetype.Loggers.AbstractLogger * @namespace Archetype.Loggers.NullLogger * @author temsa */ Archetype.Loggers.AbstractLogger = { initialize: _, log: _, debug: _, warn: _, error: _, fatal: _, /*...
JavaScript
/** * @author swiip_mat */ /** * This logger is full of breaks. * Can be usefull for step by step or testing on very poor client. * @namespace Archetype.Loggers.AlertLogger */ Archetype.Loggers.AlertLogger = { initialize: function() {}, log: function() { var content=$A(arguments).toArray().join(" "); aler...
JavaScript
/** * Defines an logger that appends the log at the end of the body of the page.<br> * quite messy, not well coded (inline style :'( ), but pretty efficient to debug notably on IE * @namespace Archetype.Loggers.PiDebuggerLogger * @author swiip_mat */ Archetype.Loggers.PiDebuggerLogger = { initialize: _, in...
JavaScript
/** * @author temsa */ (function() { var hasJustConsoleLog = typeof console != "undefined" && console && console.log && !$exist(console.debug); if (typeof console == "undefined") { console = { log :_, debug :_, warn :_, error :_, fatal :_ ...
JavaScript
/** * NitobibugLogger * @see http://www.nitobi.com/ * @namespace Archetype.Loggers.NitobibugLogger * @author swiip_mat */ Archetype.Loggers.NitobibugLogger = { initialize : function(){ nitobi.Debug.init(); }, log: function() { nitobi.Debug.log($A(arguments).toArray(), "lightgrey"); ...
JavaScript
/** * Defines a null logger for production environment.<br> * No log will be displayed. * @namespace Archetype.Loggers.NullLogger * @author temsa */ Archetype.Loggers.NullLogger = Archetype.Loggers.AbstractLogger;
JavaScript
/** * Defines an logger that appends the log at the end of the body of the page.<br> * quite messy, not well coded (inline style :'( ), but pretty efficient to debug notably on IE * @namespace Archetype.Loggers.BodyLogger * @author swiip_mat */ Archetype.Loggers.BodyLogger = { initialize: function() {}, log: fu...
JavaScript
/** * Event Mixins * (c) 2006 Seth Dillingham <seth.dillingham@gmail.com> * * This software is hereby released into the public domain. Do with it as * you please, but with the understanding that it is provided "AS IS" and * without any warranty of any kind. * * (But I'd love to be told about where...
JavaScript
/** * Event Tracer (singleton class) * (c) 2006 Seth Dillingham <seth.dillingham@gmail.com> * * This software is hereby released into the public domain. Do with it as * you please, but with the understanding that it is provided "AS IS" and * without any warranty of any kind. * * (But I'd love to b...
JavaScript
//Initialize events if(Archetype.useEvents) { var span = document.createElement('span'); span.id = "ArchetypeEventTechnicalLinksContainer"; $(span).setStyle({display: "none"}); document.body.insertBefore(span, document.body.firstChild); Object.extend(Archetype, Event.Publisher); Object.extend(Archet...
JavaScript
/** * @static Archetype.Definitions.Joiner * Joiner is a way to wait for several Asynchronous events and then send a Callback */ $N("Archetype.Definitions.Joiner",{ /** * Creates a new Joiner * @param {Array of String} keys to identify * @param {Function} callback * @param {Boolean...
JavaScript
/** * @constructor Archetype.Tools.URL */ $N("Archetype.Tools.URL", Archetype.Class.create({ initialize: function (_urlString) { return this.parse(_urlString); }, parse: function(_urlString) { this.urlString = _urlString || window.location.href; var uriArray = $A(this.urlString.m...
JavaScript
$N("Archetype.methodBuilders",{}); /** * @class MethodManager * * Manage Method Builders to apply to a Archetype.Component Definition */ MethodManager = Archetype.Class.create( /** @scope MethodManager.prototype */ { /** * Set up a Method Manager */ initialize: function() { if(typeof Arch...
JavaScript
/** * @author temsa * Describes the Standard Component Interface * @class Archetype.component.graphicalComponent * @name Archetype.component.graphicalComponent * @extends Archetype.component.abstractComponent */ Archetype.Component.create( /** * @scope Archetype.component.graphicalComponent.prototype ...
JavaScript
//set useful namespaces $N("Archetype.Components",$H()); /** * @class Archetype.Component * Class for loading components */ $C = Archetype.Component = Archetype.Class.singleton( /** * @scope Archetype.Component.prototype */ { /** * Setup Component facilities constructor */ initial...
JavaScript
/** * @namespace Archetype.methodBuilders.eventListeners * Automatic event Listener for your component. Just add a "on" prefix to a method for it to * automatically listen for the event named after this prefix. * * The listener will get the event in first parameter, and can get the data posted by the event * with...
JavaScript
/** * @namespace Archetype.methodBuilders.logger * Add a log4J like logger to the component */ $N("Archetype.methodBuilders.logger", { regexp:"^.*$", /** * Acts on the Archetype.Component definition method methodName (that matches "this.regexp") * * @param {Archetype.ComponentDefinition} component...
JavaScript
/** * @namespace Archetype.methodBuilders.observe * Add a specialized "Event.observe" method wish store listening information * in order to be disconnected when the component is destroyed. */ $N("Archetype.methodBuilders.observe", { regexp:"^observe$", /** * Acts on the Archetype.Component definition method me...
JavaScript
/** * Basic method Builder used to differentiate public & private variable based on their name. * All methods are bound to their object (this will always be the objects "this", even in a event listener) * * @namespace Archetype.methodBuilders.public_private */ $N("Archetype.methodBuilders.public_private", { regex...
JavaScript
/** * @namespace Archetype.methodBuilders.eventSenders * Automatic event Sender for your component.<br> * It's a convenient way to send an event with arguments without using the event API.<br> * * The original method isn't called so Prototype.emptyfunction, it's alias _ , or any empty function * should do the tri...
JavaScript
$N("Archetype.ComponentDefinitions",$H()); /** * @author temsa * @name Archetype.component.abstractComponent * @class Archetype.component.abstractComponent * Describes the Standard Component Interface */ Archetype.ComponentDefinitions.set($U("Archetype.component.abstractComponent"), /** @scope Archetype.component...
JavaScript
Archetype.Templates.EjsTemplate = Archetype.Class.create({ initialize: function(template) { this.templateObject = new EJS({text: template}); }, evaluate: function(object) { return this.templateObject.render(object); } });
JavaScript
Archetype.Templates.TrimpathTemplate = Archetype.Class.create({ initialize: function(template) { this.templateObject = TrimPath.parseTemplate(template); }, evaluate: function(object) { return this.templateObject.process(object); } });
JavaScript
Archetype.Templates.TalTemplate = Archetype.Class.create({ initialize: function(template) { this.container=document.createElement("div"); this.container.style.display='none'; document.body.appendChild(this.container); this.container.innerHTML=template; }, evaluate: fun...
JavaScript
Archetype.Templates.NullTemplate = Archetype.Class.create({ initialize: function(template) { this.template = template; }, evaluate: function(object) { return this.template; } });
JavaScript
Archetype.Templates = { AbstractTemplate : Archetype.Class.create({ initialize: _, evaluate: _ }) }
JavaScript
/* json.js 2007-08-19 Public Domain This file adds these methods to JavaScript: array.toJSONString(whitelist) boolean.toJSONString() date.toJSONString() number.toJSONString() object.toJSONString(whitelist) string.toJSONString() These methods...
JavaScript
/* Copyright (c) 2007 Brian Dillard and Brad Neuberg: Brian Dillard | Project Lead | bdillard@pathf.com | http://blogs.pathf.com/agileajax/ Brad Neuberg | Original Project Creator | http://codinginparadise.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associat...
JavaScript
/** The JSON class is copyright 2005 JSON.org. */ Array.prototype.______array = '______array'; var JSON = { org: 'http://www.JSON.org', copyright: '(c)2005 JSON.org', license: 'http://www.crockford.com/JSON/license.html', stringify: function (arg) { var c, i, l, s = '', v; switch (typ...
JavaScript
/** * jQuery.Collection * Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com * Licensed under GPL license (http://www.opensource.org/licenses/gpl-license.php). * Date: 1/28/2008 * * @projectDescription Extensible and inheritable jQuery-like collections * @author Ariel Flesler * @version 1.0.3 ...
JavaScript
(function ( $ ) { var methods = { // $([1,2,3]).collect(function() { return this * this }) // => [1, 4, 9] collect: function(enumerable, callback) { var result = []; $.each(enumerable, function(index) { result.push(callback.call(this, index)); }); return result; }, // ...
JavaScript
(function(){ /* * jQuery 1.2.6 - New Wave Javascript * * Copyright (c) 2008 John Resig (jquery.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * $Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) $ * $Rev: 5685 $ */ // Map over jQuery in case of overwrite var _jQu...
JavaScript
/** * pi.debugger <http://pi-js.googlecode.com> * v1.0a * 27.03.2008, 5:44 AM ~ 1.04.2007 21:32 * Azer Koçulu <http://azer.kodfabrik.com> */ if(pi.env.ie){ function XPathResult(){}; } pi.dbgr = { env:{ "init":false, "ctmp":[], "dIndex":0, "dNames":["console","html","css","dom","about"], "consoleType":1, "multi...
JavaScript
(function(scope){ /* # PI JAVASCRIPT LIBRARY (FULL&UNCOMPRESSED VERSION) # # VERSION HISTORY: # -> V1 Alpha 21.03.2008 01:18 # -> V0.1 Alpha-Comet Version 11.03.2008 21:47 # # DEVELOPMENT # Azer Koçulu <http://azer.kodfabrik.com> # http://pi-js.googlecode.com */ scope.pi = Object(3.14159265358979...
JavaScript
/** * TrimPath Template. Release 1.0.38. * Copyright (C) 2004, 2005 Metaha. * * TrimPath Template is licensed under the GNU General Public License * and the Apache License, Version 2.0, as follows: * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General...
JavaScript
// Singleton class TooltipWindow // This class works with special className. The tooltip content could be in your HTML page as an hidden element or // can be retreive by an AJAX call. // // To work, You just need to set two class name on elements that should show tooltips // - One to say to TooltipManager that this ele...
JavaScript
// Copyright (c) 2006 Sébastien Gruhier (http://xilinus.com, http://itseb.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the ...
JavaScript
var commandHistory; var historyIndex; function showExtendedDebug() { if (debugWindow != null) { hideDebug(); } if (debugWindow == null) { commandHistory = new Array(); historyIndex = 0; debugWindow = new Window('debug_window', {className: 'dialog',width:250, height:100, right:4, minWidth:250, bott...
JavaScript
var debugWindow = null; function debug(text, reverse) { if (debugWindow == null) return; time = "-"; //new Date(); if (reverse) { $('debug').innerHTML = time + " " + text + "<br>"+ $('debug').innerHTML; debugWindow.getContent().scrollTop=0; } else { $('debug').innerHTML += time + " " + text + "<br>"; ...
JavaScript
// Copyright (c) 2006 Sébastien Gruhier (http://xilinus.com, http://itseb.com) // YOU MUST INCLUDE window.js BEFORE // // Object to store hide/show windows status in a cookie // Just add at the end of your HTML file this javascript line: WindowStore.init() WindowStore = { doSetCookie: false, cookieName: "__window_...
JavaScript
Effect.ResizeWindow = Class.create(); Object.extend(Object.extend(Effect.ResizeWindow.prototype, Effect.Base.prototype), { initialize: function(win, top, left, width, height) { this.window = win; this.window.resizing = true; var size = win.getSize(); this.initWidth = parseFloat(size.width); ...
JavaScript
/* * Copyright Joachim Zobel * * You can consider TAL MIT style licensed. Do with it as you like, * but don't blame me for anything evil that TAL code does and * do not remove my name. * */ TAL = { parse: function TALparse(container, params) { return TAL.process(container, params, co...
JavaScript
// script.aculo.us unittest.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008 // Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // (c) 2005-2007 Jon Tirsen (http://www.tirsen.com) // (c) 2005-2007 Michael Schuerig (http://www.schuerig.de/michael/) // // script.aculo.us i...
JavaScript
// script.aculo.us slider.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008 // Copyright (c) 2005-2007 Marty Haught, Thomas Fuchs // // script.aculo.us is freely distributable under the terms of an MIT-style license. // For details, see the script.aculo.us web site: http://script.aculo.us/ if (!Control) var Control = { }; ...
JavaScript
// script.aculo.us sound.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008 // Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // Based on code created by Jules Gravinese (http://www.webveteran.com/) // // script.aculo.us is freely distributable under the terms of an MIT-style license. // ...
JavaScript
// script.aculo.us scriptaculous.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008 // Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software")...
JavaScript
// script.aculo.us builder.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008 // Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // script.aculo.us is freely distributable under the terms of an MIT-style license. // For details, see the script.aculo.us web site: http://script.aculo.us/ va...
JavaScript
// package system gunk. try{ dojo.provide("doh.runner"); }catch(e){ if(!this["doh"]){ doh = {}; } } // // Utility Functions and Classes // doh.selfTest = false; doh.global = this; doh.hitch = function(/*Object*/thisObject, /*Function|String*/method /*, ...*/){ var args = []; for(var x=2; x<arguments.length;...
JavaScript
if(this["dojo"]){ dojo.provide("doh._rhinoRunner"); } doh.debug = print; // Override the doh._report method to make it quit with an // appropriate exit code in case of test failures. (function(){ var oldReport = doh._report; doh._report = function(){ oldReport.apply(doh, arguments); if(this._failureCount > 0 ...
JavaScript
if(window["dojo"]){ dojo.provide("doh._browserRunner"); } // FIXME: need to add prompting for monkey-do testing // FIXME: need to implement progress bar // FIXME: need to implement errors in progress bar (function(){ if(window.parent == window){ // we're the top-dog window. // borrowed from Dojo, etc. var by...
JavaScript
if(window["dojo"]){ dojo.provide("doh.robot"); dojo.experimental("doh.robot"); dojo.require("doh.runner"); }else if(!doh["robot"]){ doh.robot={}; } if(!doh.robot["_robotLoaded"]){ (function(){ // loading state var _robot = null; var isSecure = (function(){ var key = Math.random(); return function(fcn){ ...
JavaScript
/*-------------------------------------------------------------------------- * EJS - Embedded JavaScript, version 0.1.0 * Copyright (c) 2007 Edward Benson * http://www.edwardbenson.com/projects/ejs * ------------------------------------------------------------------------ * * EJS is freely distributable unde...
JavaScript
// // Copyright (c) 2008 Nitobi Software Inc (alexei.white@nitobi.com) // http://www.nitobi.com // // For questions or suggestions email Alexei White directly. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software...
JavaScript
/** * Test jQueryEngine * @author Francois de Metz */ doh.registerGroup("tests.Engine",[ function testToQueryParamsWithOneParam() { var test = "archetype=rocks".toQueryParams(); doh.assertEqual("rocks", test.archetype); }, function testToQueryParamsWithTwoParam() { var test = "ar...
JavaScript
window.NeededNeedsSimpleDependencie=true;
JavaScript
Logger.log("testFile.js is here");
JavaScript
window.NeedsSimpleDependencie=true;
JavaScript
/** * @author temsa */ doh.registerGroup("tests.require",[ function testAsynchronousRequireWithSimpleUrlStoringForHTML() { var d = new doh.Deferred(); var storage={}; storage[Archetype.path + "Archetype/unitTest/data/helloWorld.html"]=null; Archetype.require("Archetype/unitTest...
JavaScript
/** * @author swiip * Describes the First Component */ $C.create({ name:"Archetype.unitTest.components.testComponent", /** * Set up the Component dependencies * The component won't launch main() unless * every dependencies in the setup are available */ setup: { dependencies: { compon...
JavaScript
/** * @author swiip * Describes the First Component */ $C.create({ name:"Archetype.unitTest.components.testComponentCallback", /** * Set up the Component dependencies * The component won't launch main() unless * every dependencies in the setup are available */ setup: { dependencies: { ...
JavaScript
/** * @author temsa */ doh.registerGroup("tests.components",[ function testRequireComponentWithCallback() { var d = new doh.Deferred(); var url = $U("Archetype.unitTest.components.testComponent"); var callbackParameter=null; var checkCondition = function() { doh.as...
JavaScript
/** * @fileoverview Test Archetype.addJs */ (function() { var scripts = []; function setup () { scripts = []; Archetype.scriptElement = { parentNode : { appendChild : function(script){ scripts.push(script); } } ...
JavaScript
/** * Test jQueryEngine * @author Francois de Metz */ doh.registerGroup("tests.Logger",[ function testRetrieveParameters() { function log() { var args = Archetype.Loggers.AbstractLogger._getArgs(); doh.assertEqual(4, args.length); doh.assertEqual("[myFunction]", args[...
JavaScript
/** * Default JavaScript Framework engine for the whole application * * Existing choices : * - prototype (Prototype 1.6) * - jQuery (jQuery 1.3) */ Archetype.engine = "jQuery"; /** * Default logger for the whole application * * Existing choices : * - alert : use basic JavaScript alert function, beware this i...
JavaScript
// This code was written by Tyler Akins and has been placed in the // public domain. It would be nice if you left this header intact. // Base64 code from Tyler Akins -- http://rumkin.com var Base64 = (function () { var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; var obj = { ...
JavaScript
Strophe.Test = { BOSH_URL: "/xmpp-httpbind", XMPP_DOMAIN: 'localhost', PUBSUB_COMPONENT: "pubsub.localhost", _node_name: "", //node name created in connectCallback function connection: null, //connection object created in run function run: function() { $(document).ready(function(){ ...
JavaScript
/* * QUnit - jQuery unit testrunner * * http://docs.jquery.com/QUnit * * Copyright (c) 2008 John Resig, Jörn Zaefferer * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * $Id$ */ (function($) { // Tests for equality any JavaScript type and structure without unexpected ...
JavaScript
Strophe.Test = { BOSH_URL: "/xmpp-httpbind", XMPP_DOMAIN: 'speeqe.com', room_name: 'speeqers@chat.speeqe.com', connection: null, //connection object created in run function run: function() { $(document).ready(function(){ //Connect strophe, uses localhost to test Strophe.Test.connec...
JavaScript
$(document).ready(function () { module("JIDs"); test("Normal JID", function () { var jid = "darcy@pemberley.lit/library"; equals(Strophe.getNodeFromJid(jid), "darcy", "Node should be 'darcy'"); equals(Strophe.getDomainFromJid(jid), "pemberley.lit", "Domain ...
JavaScript
var BOSH_SERVICE = 'http://localhost:5280/bosh'; var connection = null; var browser = null; var show_log = true; function log(msg) { $('#log').append('<div></div>').append(document.createTextNode(msg)); } function rawInput(data) { log('RECV: ' + data); } function rawOutput(data) { log('SENT...
JavaScript
var NS_DISCO_INFO = 'http://jabber.org/protocol/disco#info'; var NS_DISCO_ITEM = 'http://jabber.org/protocol/disco#items'; // Disco stuff Disco = function () { // Class that does nothing }; Disco.prototype = { showBrowser: function() { // Browser Display var disco = $('#disco'); var jid = $('#jid'); ...
JavaScript
// This code was written by Tyler Akins and has been placed in the // public domain. It would be nice if you left this header intact. // Base64 code from Tyler Akins -- http://rumkin.com var Base64 = (function () { var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; var obj = { ...
JavaScript
/* This program is distributed under the terms of the MIT license. Please see the LICENSE file for details. Copyright 2006-2008, OGG, LLC */ /* jslint configuration: */ /*global document, window, setTimeout, clearTimeout, console, XMLHttpRequest, ActiveXObject, Base64, MD5, Strophe, $build, $m...
JavaScript
/* * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message * Digest Algorithm, as defined in RFC 1321. * Version 2.1 Copyright (C) Paul Johnston 1999 - 2002. * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * Distributed under the BSD License * See http://pajhome.org.uk/crypt/md5 f...
JavaScript
/* Copyright 2008, Stanziq Inc. */ Strophe.addConnectionPlugin('pubsub', { /* Extend connection object to have plugin name 'pubsub'. */ _connection: null, //The plugin must have the init function. init: function(conn) { this._connection = conn; /* Function used to setup plugin. */...
JavaScript
/* flXHR plugin ** ** This plugin implements cross-domain XmlHttpRequests via an invisible ** Flash plugin. ** ** In order for this to work, the BOSH service *must* serve a ** crossdomain.xml file that allows the client access. ** ** flXHR.js should be loaded before this plugin. */ Strophe.addConnectionPlugin('flxhr',...
JavaScript
/* Copyright 2010, Drakontas LLC Ilya Braude ilya@drakontas.com */ Strophe.addConnectionPlugin('roster', { /* Extend connection object to have plugin name 'roster'. */ _conn: null, //The plugin must have the init function. init: function(conn) { this._conn = conn; }, /**...
JavaScript
/* Plugin to implement the MUC extension. http://xmpp.org/extensions/xep-0045.html */ /* jslint configuration: */ /* global document, window, setTimeout, clearTimeout, console, XMLHttpRequest, ActiveXObject, Base64, MD5, Strophe, $build, $msg, $iq, $pres */ Strophe.addConnectionPlugin('muc', { _connec...
JavaScript
var BOSH_SERVICE = '/xmpp-httpbind' var connection = null; function log(msg) { $('#log').append('<div></div>').append(document.createTextNode(msg)); } function rawInput(data) { log('RECV: ' + data); } function rawOutput(data) { log('SENT: ' + data); } function onConnect(status) { if (status == Stro...
JavaScript
// The BOSH_SERVICE here doesn't need to be on the same domain/port, but // it must have a /crossdomain.xml policy file that allows access from // wherever crossdomain.html lives. // // Most BOSH connection managers can serve static html files, so you should // be able to configure them to serve a /crossdomain.xml file...
JavaScript
var BOSH_SERVICE = '/http-bind'; var connection = null; function log(msg) { $('#log').append('<div></div>').append(document.createTextNode(msg)); } function onConnect(status) { if (status == Strophe.Status.CONNECTING) { log('Strophe is connecting.'); } else if (status == Strophe.Status.CONNFAIL) { log(...
JavaScript
// http-pre-bind example // This example works with mod_http_pre_bind found here: // http://github.com/thepug/Mod-Http-Pre-Bind // // It expects both /xmpp-httpbind to be proxied and /http-pre-bind // // If you want to test this out without setting it up, you can use Collecta's // at http://www.collecta.com/xmpp-httpb...
JavaScript
/** * @overview This library is the core of Archetype Javascript Framework * @name ${project.name} * @author Temsa (Florian TRAVERSE) & Swiip (Matthieu LUX) * @version ${project.version} * @license * # Copyright (c) 2007-2008 Florian TRAVERSE and Matthieu LUX<br> * #<br> * # Permission is hereby granted, free o...
JavaScript
/** * @author swiip */ $C.create(["Archetype.component.graphicalComponent"], { setup: { behaviors: { "p.class1": { click: function() { Logger.debug("click on 'p .class1' in view1"); } } } }, initialize: function(anchor) { Logger.debug("Inner component loaded !!", arg...
JavaScript
/** * @author swiip */ $C.create(["Archetype.component.graphicalStateComponent"], { setup: { views: ["first", "second"], behaviors: { first: { "li.class1": { click: function() { Logger.debug("click on 'li .class1' in view1"); this.changeState("second"); }, ...
JavaScript
/** * @author swiip */ $C.create(["Archetype.component.graphicalComponent"], { setup: { dependencies: { components: { inner: "@Lazy NewComponents.components.innerComponent" } }, behaviors: { "li.class1": { click: function() { Logger.debug("click on 'li .class1' in vie...
JavaScript
/** * @author swiip */ $C.create(["Archetype.component.historyComponent"], { setup: { dependencies: { components: { inner: "@Lazy NewComponents.components.innerComponent" } }, behaviors: { "li.class1": { click: function() { Logger.debug("click on 'li .class1' in view...
JavaScript
Archetype.i18n = {} Archetype.i18n.toto = "titi";
JavaScript
Archetype.i18n = {} Archetype.i18n.toto = "titi";
JavaScript