Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* Updated README

* Cleaned root
  • Loading branch information...
commit 9dd153171de8853ffa324c863ff303dad9786eff 1 parent f6565d3
Ruben Daniels javruben authored fjakobs committed
4 README
View
@@ -16,7 +16,7 @@ this distribution for details.
Size of Runtime
===============
- Javeline Platform comes in two flavors. Debug and Release. These contain all
+ Ajax.org Platform comes in two flavors. Debug and Release. These contain all
that is APF. For a project you only need a subset of APF. Usually resulting in
a zipped download of 100KB or less. The up and coming packager application will
help packaging APF for your project.
@@ -38,4 +38,4 @@ help packaging APF for your project.
References:
===========
- [1] Ajax.org Platform; http://www.javeline.com or http://www.ajax.org
+ [1] Ajax.org Platform; http://www.ajax.org
103 amlnodes.html
View
@@ -1,103 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns:a="http://ajax.org/2005/aml"
- xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <script src="apf.js"></script>
- <style>
- html{overflow:hidden}
- </style>
- <title>APF 3.0 ActionTracker</title>
- </head>
- <body>
- <a:skin src="../../../jav_uirecorder/trunk/htmlfiles/skins.xml" />
-
- <a:appsettings debug="true" />
-<a:label for="txtAddress">Address</a:label>
-<a:textbox id="txtAddress" />
-
- <a:datagrid>
- <a:each match="[watch]">
- <a:column
- caption = "Company"
- value = "[@company]"
- width = "50%">
- </a:column>
- <a:column
- caption = "Type"
- value = "[@type]"
- width = "50%">
- </a:column>
-
- <a:drag match="[watch]" />
- <a:drop
- match = "[watch]"
- target = "[watch]"
- action = "insert-before" />
-
- </a:each>
- <a:model>
- <data>
- <watch company="Alfex" type="man's" />
- <watch company="Anonimo" type="woman's" />
- <watch company="Atlantic" type="man's" />
- <watch company="Axcent" type="woman's" />
- <watch company="Aviator" type="man's" />
- <watch company="Bulova" type="man's" />
- <watch company="Candino" type="man's" />
- <watch company="Citizen" type="man's" />
- <watch company="Diesel" type="man's" />
- <watch company="Jaguar" type="man's" />
- <watch company="Lotus" type="man's" />
- <watch company="Seiko" type="man's" />
- </data>
- </a:model>
- </a:datagrid>
- <a:list drag="true" drop="true">
- <a:each match="[watch]">
- <a:caption match="[@company]"></a:caption>
- <a:icon value="clock.png"></a:icon>
- </a:each>
- <a:model>
- <data>
- <watch company="Casio" type="GShock" />
- <watch company="Casio2" type="Edifice" />
- </data>
- </a:model>
- </a:list>
-
-
-
-<a:list model="friends.xml" width="300">
- <a:each match="[friend]">
- <a:caption match="[@name]" />
- <a:icon
- match = "[node()[@name='Ruben' or @name='Rik']]"
- value = "medal_gold_1.png" />
- <a:icon value="medal_silver_1.png" />
- </a:each>
-</a:list>
-
-<a:dropdown initial-message="initial message">
- <a:item>The Netherlands</a:item>
- <a:item>United States of America</a:item>
- <a:item>United Kingdom</a:item>
-</a:dropdown>
-
- <a:window
- buttons = "min|max|close"
- title = "Mail message"
- icon = "email.png"
- visible = "true"
- resizable = "true"
- width = "200"
- height = "190"
- minwidth = "170"
- minheight = "150">
-</a:window>
-
-<a:script>//<!--
-
-//--></a:script>
- </body>
-</html>
46 amlnodes2.html
View
@@ -1,46 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns:a="http://ajax.org/2005/aml"
- xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <script src="../../../platform/source/trunk/apf.js"></script>
- <style>
- html{overflow:hidden}
- </style>
- <title>APF 3.0 ActionTracker</title>
- </head>
- <body>
- <a:skin src="skins.xml" media-path="images/" icon-path="icons/" />
-
- <a:appsettings debug="true" />
-
-
-<a:model id="mdlSpinner1">
- <overview page="3" pages="50" />
-</a:model>
-<a:table columns="150" padding="5" model="mdlSpinner1">
- <a:spinner
- id = "sp7"
- min = "0"
- max = "50"
- value = "[@page]" />
-
- <a:slider
- min = "0"
- max = "50"
- mask = "#"
- height = "8"
- step = "1"
- value = "{sp7.value}">
- </a:slider>
-
- <a:label model="mdlSpinner1" value="[@page] of [@pages]"></a:label>
-</a:table>
-
-
-
-<a:script>//<!--
-
-//--></a:script>
- </body>
-</html>
99 bot.html
View
@@ -1,99 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns:a="http://ajax.org/2005/aml" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>TEST BOT</title>
- <script type="text/javascript" src="apf.js"></script>
- </head>
- <body>
- <a:skin
- src = "skins.xml"
- />
- <a:appsettings name = "worknets" debug="false"
- disable-right-click = "false"
- disable-space = "true"
- disable-f5 = "false"
- auto-hide-loading = "true"
- allow-select = "true"
- allow-blur = "true"
- initdelay = "false"
- loading-message = "Loading..."
- empty-message = "Loading..."
- baseurl = "{apf.host ? apf.host + '/' : 'http://dev.worknets.com/'}">
- </a:appsettings>
-
- <a:xmpp id="myXMPP"
- url = "{apf.host ? apf.host : 'http://dev2.worknets.com'}:5280/http-bind"
- host = "worknets.com"
- rdb-bot = "true"
- type = "binding"
- resource = "{'apf_'.appendRandomNumber(5)}"
- onpriority = "getPrio()" />
-
- <a:remote transport="myXMPP" id="rmtFs" />
-
- <a:script><![CDATA[
- self.getPrio = function() {
- return 42;
- };
-
- function createBot(user, pass, prio){
- var model;
-
- var cMyXmpp = myXMPP.cloneNode(true);
- cMyXmpp.setAttribute("id", "cMyXmpp" + prio);
- cMyXmpp.setAttribute("priority", prio);
- apf.document.body.appendChild(cMyXmpp);
-
- var cRmtFs = rmtFs.cloneNode(true);
- cRmtFs.setAttribute("transport", "cMyXmpp" + prio);
- apf.document.body.appendChild(cRmtFs);
-
- var inited;
- cRmtFs.addEventListener("change", function(e) {
- console.log("### INCOMING change: " + e.resource + "\n");
- //persist.updateModel(e.resource, e.model);
- });
- cRmtFs.addEventListener("rdbinit", function(e) {
- inited = true;
- console.log("### RDBINIT called: " + e.resource + ", " + e.model);
- e.model.load("<data><caption>" + user + ": 1</caption></data>");
- model = e.model;
-
- cMyXmpp.setAttribute("priority", cMyXmpp.priority + 10);
- cMyXmpp.botRegister("worknets.com");
- });
-
- var i=2;
- setTimeout(function() {
- try {
- if (inited) {
- console.log("update");
- model && model.setQueryValue("/data/caption", user + ": " + i++);
- }
- } catch (e) {
- console.error(e);
- } finally {
- setTimeout(arguments.callee, 3000);
- }
- }, 1000);
-
- cMyXmpp.connect(user, pass);
-
- apf.addEventListener("exit", function(){
- //mode.unshare();
- cMyXmpp.disconnect();
- })
-
- return {
- xmpp: cMyXmpp,
- remote: cRmtFs,
- name: user
- }
- }
-
- createBot("bot1", "botz1", 1);
- // createBot("bot2", "botz2", 2);
- ]]></a:script>
-
- </body>
-</html>
71 computed_model.html
View
@@ -1,71 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns:a="http://ajax.org/2005/aml" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>TEST CLIENT</title>
- <script type="text/javascript" src="apf.js"></script>
- </head>
- <body>
- <a:skin
- src = "skins.xml"
- />
-
- <a:appsettings name = "worknets" debug="false"
- disable-right-click = "false"
- disable-space = "true"
- disable-f5 = "false"
- auto-hide-loading = "true"
- allow-select = "true"
- allow-blur = "true"
- initdelay = "false"
- loading-message = "Loading..."
- empty-message = "Loading..."
- baseurl = "{apf.host ? apf.host + '/' : 'http://dev.worknets.com/'}">
- </a:appsettings>
-
- <a:xmpp id="myXMPP"
- url = "{apf.host ? apf.host : 'http://localhost'}:5280/http-bind"
- host = "worknets.com"
- type = "binding"
- resource = "{'apf_'.appendRandomNumber(5)}" />
-
- <a:remote transport="myXMPP" id="rmtFs" />
-
- <a:script><![CDATA[
- function createClient(user, pass, prio){
- var cMyXmpp = myXMPP.cloneNode(true);
- cMyXmpp.setAttribute("id", "cMyXmpp" + prio);
- apf.document.body.appendChild(cMyXmpp);
-
- var cRmtFs = rmtFs.cloneNode(true);
- cRmtFs.setAttribute("transport", "cMyXmpp" + prio);
- apf.document.body.appendChild(cRmtFs);
-
- //Model
- var model = apf.document.body.appendChild(apf.document.createElementNS(apf.ns.aml, "model"));
- model.setAttribute("id", "mdlComputed" + prio);
- model.setAttribute("remote", "rmtFs");
- model.setAttribute("src", "rdb://worknets.com/computed" + prio)
-
- //Label
- var label = apf.document.body.appendChild(apf.document.createElementNS(apf.ns.aml, "label"));
- label.setAttribute("caption", "[{mdlComputed" + prio + "}::caption]");
-
- cMyXmpp.connect(user, pass);
-
- apf.addEventListener("exit", function(){
- //mode.unshare();
- cMyXmpp.disconnect();
- })
-
- return {
- xmpp: cMyXmpp,
- remote: cRmtFs,
- name: user
- }
- }
-
- createClient("fabian", "fabian", 1);
- ]]></a:script>
-
- </body>
-</html>
9 friends.xml
View
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<data>
- <friend icon="medal_silver_1.png" name="Arnold"></friend>
- <friend icon="medal_silver_1.png" name="Rik"></friend>
- <friend icon="medal_silver_1.png" name="Ruben" langs="true"></friend>
- <friend icon="medal_silver_1.png" name="Giannis"></friend>
- <friend icon="medal_silver_1.png" name="Carmen"></friend>
- <friend icon="medal_silver_1.png" name="Mike" langs="true"></friend>
-</data>
11 o3App.aml
View
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<a:application xmlns:a="http://ajax.org/2005/aml">
- <a:xmpp id="connXmpp"
- url = "socket://localhost:5222"
- host = "localhost"
- rdb-bot = "true"
- type = "socket"
- resource = "{'apf_'.appendRandomNumber(5)}"
- onpriority = "getPrio()" />
- <a:script>connXmpp.connect("bot1", "botz1");</a:script>
-</a:application>
Please sign in to comment.
Something went wrong with that request. Please try again.