qooxdoo-commit Mailing List for qooxdoo (Page 1430)
Brought to you by:
ecker,
martinwittemann
You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(453) |
Feb
(800) |
Mar
(247) |
Apr
(324) |
May
(172) |
Jun
(145) |
Jul
(265) |
Aug
(447) |
Sep
(271) |
Oct
(312) |
Nov
(327) |
Dec
(472) |
| 2007 |
Jan
(493) |
Feb
(631) |
Mar
(565) |
Apr
(469) |
May
(757) |
Jun
(460) |
Jul
(440) |
Aug
(411) |
Sep
(813) |
Oct
(339) |
Nov
(112) |
Dec
(215) |
| 2008 |
Jan
(423) |
Feb
(671) |
Mar
(578) |
Apr
(566) |
May
(498) |
Jun
(411) |
Jul
(845) |
Aug
(1208) |
Sep
(176) |
Oct
(144) |
Nov
(216) |
Dec
(353) |
| 2009 |
Jan
(363) |
Feb
(700) |
Mar
(416) |
Apr
(362) |
May
(292) |
Jun
(238) |
Jul
(243) |
Aug
(216) |
Sep
(287) |
Oct
(304) |
Nov
(300) |
Dec
(416) |
| 2010 |
Jan
(200) |
Feb
(200) |
Mar
(183) |
Apr
(259) |
May
(217) |
Jun
(241) |
Jul
(320) |
Aug
(330) |
Sep
(209) |
Oct
(217) |
Nov
(460) |
Dec
(392) |
| 2011 |
Jan
(338) |
Feb
(465) |
Mar
(1257) |
Apr
(433) |
May
(505) |
Jun
(417) |
Jul
(438) |
Aug
(241) |
Sep
(258) |
Oct
(223) |
Nov
(224) |
Dec
(172) |
| 2012 |
Jan
(151) |
Feb
(119) |
Mar
(220) |
Apr
(182) |
May
(236) |
Jun
(264) |
Jul
(188) |
Aug
(145) |
Sep
(186) |
Oct
(183) |
Nov
(243) |
Dec
(126) |
| 2013 |
Jan
(133) |
Feb
(165) |
Mar
(122) |
Apr
(116) |
May
(177) |
Jun
(177) |
Jul
(290) |
Aug
(150) |
Sep
(165) |
Oct
(168) |
Nov
(252) |
Dec
(152) |
| 2014 |
Jan
(109) |
Feb
(150) |
Mar
(135) |
Apr
(186) |
May
(235) |
Jun
(181) |
Jul
(193) |
Aug
(117) |
Sep
(118) |
Oct
(194) |
Nov
(207) |
Dec
(261) |
| 2015 |
Jan
(138) |
Feb
(218) |
Mar
(180) |
Apr
(141) |
May
(114) |
Jun
(24) |
Jul
(22) |
Aug
(14) |
Sep
(22) |
Oct
(11) |
Nov
(7) |
Dec
(10) |
| 2016 |
Jan
(1) |
Feb
(31) |
Mar
(13) |
Apr
(30) |
May
(34) |
Jun
(25) |
Jul
(16) |
Aug
(14) |
Sep
(21) |
Oct
(20) |
Nov
(6) |
Dec
|
|
From: Andreas E. <ec...@us...> - 2006-01-19 18:47:28
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/transport In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6642/source/script/transport Modified Files: Tag: renderer QxTransport.js Log Message: API cleanup Index: QxTransport.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxTransport.js,v retrieving revision 1.1.2.8 retrieving revision 1.1.2.9 diff -C2 -d -r1.1.2.8 -r1.1.2.9 *** QxTransport.js 19 Jan 2006 16:26:51 -0000 1.1.2.8 --- QxTransport.js 19 Jan 2006 18:47:18 -0000 1.1.2.9 *************** *** 51,55 **** QxTransport.addProperty({ name : "request", type : QxConst.TYPEOF_OBJECT, instance : "QxRequest" }); QxTransport.addProperty({ name : "implementation", type : QxConst.TYPEOF_OBJECT }); ! QxTransport.addProperty({ name : "readyState", type : QxConst.TYPEOF_STRING, possibleValues : [ "configured", "sending", "receiving", "complete" ], defaultValue : "configured" }); --- 51,64 ---- QxTransport.addProperty({ name : "request", type : QxConst.TYPEOF_OBJECT, instance : "QxRequest" }); QxTransport.addProperty({ name : "implementation", type : QxConst.TYPEOF_OBJECT }); ! QxTransport.addProperty( ! { ! name : "state", ! type : QxConst.TYPEOF_STRING, ! possibleValues : [ ! QxConst.REQUEST_STATE_CONFIGURED, QxConst.REQUEST_STATE_SENDING, ! QxConst.REQUEST_STATE_RECEIVING, QxConst.REQUEST_STATE_COMPLETED ! ], ! defaultValue : QxConst.REQUEST_STATE_CONFIGURED ! }); *************** *** 69,73 **** propOldValue.removeEventListener(QxConst.EVENT_TYPE_SENDING, this._onsending, this); propOldValue.removeEventListener(QxConst.EVENT_TYPE_RECEIVING, this._onreceiving, this); ! propOldValue.removeEventListener(QxConst.EVENT_TYPE_COMPLETE, this._oncomplete, this); propOldValue.dispose(); --- 78,82 ---- propOldValue.removeEventListener(QxConst.EVENT_TYPE_SENDING, this._onsending, this); propOldValue.removeEventListener(QxConst.EVENT_TYPE_RECEIVING, this._onreceiving, this); ! propOldValue.removeEventListener(QxConst.EVENT_TYPE_COMPLETED, this._oncompleted, this); propOldValue.dispose(); *************** *** 87,91 **** propValue.addEventListener(QxConst.EVENT_TYPE_SENDING, this._onsending, this); propValue.addEventListener(QxConst.EVENT_TYPE_RECEIVING, this._onreceiving, this); ! propValue.addEventListener(QxConst.EVENT_TYPE_COMPLETE, this._oncomplete, this); propValue.send(); --- 96,100 ---- propValue.addEventListener(QxConst.EVENT_TYPE_SENDING, this._onsending, this); propValue.addEventListener(QxConst.EVENT_TYPE_RECEIVING, this._onreceiving, this); ! propValue.addEventListener(QxConst.EVENT_TYPE_COMPLETED, this._oncompleted, this); propValue.send(); *************** *** 95,116 **** }; ! proto._modifyReadyState = function(propValue, propOldValue, propData) { var vRequest = this.getRequest(); ! this.debug("readyState: " + propValue); switch(propValue) { ! case QxConst.READY_STATE_SENDING: vRequest.createDispatchEvent(QxConst.EVENT_TYPE_SENDING); break; ! case QxConst.READY_STATE_RECEIVING: vRequest.createDispatchEvent(QxConst.EVENT_TYPE_RECEIVING); break; ! case QxConst.READY_STATE_COMPLETE: ! if (vRequest.hasEventListeners(QxConst.EVENT_TYPE_COMPLETE)) { var vImpl = this.getImplementation(); --- 104,125 ---- }; ! proto._modifyState = function(propValue, propOldValue, propData) { var vRequest = this.getRequest(); ! this.debug("state: " + propValue); switch(propValue) { ! case QxConst.REQUEST_STATE_SENDING: vRequest.createDispatchEvent(QxConst.EVENT_TYPE_SENDING); break; ! case QxConst.REQUEST_STATE_RECEIVING: vRequest.createDispatchEvent(QxConst.EVENT_TYPE_RECEIVING); break; ! case QxConst.REQUEST_STATE_COMPLETED: ! if (vRequest.hasEventListeners(QxConst.EVENT_TYPE_COMPLETED)) { var vImpl = this.getImplementation(); *************** *** 124,128 **** // TODO: Response Headers ! vRequest.dispatchEvent(new QxDataEvent(QxConst.EVENT_TYPE_COMPLETE, vResponse), true); }; --- 133,137 ---- // TODO: Response Headers ! vRequest.dispatchEvent(new QxDataEvent(QxConst.EVENT_TYPE_COMPLETED, vResponse), true); }; *************** *** 233,244 **** proto._onsending = function(e) { ! this.setReadyState(QxConst.READY_STATE_SENDING); }; proto._onreceiving = function(e) { ! this.setReadyState(QxConst.READY_STATE_RECEIVING); }; ! proto._oncomplete = function(e) { ! this.setReadyState(QxConst.READY_STATE_COMPLETE); }; --- 242,253 ---- proto._onsending = function(e) { ! this.setState(QxConst.REQUEST_STATE_SENDING); }; proto._onreceiving = function(e) { ! this.setState(QxConst.REQUEST_STATE_RECEIVING); }; ! proto._oncompleted = function(e) { ! this.setState(QxConst.REQUEST_STATE_COMPLETED); }; |
|
From: Andreas E. <ec...@us...> - 2006-01-19 18:45:35
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/transport In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5991/source/script/transport Modified Files: Tag: renderer QxResponse.js Log Message: Added property state Index: QxResponse.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxResponse.js,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -C2 -d -r1.1.2.3 -r1.1.2.4 *** QxResponse.js 19 Jan 2006 13:56:09 -0000 1.1.2.3 --- QxResponse.js 19 Jan 2006 18:45:28 -0000 1.1.2.4 *************** *** 47,50 **** --- 47,52 ---- */ + QxResponse.addProperty({ name : "state", type : QxConst.TYPEOF_NUMBER }); + QxResponse.addProperty({ name : "statusCode", type : QxConst.TYPEOF_NUMBER }); QxResponse.addProperty({ name : "statusText", type : QxConst.TYPEOF_STRING }); |
|
From: Andreas E. <ec...@us...> - 2006-01-19 18:44:59
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/transport In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5719/source/script/transport Modified Files: Tag: renderer QxRequestQueue.js Log Message: API cleanup: renamed scheduled to queued Index: QxRequestQueue.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxRequestQueue.js,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -C2 -d -r1.1.2.4 -r1.1.2.5 *** QxRequestQueue.js 19 Jan 2006 16:26:51 -0000 1.1.2.4 --- QxRequestQueue.js 19 Jan 2006 18:44:51 -0000 1.1.2.5 *************** *** 91,95 **** this._queue.push(vRequest); ! vRequest.createDispatchEvent(QxConst.EVENT_TYPE_SCHEDULED); this._timer.start(); --- 91,95 ---- this._queue.push(vRequest); ! vRequest.createDispatchEvent(QxConst.EVENT_TYPE_QUEUED); this._timer.start(); |
|
From: Andreas E. <ec...@us...> - 2006-01-19 18:44:08
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/transport In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5380/source/script/transport Modified Files: Tag: renderer QxRequest.js Log Message: Major API cleanup: renamed readyState to state, etc. Index: QxRequest.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxRequest.js,v retrieving revision 1.1.2.10 retrieving revision 1.1.2.11 diff -C2 -d -r1.1.2.10 -r1.1.2.11 *** QxRequest.js 19 Jan 2006 16:26:51 -0000 1.1.2.10 --- QxRequest.js 19 Jan 2006 18:43:59 -0000 1.1.2.11 *************** *** 34,41 **** QxTarget.call(this); ! this.addEventListener("scheduled", this._onscheduled); ! this.addEventListener("sending", this._onsending); ! this.addEventListener("receiving", this._onreceiving); ! this.addEventListener("complete", this._oncomplete); this.setUrl(vUrl); --- 34,41 ---- QxTarget.call(this); ! this.addEventListener(QxConst.EVENT_TYPE_QUEUED, this._onqueued); ! this.addEventListener(QxConst.EVENT_TYPE_SENDING, this._onsending); ! this.addEventListener(QxConst.EVENT_TYPE_RECEIVING, this._onreceiving); ! this.addEventListener(QxConst.EVENT_TYPE_COMPLETED, this._oncompleted); this.setUrl(vUrl); *************** *** 61,65 **** QxRequest.addProperty({ name : "username", type : QxConst.TYPEOF_STRING }); QxRequest.addProperty({ name : "password", type : QxConst.TYPEOF_STRING }); ! QxRequest.addProperty({ name : "readyState", type : QxConst.TYPEOF_STRING, possibleValues : [ "configured", "scheduled", "sending", "receiving", "complete" ], defaultValue : "configured" }); --- 61,75 ---- QxRequest.addProperty({ name : "username", type : QxConst.TYPEOF_STRING }); QxRequest.addProperty({ name : "password", type : QxConst.TYPEOF_STRING }); ! QxRequest.addProperty( ! { ! name : "state", ! type : QxConst.TYPEOF_STRING, ! possibleValues : [ ! QxConst.REQUEST_STATE_CONFIGURED, QxConst.REQUEST_STATE_QUEUED, ! QxConst.REQUEST_STATE_SENDING, QxConst.REQUEST_STATE_RECEIVING, ! QxConst.REQUEST_STATE_COMPLETED ! ], ! defaultValue : QxConst.REQUEST_STATE_CONFIGURED ! }); *************** *** 85,96 **** proto.reset = function() { ! switch(this.getReadyState()) { ! case QxConst.READY_STATE_SENDING: ! case QxConst.READY_STATE_RECEIVING: this.error("Aborting already sent request!"); // no break ! case QxConst.READY_STATE_SCHEDULED: this.abort(); break; --- 95,106 ---- proto.reset = function() { ! switch(this.getState()) { ! case QxConst.REQUEST_STATE_SENDING: ! case QxConst.REQUEST_STATE_RECEIVING: this.error("Aborting already sent request!"); // no break ! case QxConst.REQUEST_STATE_QUEUED: this.abort(); break; *************** *** 109,134 **** /* --------------------------------------------------------------------------- ! READY STATE ALIASES --------------------------------------------------------------------------- */ proto.isConfigured = function() { ! return this.getReadyState() === QxConst.READY_STATE_CONFIGURED; }; ! proto.isScheduled = function() { ! return this.getReadyState() === QxConst.READY_STATE_SCHEDULED; }; proto.isSending = function() { ! return this.getReadyState() === QxConst.READY_STATE_SENDING; }; proto.isLoading = function() { ! return this.getReadyState() === QxConst.READY_STATE_RECEIVING; }; ! proto.isComplete = function() { ! return this.getReadyState() === QxConst.READY_STATE_COMPLETE; }; --- 119,144 ---- /* --------------------------------------------------------------------------- ! STATE ALIASES --------------------------------------------------------------------------- */ proto.isConfigured = function() { ! return this.getState() === QxConst.REQUEST_STATE_CONFIGURED; }; ! proto.isQueued = function() { ! return this.getState() === QxConst.REQUEST_STATE_QUEUED; }; proto.isSending = function() { ! return this.getState() === QxConst.REQUEST_STATE_SENDING; }; proto.isLoading = function() { ! return this.getState() === QxConst.REQUEST_STATE_RECEIVING; }; ! proto.isCompleted = function() { ! return this.getState() === QxConst.REQUEST_STATE_COMPLETED; }; *************** *** 147,167 **** proto._onabort = function(e) { ! this.setReadyState(QxConst.READY_STATE_CONFIGURED); }; ! proto._onscheduled = function(e) { ! this.setReadyState(QxConst.READY_STATE_SCHEDULED); }; proto._onsending = function(e) { ! this.setReadyState(QxConst.READY_STATE_SENDING); }; proto._onreceiving = function(e) { ! this.setReadyState(QxConst.READY_STATE_RECEIVING); }; ! proto._oncomplete = function(e) { ! this.setReadyState(QxConst.READY_STATE_COMPLETE); }; --- 157,177 ---- proto._onabort = function(e) { ! this.setState(QxConst.REQUEST_STATE_CONFIGURED); }; ! proto._onqueued = function(e) { ! this.setState(QxConst.REQUEST_STATE_QUEUED); }; proto._onsending = function(e) { ! this.setState(QxConst.REQUEST_STATE_SENDING); }; proto._onreceiving = function(e) { ! this.setState(QxConst.REQUEST_STATE_RECEIVING); }; ! proto._oncompleted = function(e) { ! this.setState(QxConst.REQUEST_STATE_COMPLETED); }; *************** *** 179,185 **** */ ! proto._modifyReadyState = function(propValue, propOldValue, propData) { ! this.debug("readyState: " + propValue); return true; }; --- 189,195 ---- */ ! proto._modifyState = function(propValue, propOldValue, propData) { ! this.debug("state: " + propValue); return true; }; *************** *** 204,211 **** }; ! this.removeEventListener("scheduled", this._onscheduled); ! this.removeEventListener("sending", this._onsending); ! this.removeEventListener("receiving", this._onreceiving); ! this.removeEventListener("complete", this._oncomplete); return QxTarget.prototype.dispose.call(this); --- 214,221 ---- }; ! this.removeEventListener(QxConst.EVENT_TYPE_QUEUED, this._onqueued); ! this.removeEventListener(QxConst.EVENT_TYPE_SENDING, this._onsending); ! this.removeEventListener(QxConst.EVENT_TYPE_RECEIVING, this._onreceiving); ! this.removeEventListener(QxConst.EVENT_TYPE_COMPLETED, this._oncompleted); return QxTarget.prototype.dispose.call(this); |
|
From: Sebastian W. <wp...@us...> - 2006-01-19 16:32:56
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21279/source/script/core Modified Files: Tag: renderer QxNative.js Log Message: Improved append method Index: QxNative.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/core/Attic/QxNative.js,v retrieving revision 1.1.2.7 retrieving revision 1.1.2.8 diff -C2 -d -r1.1.2.7 -r1.1.2.8 *** QxNative.js 16 Jan 2006 16:11:55 -0000 1.1.2.7 --- QxNative.js 19 Jan 2006 16:32:48 -0000 1.1.2.8 *************** *** 223,231 **** }; ! Array.prototype.append = function () ! { ! for (var i=0, l=arguments.length; i<l; i++) { ! this[this.length] = arguments[i]; ! }; }; --- 223,228 ---- }; ! Array.prototype.append = function(a) { ! Array.prototype.push.apply(this, a); }; |
|
From: Sebastian W. <wp...@us...> - 2006-01-19 16:27:08
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/transport In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19396/source/script/transport Modified Files: Tag: renderer QxRequest.js QxRequestQueue.js QxTransport.js QxXmlHttpTransport.js Log Message: Improved overall event handling Index: QxRequest.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxRequest.js,v retrieving revision 1.1.2.9 retrieving revision 1.1.2.10 diff -C2 -d -r1.1.2.9 -r1.1.2.10 *** QxRequest.js 19 Jan 2006 15:07:44 -0000 1.1.2.9 --- QxRequest.js 19 Jan 2006 16:26:51 -0000 1.1.2.10 *************** *** 34,39 **** QxTarget.call(this); ! this.addEventListener("prepared", this._onprepared); ! this.addEventListener("loading", this._onloading); this.addEventListener("complete", this._oncomplete); --- 34,40 ---- QxTarget.call(this); ! this.addEventListener("scheduled", this._onscheduled); ! this.addEventListener("sending", this._onsending); ! this.addEventListener("receiving", this._onreceiving); this.addEventListener("complete", this._oncomplete); *************** *** 45,48 **** --- 46,52 ---- + + + /* --------------------------------------------------------------------------- *************** *** 57,74 **** QxRequest.addProperty({ name : "username", type : QxConst.TYPEOF_STRING }); QxRequest.addProperty({ name : "password", type : QxConst.TYPEOF_STRING }); ! QxRequest.addProperty({ name : "readyState", type : QxConst.TYPEOF_STRING }); ! ! ! - /* - --------------------------------------------------------------------------- - DATA - --------------------------------------------------------------------------- - */ - QxRequest.READY_STATE_PREPARED = "prepared"; - QxRequest.READY_STATE_LOADING = "loading"; - QxRequest.READY_STATE_COMPLETE = "complete"; --- 61,67 ---- QxRequest.addProperty({ name : "username", type : QxConst.TYPEOF_STRING }); QxRequest.addProperty({ name : "password", type : QxConst.TYPEOF_STRING }); ! QxRequest.addProperty({ name : "readyState", type : QxConst.TYPEOF_STRING, possibleValues : [ "configured", "scheduled", "sending", "receiving", "complete" ], defaultValue : "configured" }); *************** *** 82,87 **** */ ! proto.send = function() ! { QxRequestQueue.add(this); }; --- 75,79 ---- */ ! proto.send = function() { QxRequestQueue.add(this); }; *************** *** 91,94 **** --- 83,107 ---- }; + proto.reset = function() + { + switch(this.getReadyState()) + { + case QxConst.READY_STATE_SENDING: + case QxConst.READY_STATE_RECEIVING: + this.error("Aborting already sent request!"); + // no break + + case QxConst.READY_STATE_SCHEDULED: + this.abort(); + break; + + default: + this._onabort(); + }; + }; + + + + *************** *** 100,113 **** */ ! proto.isPrepared = function() { ! return this.getReadyState() === QxRequest.READY_STATE_PREPARED; }; proto.isLoading = function() { ! return this.getReadyState() === QxRequest.READY_STATE_LOADING; }; proto.isComplete = function() { ! return this.getReadyState() === QxRequest.READY_STATE_COMPLETE; }; --- 113,134 ---- */ ! proto.isConfigured = function() { ! return this.getReadyState() === QxConst.READY_STATE_CONFIGURED; ! }; ! ! proto.isScheduled = function() { ! return this.getReadyState() === QxConst.READY_STATE_SCHEDULED; ! }; ! ! proto.isSending = function() { ! return this.getReadyState() === QxConst.READY_STATE_SENDING; }; proto.isLoading = function() { ! return this.getReadyState() === QxConst.READY_STATE_RECEIVING; }; proto.isComplete = function() { ! return this.getReadyState() === QxConst.READY_STATE_COMPLETE; }; *************** *** 117,120 **** --- 138,143 ---- + + /* --------------------------------------------------------------------------- *************** *** 123,136 **** */ ! proto._onprepared = function(e) { ! this.setReadyState("prepared"); }; ! proto._onloading = function(e) { ! this.setReadyState("loading"); }; proto._oncomplete = function(e) { ! this.setReadyState("complete"); }; --- 146,167 ---- */ ! proto._onabort = function(e) { ! this.setReadyState(QxConst.READY_STATE_CONFIGURED); }; ! proto._onscheduled = function(e) { ! this.setReadyState(QxConst.READY_STATE_SCHEDULED); ! }; ! ! proto._onsending = function(e) { ! this.setReadyState(QxConst.READY_STATE_SENDING); ! }; ! ! proto._onreceiving = function(e) { ! this.setReadyState(QxConst.READY_STATE_RECEIVING); }; proto._oncomplete = function(e) { ! this.setReadyState(QxConst.READY_STATE_COMPLETE); }; *************** *** 140,143 **** --- 171,176 ---- + + /* --------------------------------------------------------------------------- *************** *** 148,152 **** proto._modifyReadyState = function(propValue, propOldValue, propData) { ! this.debug("readyState [norm]: " + propValue); return true; }; --- 181,185 ---- proto._modifyReadyState = function(propValue, propOldValue, propData) { ! this.debug("readyState: " + propValue); return true; }; *************** *** 155,158 **** --- 188,195 ---- + + + + /* --------------------------------------------------------------------------- *************** *** 167,174 **** }; ! this.removeEventListener("prepared", this._onprepared); ! this.removeEventListener("loading", this._onloading); this.removeEventListener("complete", this._oncomplete); ! return QxTarget.prototype.dispose.call(this); }; --- 204,212 ---- }; ! this.removeEventListener("scheduled", this._onscheduled); ! this.removeEventListener("sending", this._onsending); ! this.removeEventListener("receiving", this._onreceiving); this.removeEventListener("complete", this._oncomplete); ! return QxTarget.prototype.dispose.call(this); }; Index: QxTransport.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxTransport.js,v retrieving revision 1.1.2.7 retrieving revision 1.1.2.8 diff -C2 -d -r1.1.2.7 -r1.1.2.8 *** QxTransport.js 19 Jan 2006 15:07:44 -0000 1.1.2.7 --- QxTransport.js 19 Jan 2006 16:26:51 -0000 1.1.2.8 *************** *** 51,55 **** QxTransport.addProperty({ name : "request", type : QxConst.TYPEOF_OBJECT, instance : "QxRequest" }); QxTransport.addProperty({ name : "implementation", type : QxConst.TYPEOF_OBJECT }); ! QxTransport.addProperty({ name : "readyState" }); --- 51,55 ---- QxTransport.addProperty({ name : "request", type : QxConst.TYPEOF_OBJECT, instance : "QxRequest" }); QxTransport.addProperty({ name : "implementation", type : QxConst.TYPEOF_OBJECT }); ! QxTransport.addProperty({ name : "readyState", type : QxConst.TYPEOF_STRING, possibleValues : [ "configured", "sending", "receiving", "complete" ], defaultValue : "configured" }); *************** *** 67,73 **** if (propOldValue) { ! propOldValue.removeEventListener("prepared", this._onprepared, this); ! propOldValue.removeEventListener("loading", this._onloading, this); ! propOldValue.removeEventListener("complete", this._oncomplete, this); propOldValue.dispose(); --- 67,73 ---- if (propOldValue) { ! propOldValue.removeEventListener(QxConst.EVENT_TYPE_SENDING, this._onsending, this); ! propOldValue.removeEventListener(QxConst.EVENT_TYPE_RECEIVING, this._onreceiving, this); ! propOldValue.removeEventListener(QxConst.EVENT_TYPE_COMPLETE, this._oncomplete, this); propOldValue.dispose(); *************** *** 85,91 **** propValue.setPassword(vRequest.getPassword()); ! propValue.addEventListener("prepared", this._onprepared, this); ! propValue.addEventListener("loading", this._onloading, this); ! propValue.addEventListener("complete", this._oncomplete, this); propValue.send(); --- 85,91 ---- propValue.setPassword(vRequest.getPassword()); ! propValue.addEventListener(QxConst.EVENT_TYPE_SENDING, this._onsending, this); ! propValue.addEventListener(QxConst.EVENT_TYPE_RECEIVING, this._onreceiving, this); ! propValue.addEventListener(QxConst.EVENT_TYPE_COMPLETE, this._oncomplete, this); propValue.send(); *************** *** 99,115 **** var vRequest = this.getRequest(); ! this.debug("readyState [norm]: " + propValue); switch(propValue) { ! case "prepared": ! vRequest.createDispatchEvent("prepared"); break; ! case "loading": ! vRequest.createDispatchEvent("loading"); break; ! case "complete": if (vRequest.hasEventListeners(QxConst.EVENT_TYPE_COMPLETE)) { --- 99,115 ---- var vRequest = this.getRequest(); ! this.debug("readyState: " + propValue); switch(propValue) { ! case QxConst.READY_STATE_SENDING: ! vRequest.createDispatchEvent(QxConst.EVENT_TYPE_SENDING); break; ! case QxConst.READY_STATE_RECEIVING: ! vRequest.createDispatchEvent(QxConst.EVENT_TYPE_RECEIVING); break; ! case QxConst.READY_STATE_COMPLETE: if (vRequest.hasEventListeners(QxConst.EVENT_TYPE_COMPLETE)) { *************** *** 232,244 **** */ ! proto._onprepared = function(e) { ! this.setReadyState("prepared"); }; ! proto._onloading = function(e) { ! this.setReadyState("loading"); }; proto._oncomplete = function(e) { ! this.setReadyState("complete"); }; --- 232,244 ---- */ ! proto._onsending = function(e) { ! this.setReadyState(QxConst.READY_STATE_SENDING); }; ! proto._onreceiving = function(e) { ! this.setReadyState(QxConst.READY_STATE_RECEIVING); }; proto._oncomplete = function(e) { ! this.setReadyState(QxConst.READY_STATE_COMPLETE); }; Index: QxXmlHttpTransport.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxXmlHttpTransport.js,v retrieving revision 1.1.2.8 retrieving revision 1.1.2.9 diff -C2 -d -r1.1.2.8 -r1.1.2.9 *** QxXmlHttpTransport.js 19 Jan 2006 15:09:53 -0000 1.1.2.8 --- QxXmlHttpTransport.js 19 Jan 2006 16:26:51 -0000 1.1.2.9 *************** *** 150,154 **** The readyState of the current request */ ! QxXmlHttpTransport.addProperty({ name : "readyState", type : QxConst.TYPEOF_STRING }); --- 150,154 ---- The readyState of the current request */ ! QxXmlHttpTransport.addProperty({ name : "readyState", type : QxConst.TYPEOF_STRING, possibleValues : [ "preparing", "configured", "sending", "receiving", "complete" ] }); *************** *** 170,175 **** proto.send = function() { - this.setReadyState("prepared"); - var vRequest = this.getRequest(); --- 170,173 ---- *************** *** 185,194 **** try { ! vRequest.send(null); } catch(ex) { this.error("Could not load: " + this.getUrl() + ": " + ex); ! this.setReadyState("complete"); }; }; --- 183,192 ---- try { ! vRequest.send(this.getData()); } catch(ex) { this.error("Could not load: " + this.getUrl() + ": " + ex); ! this.setReadyState(QxConst.READY_STATE_COMPLETE); }; }; *************** *** 212,228 **** switch(propValue) { ! case "prepared": ! this.debug("readyState [norm]: prepared"); ! this.createDispatchEvent("prepared"); break; ! case "loading": ! this.debug("readyState [norm]: loading"); ! this.createDispatchEvent("loading"); break; ! case "complete": ! this.debug("readyState [norm]: complete"); ! this.createDispatchEvent("complete"); break; }; --- 210,236 ---- switch(propValue) { ! case QxConst.READY_STATE_PREPARING: ! this.debug("readyState: preparing"); ! this.createDispatchEvent(QxConst.EVENT_TYPE_PREPARING); ! break; ! ! case QxConst.READY_STATE_CONFIGURED: ! this.debug("readyState: configured"); ! this.createDispatchEvent(QxConst.EVENT_TYPE_CONFIGURED); ! break; ! ! case QxConst.READY_STATE_SENDING: ! this.debug("readyState: sending"); ! this.createDispatchEvent(QxConst.EVENT_TYPE_SENDING); break; ! case QxConst.READY_STATE_RECEIVING: ! this.debug("readyState: receiving"); ! this.createDispatchEvent(QxConst.EVENT_TYPE_RECEIVING); break; ! case QxConst.READY_STATE_COMPLETE: ! this.debug("readyState: complete"); ! this.createDispatchEvent(QxConst.EVENT_TYPE_COMPLETE); break; }; *************** *** 243,262 **** */ proto._onreadystatechange = function(e) { var vRequest = this.getRequest(); - this.debug("readyState [impl]: " + vRequest.readyState); - switch(vRequest.readyState) { case 1: case 2: case 3: ! this.setReadyState("loading"); break; case 4: ! this.setReadyState("complete"); break; }; --- 251,297 ---- */ + /* + http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/0e6a34e4-f90c-489d-acff-cb44242fafc6.asp + + 0: UNINITIALIZED + The object has been created, but not initialized (the open method has not been called). + + 1: RECEIVING + The object has been created, but the send method has not been called. + + 2: LOADED + The send method has been called, but the status and headers are not yet available. + + 3: INTERACTIVE + Some data has been received. Calling the responseBody and responseText properties at this state to obtain partial results will return an error, because status and response headers are not fully available. + + 4: COMPLETED + All the data has been received, and the complete data is available in the + */ + proto._onreadystatechange = function(e) { var vRequest = this.getRequest(); switch(vRequest.readyState) { + case 0: + this.setReadyState(QxConst.READY_STATE_PREPARING); + break; + case 1: + this.setReadyState(QxConst.READY_STATE_CONFIGURED); + break; + case 2: + this.setReadyState(QxConst.READY_STATE_SENDING); + break; + case 3: ! this.setReadyState(QxConst.READY_STATE_RECEIVING); break; case 4: ! this.setReadyState(QxConst.READY_STATE_COMPLETE); break; }; *************** *** 483,487 **** if (this._req) { ! this._req.onreadystatechange = null; this._req = null; }; --- 518,527 ---- if (this._req) { ! // Should be right, ! // but is not compatible to mshtml (throws an exception) ! if (!QxClient.isMshtml()) { ! this._req.onreadystatechange = null; ! }; ! this._req = null; }; Index: QxRequestQueue.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxRequestQueue.js,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -C2 -d -r1.1.2.3 -r1.1.2.4 *** QxRequestQueue.js 19 Jan 2006 10:59:40 -0000 1.1.2.3 --- QxRequestQueue.js 19 Jan 2006 16:26:51 -0000 1.1.2.4 *************** *** 68,72 **** { // DISCUSS: How to support concurrent requests? ! var t = new QxTransport(this._queue.shift()); if (this._queue.length === 0) { --- 68,73 ---- { // DISCUSS: How to support concurrent requests? ! var vRequest = this._queue.shift(); ! var vTransport = new QxTransport(vRequest); if (this._queue.length === 0) { *************** *** 89,98 **** { this._queue.push(vRequest); this._timer.start(); }; ! proto.abort = function(vRequest) ! { ! }; --- 90,101 ---- { this._queue.push(vRequest); + + vRequest.createDispatchEvent(QxConst.EVENT_TYPE_SCHEDULED); + this._timer.start(); }; ! proto.abort = function(vRequest) { ! this.error("Needs implementation", "abort"); }; *************** *** 101,104 **** --- 104,109 ---- + + /* --------------------------------------------------------------------------- *************** *** 128,131 **** --- 133,138 ---- + + /* --------------------------------------------------------------------------- |
|
From: Sebastian W. <wp...@us...> - 2006-01-19 16:27:01
|
Update of /cvsroot/qooxdoo/qooxdoo/source/test/user In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19396/source/test/user Modified Files: Tag: renderer Transport_1.html Log Message: Improved overall event handling Index: Transport_1.html =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/test/user/Attic/Transport_1.html,v retrieving revision 1.1.2.7 retrieving revision 1.1.2.8 diff -C2 -d -r1.1.2.7 -r1.1.2.8 *** Transport_1.html 19 Jan 2006 15:07:44 -0000 1.1.2.7 --- Transport_1.html 19 Jan 2006 16:26:51 -0000 1.1.2.8 *************** *** 68,71 **** --- 68,75 ---- + var inf = new QxTextField("Status"); + hlay.add(inf); + + var fsr = new QxFieldSet("Result"); *************** *** 95,100 **** var req = new QxRequest(val.getLabel()); ! req.addEventListener("complete", function(e) { area.setValue(e.getNewValue().getTextContent()); }); --- 99,114 ---- var req = new QxRequest(val.getLabel()); + + req.addEventListener("sending", function(e) { + inf.setValue("Sending"); + }); + + req.addEventListener("receiving", function(e) { + inf.setValue("Receiving"); + }); ! req.addEventListener("complete", function(e) ! { ! inf.setValue("Complete"); area.setValue(e.getNewValue().getTextContent()); }); |
|
From: Sebastian W. <wp...@us...> - 2006-01-19 16:26:59
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19396/source/script/core Modified Files: Tag: renderer QxConst.js Log Message: Improved overall event handling Index: QxConst.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/core/Attic/QxConst.js,v retrieving revision 1.1.2.20 retrieving revision 1.1.2.21 diff -C2 -d -r1.1.2.20 -r1.1.2.21 *** QxConst.js 19 Jan 2006 10:59:39 -0000 1.1.2.20 --- QxConst.js 19 Jan 2006 16:26:50 -0000 1.1.2.21 *************** *** 278,284 **** EVENT_TYPE_REMOVEDOM : "removeDom", ! EVENT_TYPE_PREPARED : "prepared", ! EVENT_TYPE_LOADING : "loading", EVENT_TYPE_COMPLETE : "complete", BUTTON_LEFT : "left", --- 278,294 ---- EVENT_TYPE_REMOVEDOM : "removeDom", ! EVENT_TYPE_PREPARING : "preparing", ! EVENT_TYPE_CONFIGURED : "configured", ! EVENT_TYPE_SCHEDULED : "scheduled", ! EVENT_TYPE_SENDING : "sending", ! EVENT_TYPE_RECEIVING : "receiving", EVENT_TYPE_COMPLETE : "complete", + + READY_STATE_PREPARING : "preparing", + READY_STATE_CONFIGURED : "configured", + READY_STATE_SCHEDULED : "scheduled", + READY_STATE_SENDING : "sending", + READY_STATE_RECEIVING : "receiving", + READY_STATE_COMPLETE : "complete", BUTTON_LEFT : "left", |
|
From: Sebastian W. <wp...@us...> - 2006-01-19 16:26:15
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/appearance In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19145/source/script/appearance Modified Files: Tag: renderer QxAppearanceTheme-Default.js Log Message: Minor change Index: QxAppearanceTheme-Default.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/appearance/Attic/QxAppearanceTheme-Default.js,v retrieving revision 1.1.2.8 retrieving revision 1.1.2.9 diff -C2 -d -r1.1.2.8 -r1.1.2.9 *** QxAppearanceTheme-Default.js 18 Jan 2006 10:00:11 -0000 1.1.2.8 --- QxAppearanceTheme-Default.js 19 Jan 2006 16:26:06 -0000 1.1.2.9 *************** *** 1057,1061 **** paddingRight : 4, paddingBottom : 2, ! paddingLeft : 4 }; }, --- 1057,1062 ---- paddingRight : 4, paddingBottom : 2, ! paddingLeft : 4, ! allowStretchY : false }; }, |
|
From: Sebastian W. <wp...@us...> - 2006-01-19 15:10:02
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/transport In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25160/source/script/transport Modified Files: Tag: renderer QxXmlHttpTransport.js Log Message: Improved disposer Index: QxXmlHttpTransport.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxXmlHttpTransport.js,v retrieving revision 1.1.2.7 retrieving revision 1.1.2.8 diff -C2 -d -r1.1.2.7 -r1.1.2.8 *** QxXmlHttpTransport.js 19 Jan 2006 13:56:09 -0000 1.1.2.7 --- QxXmlHttpTransport.js 19 Jan 2006 15:09:53 -0000 1.1.2.8 *************** *** 319,322 **** --- 319,324 ---- + + /* --------------------------------------------------------------------------- *************** *** 461,464 **** --- 463,472 ---- + + + + + + /* --------------------------------------------------------------------------- *************** *** 473,477 **** }; ! this._req = null; return QxTarget.prototype.dispose.call(this); --- 481,489 ---- }; ! if (this._req) ! { ! this._req.onreadystatechange = null; ! this._req = null; ! }; return QxTarget.prototype.dispose.call(this); |
|
From: Sebastian W. <wp...@us...> - 2006-01-19 15:07:54
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/transport In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24347/source/script/transport Modified Files: Tag: renderer QxRequest.js QxTransport.js Log Message: Improved QxRequest object Index: QxRequest.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxRequest.js,v retrieving revision 1.1.2.8 retrieving revision 1.1.2.9 diff -C2 -d -r1.1.2.8 -r1.1.2.9 *** QxRequest.js 19 Jan 2006 13:58:25 -0000 1.1.2.8 --- QxRequest.js 19 Jan 2006 15:07:44 -0000 1.1.2.9 *************** *** 34,37 **** --- 34,41 ---- QxTarget.call(this); + this.addEventListener("prepared", this._onprepared); + this.addEventListener("loading", this._onloading); + this.addEventListener("complete", this._oncomplete); + this.setUrl(vUrl); }; *************** *** 112,118 **** /* --------------------------------------------------------------------------- ! MODIFIERS --------------------------------------------------------------------------- */ --- 116,146 ---- + /* --------------------------------------------------------------------------- ! EVENT HANDLER ! --------------------------------------------------------------------------- ! */ ! ! proto._onprepared = function(e) { ! this.setReadyState("prepared"); ! }; ! ! proto._onloading = function(e) { ! this.setReadyState("loading"); ! }; ! ! proto._oncomplete = function(e) { ! this.setReadyState("complete"); ! }; ! ! ! ! ! ! ! /* ! --------------------------------------------------------------------------- ! MODIFIER --------------------------------------------------------------------------- */ *************** *** 120,141 **** proto._modifyReadyState = function(propValue, propOldValue, propData) { ! switch(propValue) ! { ! case QxRequest.READY_STATE_PREPARED: ! // this should normally never be called ! break; ! ! case QxRequest.READY_STATE_LOADING: ! // support loading state informations (how to name the real transport event?) ! // startLoading vs. loading ! this.createDispatchEvent("loading"); ! break; ! ! case QxRequest.READY_STATE_COMPLETE: ! // send QxResponse instance through QxDataEvent? ! this.createDispatchDataEvent("complete"); ! break; ! }; ! return true; }; --- 148,174 ---- proto._modifyReadyState = function(propValue, propOldValue, propData) { ! this.debug("readyState [norm]: " + propValue); return true; }; + + + + + /* + --------------------------------------------------------------------------- + DISPOSER + --------------------------------------------------------------------------- + */ + + proto.dispose = function() + { + if (this.getDisposed()) { + return; + }; + + this.removeEventListener("prepared", this._onprepared); + this.removeEventListener("loading", this._onloading); + this.removeEventListener("complete", this._oncomplete); + + return QxTarget.prototype.dispose.call(this); + }; Index: QxTransport.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxTransport.js,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -C2 -d -r1.1.2.6 -r1.1.2.7 *** QxTransport.js 19 Jan 2006 13:56:09 -0000 1.1.2.6 --- QxTransport.js 19 Jan 2006 15:07:44 -0000 1.1.2.7 *************** *** 104,110 **** --- 104,112 ---- { case "prepared": + vRequest.createDispatchEvent("prepared"); break; case "loading": + vRequest.createDispatchEvent("loading"); break; |
|
From: Sebastian W. <wp...@us...> - 2006-01-19 15:07:52
|
Update of /cvsroot/qooxdoo/qooxdoo/source/test/user In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24347/source/test/user Modified Files: Tag: renderer Transport_1.html Log Message: Improved QxRequest object Index: Transport_1.html =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/test/user/Attic/Transport_1.html,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -C2 -d -r1.1.2.6 -r1.1.2.7 *** Transport_1.html 19 Jan 2006 13:37:10 -0000 1.1.2.6 --- Transport_1.html 19 Jan 2006 15:07:44 -0000 1.1.2.7 *************** *** 96,104 **** var req = new QxRequest(val.getLabel()); ! req.addEventListener("complete", function(e) ! { ! this.debug("complete"); ! ! area.setValue(e.getNewValue().getTextContent()); }); --- 96,100 ---- var req = new QxRequest(val.getLabel()); ! req.addEventListener("complete", function(e) { area.setValue(e.getNewValue().getTextContent()); }); |
|
From: Sebastian W. <wp...@us...> - 2006-01-19 14:47:04
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17112/source/script/gui Modified Files: Tag: renderer QxNativeWindow.js Log Message: Minor fixes and enhancements for QxNativeWindow Index: QxNativeWindow.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/gui/Attic/QxNativeWindow.js,v retrieving revision 1.1.2.12 retrieving revision 1.1.2.13 diff -C2 -d -r1.1.2.12 -r1.1.2.13 *** QxNativeWindow.js 17 Jan 2006 16:14:58 -0000 1.1.2.12 --- QxNativeWindow.js 19 Jan 2006 14:46:55 -0000 1.1.2.13 *************** *** 203,207 **** proto._applyPosition = function() { ! if (this._window && !this._window.closed) { this._window.moveTo(this.getLeft(), this.getTop()); }; --- 203,207 ---- proto._applyPosition = function() { ! if (this._window && !this.isClosed()) { this._window.moveTo(this.getLeft(), this.getTop()); }; *************** *** 259,263 **** proto._modifySource = function(propValue, propOldValue, propName) { ! if(this._window && this._window.closed == false) { this._window.location.replace(QxUtil.isValidString(propValue) ? propValue : ("javascript:/" + "/")); }; --- 259,263 ---- proto._modifySource = function(propValue, propOldValue, propName) { ! if(this._window && this.isClosed() == false) { this._window.location.replace(QxUtil.isValidString(propValue) ? propValue : ("javascript:/" + "/")); }; *************** *** 277,281 **** proto.getName = function() { ! if (this._window && !this._window.closed) { try --- 277,281 ---- proto.getName = function() { ! if (this._window && !this.isClosed()) { try *************** *** 332,335 **** --- 332,350 ---- }; + proto.isClosed = function() + { + var vClosed = true; + + try + { + if (this._window) { + vClosed = this._window.closed; + }; + } + catch(ex) {}; + + return vClosed; + }; + proto.close = function() { *************** *** 485,489 **** // focus window if opened ! if (this._window && !this._window.closed) { this.focus(); }; --- 500,504 ---- // focus window if opened ! if (this._window && !this.isClosed()) { this.focus(); }; *************** *** 530,534 **** try { ! if (QxUtil.isValidNumber(this._readyState) && this._isOpened && (!this._window || (this._window && this._window.closed != false))) { if (this.getModal()) { --- 545,549 ---- try { ! if (QxUtil.isValidNumber(this._readyState) && this._isOpened && (!this._window || (this._window && this.isClosed() != false))) { if (this.getModal()) { *************** *** 813,817 **** if (this._window) { ! if (!this._window.closed) { QxDom.removeEventListener(this._window, "load", this.__onload); --- 828,832 ---- if (this._window) { ! if (!this.isClosed()) { QxDom.removeEventListener(this._window, "load", this.__onload); |
|
From: Sebastian W. <wp...@us...> - 2006-01-19 14:47:04
|
Update of /cvsroot/qooxdoo/qooxdoo/source/test/user In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17112/source/test/user Modified Files: Tag: renderer Native_Window_1.html Log Message: Minor fixes and enhancements for QxNativeWindow Index: Native_Window_1.html =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/test/user/Attic/Native_Window_1.html,v retrieving revision 1.1.2.7 retrieving revision 1.1.2.8 diff -C2 -d -r1.1.2.7 -r1.1.2.8 *** Native_Window_1.html 13 Dec 2005 10:04:00 -0000 1.1.2.7 --- Native_Window_1.html 19 Jan 2006 14:46:56 -0000 1.1.2.8 *************** *** 89,92 **** --- 89,94 ---- var l = new QxVerticalBoxLayout; l.setLocation(20, 96); + l.setWidth("auto"); + l.setHeight("auto"); d.add(l); |
|
From: Andreas E. <ec...@us...> - 2006-01-19 13:58:43
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/transport In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31894/source/script/transport Modified Files: Tag: renderer QxRequest.js Log Message: Changed type of data to string Index: QxRequest.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxRequest.js,v retrieving revision 1.1.2.7 retrieving revision 1.1.2.8 diff -C2 -d -r1.1.2.7 -r1.1.2.8 *** QxRequest.js 19 Jan 2006 13:56:09 -0000 1.1.2.7 --- QxRequest.js 19 Jan 2006 13:58:25 -0000 1.1.2.8 *************** *** 50,54 **** QxRequest.addProperty({ name : "method", type : QxConst.TYPEOF_STRING, possibleValues : [ "GET", "POST", "PUT", "HEAD", "DELETE" ], defaultValue : "POST" }); QxRequest.addProperty({ name : "asynchronous", type : QxConst.TYPEOF_BOOLEAN, defaultValue : true }); ! QxRequest.addProperty({ name : "data", type : QxConst.TYPEOF_OBJECT }); QxRequest.addProperty({ name : "username", type : QxConst.TYPEOF_STRING }); QxRequest.addProperty({ name : "password", type : QxConst.TYPEOF_STRING }); --- 50,54 ---- QxRequest.addProperty({ name : "method", type : QxConst.TYPEOF_STRING, possibleValues : [ "GET", "POST", "PUT", "HEAD", "DELETE" ], defaultValue : "POST" }); QxRequest.addProperty({ name : "asynchronous", type : QxConst.TYPEOF_BOOLEAN, defaultValue : true }); ! QxRequest.addProperty({ name : "data", type : QxConst.TYPEOF_STRING }); QxRequest.addProperty({ name : "username", type : QxConst.TYPEOF_STRING }); QxRequest.addProperty({ name : "password", type : QxConst.TYPEOF_STRING }); |
|
From: Sebastian W. <wp...@us...> - 2006-01-19 13:56:22
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/transport In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30866/source/script/transport Modified Files: Tag: renderer QxRequest.js QxResponse.js QxTransport.js QxXmlHttpTransport.js Log Message: Major rework of some internals Index: QxRequest.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxRequest.js,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -C2 -d -r1.1.2.6 -r1.1.2.7 *** QxRequest.js 19 Jan 2006 13:37:10 -0000 1.1.2.6 --- QxRequest.js 19 Jan 2006 13:56:09 -0000 1.1.2.7 *************** *** 53,58 **** QxRequest.addProperty({ name : "username", type : QxConst.TYPEOF_STRING }); QxRequest.addProperty({ name : "password", type : QxConst.TYPEOF_STRING }); ! ! QxRequest.addProperty({ name : "readyState", type : QxConst.TYPEOF_STRING, possibleValues : [ "prepared", "loading", "complete" ], defaultValue : "prepared" }); --- 53,57 ---- QxRequest.addProperty({ name : "username", type : QxConst.TYPEOF_STRING }); QxRequest.addProperty({ name : "password", type : QxConst.TYPEOF_STRING }); ! QxRequest.addProperty({ name : "readyState", type : QxConst.TYPEOF_STRING }); *************** *** 81,85 **** proto.send = function() { - this.debug("sending"); QxRequestQueue.add(this); }; --- 80,83 ---- Index: QxTransport.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxTransport.js,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -C2 -d -r1.1.2.5 -r1.1.2.6 *** QxTransport.js 19 Jan 2006 13:37:10 -0000 1.1.2.5 --- QxTransport.js 19 Jan 2006 13:56:09 -0000 1.1.2.6 *************** *** 34,39 **** QxTarget.call(this); - this.debug("sending"); - this.setRequest(vRequest); this.send(); --- 34,37 ---- *************** *** 53,56 **** --- 51,56 ---- QxTransport.addProperty({ name : "request", type : QxConst.TYPEOF_OBJECT, instance : "QxRequest" }); QxTransport.addProperty({ name : "implementation", type : QxConst.TYPEOF_OBJECT }); + QxTransport.addProperty({ name : "readyState" }); + *************** *** 67,72 **** if (propOldValue) { propOldValue.removeEventListener("complete", this._oncomplete, this); - propOldValue.removeEventListener("changeReadyState", this._onreadystatechange, this); propOldValue.dispose(); --- 67,73 ---- if (propOldValue) { + propOldValue.removeEventListener("prepared", this._onprepared, this); + propOldValue.removeEventListener("loading", this._onloading, this); propOldValue.removeEventListener("complete", this._oncomplete, this); propOldValue.dispose(); *************** *** 84,89 **** propValue.setPassword(vRequest.getPassword()); propValue.addEventListener("complete", this._oncomplete, this); - propValue.addEventListener("changeReadyState", this._onreadystatechange, this); propValue.send(); --- 85,91 ---- propValue.setPassword(vRequest.getPassword()); + propValue.addEventListener("prepared", this._onprepared, this); + propValue.addEventListener("loading", this._onloading, this); propValue.addEventListener("complete", this._oncomplete, this); propValue.send(); *************** *** 93,96 **** --- 95,133 ---- }; + proto._modifyReadyState = function(propValue, propOldValue, propData) + { + var vRequest = this.getRequest(); + + this.debug("readyState [norm]: " + propValue); + + switch(propValue) + { + case "prepared": + break; + + case "loading": + break; + + case "complete": + if (vRequest.hasEventListeners(QxConst.EVENT_TYPE_COMPLETE)) + { + var vImpl = this.getImplementation(); + var vResponse = new QxResponse(); + + vResponse.setStatusCode(vImpl.getStatusCode()); + vResponse.setStatusText(vImpl.getStatusText()); + vResponse.setTextContent(vImpl.getResponseText()); + vResponse.setXmlContent(vImpl.getResponseXml()); + + // TODO: Response Headers + + vRequest.dispatchEvent(new QxDataEvent(QxConst.EVENT_TYPE_COMPLETE, vResponse), true); + }; + + this.setImplementation(null); + }; + + return true; + }; *************** *** 193,241 **** */ ! proto._onreadystatechange = function(e) ! { ! this.debug("readyState [norm]: " + e.getNewValue()); ! ! switch(e.getNewValue()) ! { ! case "prepared": ! break; ! ! case "loading": ! this._onloading(e); ! break; ! ! case "complete": ! this._oncomplete(e); ! break; ! }; }; ! proto._onloading = function(e) ! { ! this.debug("loading"); ! ! }; ! proto._oncomplete = function(e) ! { ! this.debug("complete"); ! ! var vRequest = this.getRequest(); ! ! if (vRequest.hasEventListeners(QxConst.EVENT_TYPE_COMPLETE)) ! { ! var vValues = e.getNewValue(); ! var vResponse = new QxResponse(); ! ! vResponse.setStatusCode(vValues.statusCode); ! vResponse.setStatusMessage(vValues.statusMessage); ! vResponse.setXmlContent(vValues.xmlContent); ! vResponse.setTextContent(vValues.textContent); ! ! vRequest.dispatchEvent(new QxDataEvent(QxConst.EVENT_TYPE_COMPLETE, vResponse), true); ! }; ! ! this.setImplementation(null); }; --- 230,242 ---- */ ! proto._onprepared = function(e) { ! this.setReadyState("prepared"); }; ! proto._onloading = function(e) { ! this.setReadyState("loading"); }; ! proto._oncomplete = function(e) { ! this.setReadyState("complete"); }; Index: QxResponse.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxResponse.js,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** QxResponse.js 19 Jan 2006 12:54:22 -0000 1.1.2.2 --- QxResponse.js 19 Jan 2006 13:56:09 -0000 1.1.2.3 *************** *** 48,52 **** QxResponse.addProperty({ name : "statusCode", type : QxConst.TYPEOF_NUMBER }); ! QxResponse.addProperty({ name : "statusMessage", type : QxConst.TYPEOF_STRING }); QxResponse.addProperty({ name : "textContent", type : QxConst.TYPEOF_STRING }); QxResponse.addProperty({ name : "xmlContent", type : QxConst.TYPEOF_OBJECT }); --- 48,52 ---- QxResponse.addProperty({ name : "statusCode", type : QxConst.TYPEOF_NUMBER }); ! QxResponse.addProperty({ name : "statusText", type : QxConst.TYPEOF_STRING }); QxResponse.addProperty({ name : "textContent", type : QxConst.TYPEOF_STRING }); QxResponse.addProperty({ name : "xmlContent", type : QxConst.TYPEOF_OBJECT }); Index: QxXmlHttpTransport.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxXmlHttpTransport.js,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -C2 -d -r1.1.2.6 -r1.1.2.7 *** QxXmlHttpTransport.js 19 Jan 2006 13:37:10 -0000 1.1.2.6 --- QxXmlHttpTransport.js 19 Jan 2006 13:56:09 -0000 1.1.2.7 *************** *** 150,154 **** The readyState of the current request */ ! QxXmlHttpTransport.addProperty({ name : "readyState", type : QxConst.TYPEOF_STRING, defaultValue : "prepared" }); --- 150,154 ---- The readyState of the current request */ ! QxXmlHttpTransport.addProperty({ name : "readyState", type : QxConst.TYPEOF_STRING }); *************** *** 170,174 **** proto.send = function() { ! this.debug("sending"); var vRequest = this.getRequest(); --- 170,174 ---- proto.send = function() { ! this.setReadyState("prepared"); var vRequest = this.getRequest(); *************** *** 190,214 **** { this.error("Could not load: " + this.getUrl() + ": " + ex); ! this._dispatchCompleteEvent(); }; }; ! proto.dispatchCompleteEvent = function() ! { ! var vRequest = this.getRequest(); ! ! if (this.hasEventListeners(QxConst.EVENT_TYPE_COMPLETE)) ! { ! this.debug("complete"); ! ! this.dispatchEvent(new QxDataEvent(QxConst.EVENT_TYPE_COMPLETE, ! { ! statusCode : vRequest.statusCode, ! statusMessage : vRequest.statusMessage, ! xmlContent : vRequest.responseXML, ! textContent : vRequest.responseText ! }), true); ! }; ! }; --- 190,198 ---- { this.error("Could not load: " + this.getUrl() + ": " + ex); ! this.setReadyState("complete"); }; }; ! *************** *** 230,242 **** case "prepared": this.debug("readyState [norm]: prepared"); break; case "loading": this.debug("readyState [norm]: loading"); break; case "complete": this.debug("readyState [norm]: complete"); ! this.dispatchCompleteEvent(); break; }; --- 214,228 ---- case "prepared": this.debug("readyState [norm]: prepared"); + this.createDispatchEvent("prepared"); break; case "loading": this.debug("readyState [norm]: loading"); + this.createDispatchEvent("loading"); break; case "complete": this.debug("readyState [norm]: complete"); ! this.createDispatchEvent("complete"); break; }; *************** *** 265,272 **** switch(vRequest.readyState) { - case 0: - this.setReadyState("prepared"); - break; - case 1: case 2: --- 251,254 ---- *************** *** 459,463 **** be made available to the caller. */ ! proto.getResponseXML = function(vPartial) { if ((vPartial ? 3 : 4) <= this.getReadyState()) { --- 441,445 ---- be made available to the caller. */ ! proto.getResponseXml = function(vPartial) { if ((vPartial ? 3 : 4) <= this.getReadyState()) { |
|
From: Sebastian W. <wp...@us...> - 2006-01-19 13:37:46
|
Update of /cvsroot/qooxdoo/qooxdoo/source/test/user In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24022/source/test/user Modified Files: Tag: renderer Transport_1.html Log Message: Improved readyState handling, added more debug output Index: Transport_1.html =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/test/user/Attic/Transport_1.html,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -C2 -d -r1.1.2.5 -r1.1.2.6 *** Transport_1.html 19 Jan 2006 12:54:22 -0000 1.1.2.5 --- Transport_1.html 19 Jan 2006 13:37:10 -0000 1.1.2.6 *************** *** 55,58 **** --- 55,59 ---- cm1.add(new QxListItem("data/loadByName/Lisbeth.xml")); cm1.add(new QxListItem("data/loadByName/Paul.xml")); + cm1.add(new QxListItem("data/loadByName/404.xml")); cm1.setSelected(cm1.getList().getFirstChild()); cm1.setWidth(200); *************** *** 97,101 **** req.addEventListener("complete", function(e) { ! this.debug("Complete!"); --- 98,102 ---- req.addEventListener("complete", function(e) { ! this.debug("complete"); |
|
From: Sebastian W. <wp...@us...> - 2006-01-19 13:37:46
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/transport In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24022/source/script/transport Modified Files: Tag: renderer QxRequest.js QxTransport.js QxXmlHttpTransport.js Log Message: Improved readyState handling, added more debug output Index: QxRequest.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxRequest.js,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -C2 -d -r1.1.2.5 -r1.1.2.6 *** QxRequest.js 19 Jan 2006 12:54:22 -0000 1.1.2.5 --- QxRequest.js 19 Jan 2006 13:37:10 -0000 1.1.2.6 *************** *** 81,85 **** proto.send = function() { ! this.debug("Sending..."); QxRequestQueue.add(this); }; --- 81,85 ---- proto.send = function() { ! this.debug("sending"); QxRequestQueue.add(this); }; Index: QxTransport.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxTransport.js,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -C2 -d -r1.1.2.4 -r1.1.2.5 *** QxTransport.js 19 Jan 2006 10:59:40 -0000 1.1.2.4 --- QxTransport.js 19 Jan 2006 13:37:10 -0000 1.1.2.5 *************** *** 34,38 **** QxTarget.call(this); ! this.debug("Sending..."); this.setRequest(vRequest); --- 34,38 ---- QxTarget.call(this); ! this.debug("sending"); this.setRequest(vRequest); *************** *** 68,71 **** --- 68,74 ---- { propOldValue.removeEventListener("complete", this._oncomplete, this); + propOldValue.removeEventListener("changeReadyState", this._onreadystatechange, this); + + propOldValue.dispose(); }; *************** *** 82,85 **** --- 85,89 ---- propValue.addEventListener("complete", this._oncomplete, this); + propValue.addEventListener("changeReadyState", this._onreadystatechange, this); propValue.send(); *************** *** 189,195 **** */ proto._oncomplete = function(e) { ! this.debug("Complete!"); var vRequest = this.getRequest(); --- 193,225 ---- */ + proto._onreadystatechange = function(e) + { + this.debug("readyState [norm]: " + e.getNewValue()); + + switch(e.getNewValue()) + { + case "prepared": + break; + + case "loading": + this._onloading(e); + break; + + case "complete": + this._oncomplete(e); + break; + }; + }; + + proto._onloading = function(e) + { + this.debug("loading"); + + + }; + proto._oncomplete = function(e) { ! this.debug("complete"); var vRequest = this.getRequest(); *************** *** 207,209 **** --- 237,241 ---- vRequest.dispatchEvent(new QxDataEvent(QxConst.EVENT_TYPE_COMPLETE, vResponse), true); }; + + this.setImplementation(null); }; Index: QxXmlHttpTransport.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxXmlHttpTransport.js,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -C2 -d -r1.1.2.5 -r1.1.2.6 *** QxXmlHttpTransport.js 19 Jan 2006 12:54:22 -0000 1.1.2.5 --- QxXmlHttpTransport.js 19 Jan 2006 13:37:10 -0000 1.1.2.6 *************** *** 51,54 **** --- 51,55 ---- + /* --------------------------------------------------------------------------- *************** *** 119,149 **** Target url to issue the request to */ ! QxXmlHttpTransport.addProperty({name : "url", type: QxConst.TYPEOF_STRING }); /*! Determines what type of request to issue */ ! QxXmlHttpTransport.addProperty({name : "method", type : QxConst.TYPEOF_STRING }); /*! Set the request to asynchronous */ ! QxXmlHttpTransport.addProperty({name : "asynchronous", type : QxConst.TYPEOF_BOOLEAN }); /*! Set the data to be sent via this request */ ! QxXmlHttpTransport.addProperty({name : "data", type : QxConst.TYPEOF_STRING }); /*! Username to use for HTTP authentication */ ! QxXmlHttpTransport.addProperty({name : "username", type: QxConst.TYPEOF_STRING }); /*! Password to use for HTTP authentication */ ! QxXmlHttpTransport.addProperty({name : "password", type: QxConst.TYPEOF_STRING }); --- 120,154 ---- Target url to issue the request to */ ! QxXmlHttpTransport.addProperty({ name : "url", type: QxConst.TYPEOF_STRING }); /*! Determines what type of request to issue */ ! QxXmlHttpTransport.addProperty({ name : "method", type : QxConst.TYPEOF_STRING }); /*! Set the request to asynchronous */ ! QxXmlHttpTransport.addProperty({ name : "asynchronous", type : QxConst.TYPEOF_BOOLEAN }); /*! Set the data to be sent via this request */ ! QxXmlHttpTransport.addProperty({ name : "data", type : QxConst.TYPEOF_STRING }); /*! Username to use for HTTP authentication */ ! QxXmlHttpTransport.addProperty({ name : "username", type: QxConst.TYPEOF_STRING }); /*! Password to use for HTTP authentication */ ! QxXmlHttpTransport.addProperty({ name : "password", type: QxConst.TYPEOF_STRING }); + /*! + The readyState of the current request + */ + QxXmlHttpTransport.addProperty({ name : "readyState", type : QxConst.TYPEOF_STRING, defaultValue : "prepared" }); *************** *** 165,169 **** proto.send = function() { ! this.debug("Sending..."); var vRequest = this.getRequest(); --- 170,174 ---- proto.send = function() { ! this.debug("sending"); var vRequest = this.getRequest(); *************** *** 178,184 **** }; ! vRequest.send(null); }; --- 183,247 ---- }; ! try ! { ! vRequest.send(null); ! } ! catch(ex) ! { ! this.error("Could not load: " + this.getUrl() + ": " + ex); ! this._dispatchCompleteEvent(); ! }; }; + proto.dispatchCompleteEvent = function() + { + var vRequest = this.getRequest(); + + if (this.hasEventListeners(QxConst.EVENT_TYPE_COMPLETE)) + { + this.debug("complete"); + + this.dispatchEvent(new QxDataEvent(QxConst.EVENT_TYPE_COMPLETE, + { + statusCode : vRequest.statusCode, + statusMessage : vRequest.statusMessage, + xmlContent : vRequest.responseXML, + textContent : vRequest.responseText + }), true); + }; + }; + + + + + + + + /* + --------------------------------------------------------------------------- + MODIFIER + --------------------------------------------------------------------------- + */ + + proto._modifyReadyState = function(propValue, propOldValue, propData) + { + switch(propValue) + { + case "prepared": + this.debug("readyState [norm]: prepared"); + break; + + case "loading": + this.debug("readyState [norm]: loading"); + break; + + case "complete": + this.debug("readyState [norm]: complete"); + this.dispatchCompleteEvent(); + break; + }; + + return true; + }; *************** *** 198,235 **** var vRequest = this.getRequest(); ! this.debug("_onreadystatechange: " + vRequest.readyState); switch(vRequest.readyState) { ! case 1: break; ! ! case 2: - break; - - case 3: break; - - - case 4: - if (this.hasEventListeners(QxConst.EVENT_TYPE_COMPLETE)) - { - this.debug("Complete!"); - - this.dispatchEvent(new QxDataEvent(QxConst.EVENT_TYPE_COMPLETE, - { - statusCode : vRequest.statusCode, - statusMessage : vRequest.statusMessage, - xmlContent : vRequest.responseXML, - textContent : vRequest.responseText - }), true); - }; }; - - - - }; --- 261,282 ---- var vRequest = this.getRequest(); ! this.debug("readyState [impl]: " + vRequest.readyState); switch(vRequest.readyState) { ! case 0: ! this.setReadyState("prepared"); break; ! ! case 1: case 2: case 3: + this.setReadyState("loading"); + break; + + case 4: + this.setReadyState("complete"); break; }; }; *************** *** 240,244 **** - /* --------------------------------------------------------------------------- --- 287,290 ---- |
|
From: Sebastian W. <wp...@us...> - 2006-01-19 12:54:49
|
Update of /cvsroot/qooxdoo/qooxdoo/source/test/user In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5133/source/test/user Modified Files: Tag: renderer Transport_1.html Log Message: Initial real xmlhttp done Index: Transport_1.html =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/test/user/Attic/Transport_1.html,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -C2 -d -r1.1.2.4 -r1.1.2.5 *** Transport_1.html 19 Jan 2006 10:59:40 -0000 1.1.2.4 --- Transport_1.html 19 Jan 2006 12:54:22 -0000 1.1.2.5 *************** *** 51,54 **** --- 51,61 ---- cm1.add(new QxListItem("data/items/1.xml")); cm1.add(new QxListItem("data/items/2.xml")); + cm1.add(new QxListItem("data/loadByName/Anita.xml")); + cm1.add(new QxListItem("data/loadByName/Harald.xml")); + cm1.add(new QxListItem("data/loadByName/Lisbeth.xml")); + cm1.add(new QxListItem("data/loadByName/Paul.xml")); + cm1.setSelected(cm1.getList().getFirstChild()); + cm1.setWidth(200); + cm1.addEventListener("changeSelected", upd); hlay.add(cm1); *************** *** 56,59 **** --- 63,67 ---- var btn = new QxButton("Send", "icons/16/apply.png"); + btn.addEventListener("execute", upd); hlay.add(btn); *************** *** 74,78 **** ! btn.addEventListener("execute", function(e) { var val = cm1.getSelected(); --- 82,89 ---- ! ! ! ! function upd(e) { var val = cm1.getSelected(); *************** *** 93,97 **** req.send(); ! }); }; </script> --- 104,108 ---- req.send(); ! }; }; </script> |
|
From: Sebastian W. <wp...@us...> - 2006-01-19 12:54:48
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/widgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5133/source/script/widgets Modified Files: Tag: renderer QxComboBox.js Log Message: Initial real xmlhttp done Index: QxComboBox.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxComboBox.js,v retrieving revision 1.9.2.38 retrieving revision 1.9.2.39 diff -C2 -d -r1.9.2.38 -r1.9.2.39 *** QxComboBox.js 16 Jan 2006 16:11:56 -0000 1.9.2.38 --- QxComboBox.js 19 Jan 2006 12:54:22 -0000 1.9.2.39 *************** *** 154,157 **** --- 154,161 ---- */ + proto.getManager = function() { + return this._manager; + }; + proto.getPopup = function() { return this._popup; |
|
From: Sebastian W. <wp...@us...> - 2006-01-19 12:54:48
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/transport In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5133/source/script/transport Modified Files: Tag: renderer QxRequest.js QxResponse.js QxXmlHttpTransport.js Log Message: Initial real xmlhttp done Index: QxRequest.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxRequest.js,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -C2 -d -r1.1.2.4 -r1.1.2.5 *** QxRequest.js 19 Jan 2006 10:59:40 -0000 1.1.2.4 --- QxRequest.js 19 Jan 2006 12:54:22 -0000 1.1.2.5 *************** *** 48,52 **** QxRequest.addProperty({ name : "url", type : QxConst.TYPEOF_STRING }); ! QxRequest.addProperty({ name : "method", type : QxConst.TYPEOF_STRING, possibleValues : [ "GET", "POST", "PUT", "HEAD", "DELETE" ] }); QxRequest.addProperty({ name : "asynchronous", type : QxConst.TYPEOF_BOOLEAN, defaultValue : true }); QxRequest.addProperty({ name : "data", type : QxConst.TYPEOF_OBJECT }); --- 48,52 ---- QxRequest.addProperty({ name : "url", type : QxConst.TYPEOF_STRING }); ! QxRequest.addProperty({ name : "method", type : QxConst.TYPEOF_STRING, possibleValues : [ "GET", "POST", "PUT", "HEAD", "DELETE" ], defaultValue : "POST" }); QxRequest.addProperty({ name : "asynchronous", type : QxConst.TYPEOF_BOOLEAN, defaultValue : true }); QxRequest.addProperty({ name : "data", type : QxConst.TYPEOF_OBJECT }); Index: QxResponse.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxResponse.js,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** QxResponse.js 18 Jan 2006 13:28:11 -0000 1.1.2.1 --- QxResponse.js 19 Jan 2006 12:54:22 -0000 1.1.2.2 *************** *** 50,52 **** QxResponse.addProperty({ name : "statusMessage", type : QxConst.TYPEOF_STRING }); QxResponse.addProperty({ name : "textContent", type : QxConst.TYPEOF_STRING }); ! QxResponse.addProperty({ name : "xmlContent", type : QxConst.TYPEOF_STRING }); --- 50,52 ---- QxResponse.addProperty({ name : "statusMessage", type : QxConst.TYPEOF_STRING }); QxResponse.addProperty({ name : "textContent", type : QxConst.TYPEOF_STRING }); ! QxResponse.addProperty({ name : "xmlContent", type : QxConst.TYPEOF_OBJECT }); Index: QxXmlHttpTransport.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxXmlHttpTransport.js,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -C2 -d -r1.1.2.4 -r1.1.2.5 *** QxXmlHttpTransport.js 19 Jan 2006 10:59:40 -0000 1.1.2.4 --- QxXmlHttpTransport.js 19 Jan 2006 12:54:22 -0000 1.1.2.5 *************** *** 34,38 **** QxTarget.call(this); ! this._req = QxXmlHttpTransport.createRequestObject(); }; --- 34,41 ---- QxTarget.call(this); ! this._req = QxXmlHttpTransport.createRequestObject(); ! ! var o = this; ! this._req.onreadystatechange = function(e) { return o._onreadystatechange(e) }; }; *************** *** 121,130 **** Determines what type of request to issue */ ! QxXmlHttpTransport.addProperty({name : "method", type : QxConst.TYPEOF_STRING, defaultValue: "post" }); /*! Set the request to asynchronous */ ! QxXmlHttpTransport.addProperty({name : "asynchronous", type : QxConst.TYPEOF_BOOLEAN, defaultValue: true }); /*! --- 124,133 ---- Determines what type of request to issue */ ! QxXmlHttpTransport.addProperty({name : "method", type : QxConst.TYPEOF_STRING }); /*! Set the request to asynchronous */ ! QxXmlHttpTransport.addProperty({name : "asynchronous", type : QxConst.TYPEOF_BOOLEAN }); /*! *************** *** 148,151 **** --- 151,156 ---- + + /* --------------------------------------------------------------------------- *************** *** 162,177 **** this.debug("Sending..."); ! if (this.hasEventListeners(QxConst.EVENT_TYPE_COMPLETE)) { ! this.debug("Complete!"); ! this.dispatchEvent(new QxDataEvent(QxConst.EVENT_TYPE_COMPLETE, ! { ! statusCode : 404, ! statusMessage : "Not Found", ! xmlContent : "<xml>foo</xml>", ! textContent : "foo" ! }), true); }; }; --- 167,235 ---- this.debug("Sending..."); ! var vRequest = this.getRequest(); ! ! if (this.getUsername()) { ! vRequest.open(this.getMethod(), this.getUrl(), this.getAsynchronous(), this.getUsername(), this.getPassword()); ! } ! else ! { ! vRequest.open(this.getMethod(), this.getUrl(), this.getAsynchronous()); ! }; ! ! vRequest.send(null); ! }; ! ! ! ! ! ! ! ! ! /* ! --------------------------------------------------------------------------- ! EVENT HANDLER ! --------------------------------------------------------------------------- ! */ ! ! proto._onreadystatechange = function(e) ! { ! var vRequest = this.getRequest(); ! ! this.debug("_onreadystatechange: " + vRequest.readyState); ! ! switch(vRequest.readyState) ! { ! case 1: ! break; ! ! case 2: ! break; ! ! ! case 3: ! break; ! ! ! case 4: ! if (this.hasEventListeners(QxConst.EVENT_TYPE_COMPLETE)) ! { ! this.debug("Complete!"); ! ! this.dispatchEvent(new QxDataEvent(QxConst.EVENT_TYPE_COMPLETE, ! { ! statusCode : vRequest.statusCode, ! statusMessage : vRequest.statusMessage, ! xmlContent : vRequest.responseXML, ! textContent : vRequest.responseText ! }), true); ! }; }; + + + + }; *************** *** 180,183 **** --- 238,244 ---- + + + /* --------------------------------------------------------------------------- |
|
From: Sebastian W. <wp...@us...> - 2006-01-19 12:31:42
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/widgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29801/source/script/widgets Modified Files: Tag: renderer QxPopup.js QxWindow.js Log Message: Again reworked zIndex to fix some popup vs. window conflicts Index: QxPopup.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxPopup.js,v retrieving revision 1.3.2.30 retrieving revision 1.3.2.31 diff -C2 -d -r1.3.2.30 -r1.3.2.31 *** QxPopup.js 17 Jan 2006 13:47:13 -0000 1.3.2.30 --- QxPopup.js 19 Jan 2006 12:31:34 -0000 1.3.2.31 *************** *** 54,59 **** QxPopup.changeProperty({ name : "display", type : QxConst.TYPEOF_BOOLEAN, defaultValue : false }); - proto._minZIndex = 1e6; - proto._showTimeStamp = new Date(0); proto._hideTimeStamp = new Date(0); --- 54,57 ---- *************** *** 139,142 **** --- 137,142 ---- */ + proto._minZIndex = 1e6; + proto.bringToFront = function() { *************** *** 154,161 **** { var vPopups = QxUtil.convertObjectValuesToArray(QxPopupManager.getAll()); - var vWindows = QxUtil.convertObjectValuesToArray(QxWindowManager.getAll()); var vMenus = QxUtil.convertObjectValuesToArray(QxMenuManager.getAll()); ! var vAll = vPopups.concat(vWindows, vMenus).sort(QxCompare.byZIndex); var vLength = vAll.length; var vIndex = this._minZIndex; --- 154,160 ---- { var vPopups = QxUtil.convertObjectValuesToArray(QxPopupManager.getAll()); var vMenus = QxUtil.convertObjectValuesToArray(QxMenuManager.getAll()); ! var vAll = vPopups.concat(vMenus).sort(QxCompare.byZIndex); var vLength = vAll.length; var vIndex = this._minZIndex; Index: QxWindow.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxWindow.js,v retrieving revision 1.25.2.63 retrieving revision 1.25.2.64 diff -C2 -d -r1.25.2.63 -r1.25.2.64 *** QxWindow.js 17 Jan 2006 13:47:13 -0000 1.25.2.63 --- QxWindow.js 19 Jan 2006 12:31:34 -0000 1.25.2.64 *************** *** 367,370 **** --- 367,371 ---- + /* --------------------------------------------------------------------------- *************** *** 432,435 **** --- 433,441 ---- + + + + + /* --------------------------------------------------------------------------- *************** *** 468,471 **** --- 474,499 ---- + /* + --------------------------------------------------------------------------- + ZIndex Positioning + --------------------------------------------------------------------------- + */ + + proto._minZIndex = 1e5; + + proto._sendTo = function() + { + var vAll = QxUtil.convertObjectValuesToArray(QxWindowManager.getAll()).sort(QxCompare.byZIndex); + var vLength = vAll.length; + var vIndex = this._minZIndex; + + for (var i=0; i<vLength; i++) { + vAll[i].setZIndex(vIndex++); + }; + }; + + + + |
|
From: Sebastian W. <wp...@us...> - 2006-01-19 12:06:45
|
Update of /cvsroot/qooxdoo/qooxdoo/tools In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20167/tools Modified Files: Tag: renderer config.sh Log Message: Minor fix Index: config.sh =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/tools/config.sh,v retrieving revision 1.16.2.96 retrieving revision 1.16.2.97 diff -C2 -d -r1.16.2.96 -r1.16.2.97 *** config.sh 18 Jan 2006 13:29:26 -0000 1.16.2.96 --- config.sh 19 Jan 2006 12:06:36 -0000 1.16.2.97 *************** *** 285,287 **** L="$L transport/QxXmlHttpTransport" ! L="$L transport/QxIFrameTransport" --- 285,287 ---- L="$L transport/QxXmlHttpTransport" ! L="$L transport/QxIframeTransport" |
|
From: Sebastian W. <wp...@us...> - 2006-01-19 10:59:57
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/transport In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28730/source/script/transport Modified Files: Tag: renderer QxRequest.js QxRequestQueue.js QxTransport.js QxXmlHttpTransport.js Log Message: More major enhancements to new transport layer Index: QxRequest.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxRequest.js,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -C2 -d -r1.1.2.3 -r1.1.2.4 *** QxRequest.js 18 Jan 2006 18:36:40 -0000 1.1.2.3 --- QxRequest.js 19 Jan 2006 10:59:40 -0000 1.1.2.4 *************** *** 79,83 **** */ ! proto.send = function() { QxRequestQueue.add(this); }; --- 79,85 ---- */ ! proto.send = function() ! { ! this.debug("Sending..."); QxRequestQueue.add(this); }; Index: QxTransport.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxTransport.js,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -C2 -d -r1.1.2.3 -r1.1.2.4 *** QxTransport.js 18 Jan 2006 18:32:13 -0000 1.1.2.3 --- QxTransport.js 19 Jan 2006 10:59:40 -0000 1.1.2.4 *************** *** 30,42 **** ************************************************************************ */ ! function QxTransport() { QxTarget.call(this); ! }; ! QxTransport.extend(QxTarget, "QxXmlHttpTransport"); --- 30,44 ---- ************************************************************************ */ ! function QxTransport(vRequest) { QxTarget.call(this); ! this.debug("Sending..."); + this.setRequest(vRequest); + this.send(); }; ! QxTransport.extend(QxTarget, "QxTransport"); *************** *** 49,53 **** --- 51,91 ---- */ + QxTransport.addProperty({ name : "request", type : QxConst.TYPEOF_OBJECT, instance : "QxRequest" }); + QxTransport.addProperty({ name : "implementation", type : QxConst.TYPEOF_OBJECT }); + + + + + /* + --------------------------------------------------------------------------- + MODIFIER + --------------------------------------------------------------------------- + */ + + proto._modifyImplementation = function(propValue, propOldValue, propData) + { + if (propOldValue) + { + propOldValue.removeEventListener("complete", this._oncomplete, this); + }; + + if (propValue) + { + var vRequest = this.getRequest(); + + propValue.setUrl(vRequest.getUrl()); + propValue.setMethod(vRequest.getMethod()); + propValue.setAsynchronous(vRequest.getAsynchronous()); + propValue.setData(vRequest.getData()); + propValue.setUsername(vRequest.getUsername()); + propValue.setPassword(vRequest.getPassword()); + + propValue.addEventListener("complete", this._oncomplete, this); + propValue.send(); + }; + + return true; + }; *************** *** 62,94 **** */ ! proto._typesOrder = [ "QxXmlHttpTransport", "QxIframeTransport" ]; ! proto._typesReady = false; ! proto._typesAvailable = {}; ! proto._typesSupported = {}; ! proto.registerType = function(vClass, vId) { ! this._typesAvailable[vId] = vClass; }; ! proto._typesInit = function() { ! if (this._typesReady) { return; }; ! for (var vId in this._typesAvailable) { ! vTransporter = this._typesAvailable[vId]; ! if (vTransporter.isSupported()) { ! this._typesSupported[vId] = vTransporter; }; }; ! this._typesReady = true; ! if (QxUtil.isObjectEmpty(this._typesSupported)) { throw new Error("No supported transport types were found!"); }; --- 100,132 ---- */ ! QxTransport.typesOrder = [ "QxXmlHttpTransport", "QxIframeTransport" ]; ! QxTransport.typesReady = false; ! QxTransport.typesAvailable = {}; ! QxTransport.typesSupported = {}; ! QxTransport.registerType = function(vClass, vId) { ! QxTransport.typesAvailable[vId] = vClass; }; ! QxTransport.initTypes = function() { ! if (QxTransport.typesReady) { return; }; ! for (var vId in QxTransport.typesAvailable) { ! vTransporterImpl = QxTransport.typesAvailable[vId]; ! if (vTransporterImpl.isSupported()) { ! QxTransport.typesSupported[vId] = vTransporterImpl; }; }; ! QxTransport.typesReady = true; ! if (QxUtil.isObjectEmpty(QxTransport.typesSupported)) { throw new Error("No supported transport types were found!"); }; *************** *** 108,117 **** */ ! proto.send = function(vRequest) { ! this._typesInit(); ! var vUsage = this._typesOrder; ! var vAvailable = this._typesAvailable; var vTransportImpl; var vTransport; --- 146,155 ---- */ ! proto.send = function() { ! QxTransport.initTypes(); ! var vUsage = QxTransport.typesOrder; ! var vAvailable = QxTransport.typesAvailable; var vTransportImpl; var vTransport; *************** *** 125,141 **** try { ! vTransport = new vTransportImpl(); ! ! vTransport.setUrl(vRequest.getUrl()); ! vTransport.setMethod(vRequest.getMethod()); ! vTransport.setAsynchronous(vRequest.getAsynchronous()); ! vTransport.setData(vRequest.getData()); ! vTransport.setUsername(vRequest.getUsername()); ! vTransport.setPassword(vRequest.getPassword()); ! ! vTransport.addEventListener("complete", this._oncomplete, this); ! ! vTransport.send(); ! return true; } --- 163,167 ---- try { ! this.setImplementation(new vTransportImpl); return true; } *************** *** 159,165 **** /* --------------------------------------------------------------------------- ! SINGLETON INSTANCE --------------------------------------------------------------------------- */ ! QxTransport = new QxTransport; --- 185,209 ---- /* --------------------------------------------------------------------------- ! EVENT HANDLER --------------------------------------------------------------------------- */ ! proto._oncomplete = function(e) ! { ! this.debug("Complete!"); ! ! var vRequest = this.getRequest(); ! ! if (vRequest.hasEventListeners(QxConst.EVENT_TYPE_COMPLETE)) ! { ! var vValues = e.getNewValue(); ! var vResponse = new QxResponse(); ! ! vResponse.setStatusCode(vValues.statusCode); ! vResponse.setStatusMessage(vValues.statusMessage); ! vResponse.setXmlContent(vValues.xmlContent); ! vResponse.setTextContent(vValues.textContent); ! ! vRequest.dispatchEvent(new QxDataEvent(QxConst.EVENT_TYPE_COMPLETE, vResponse), true); ! }; ! }; Index: QxXmlHttpTransport.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxXmlHttpTransport.js,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -C2 -d -r1.1.2.3 -r1.1.2.4 *** QxXmlHttpTransport.js 18 Jan 2006 18:32:53 -0000 1.1.2.3 --- QxXmlHttpTransport.js 19 Jan 2006 10:59:40 -0000 1.1.2.4 *************** *** 30,39 **** ************************************************************************ */ ! function QxXmlHttpTransport(vRequest) { QxTarget.call(this); this._req = QxXmlHttpTransport.createRequestObject(); - this.send(); }; --- 30,38 ---- ************************************************************************ */ ! function QxXmlHttpTransport() { QxTarget.call(this); this._req = QxXmlHttpTransport.createRequestObject(); }; *************** *** 94,98 **** }; - QxXmlHttpTransport.createNativeRequestObject = function() { return new XMLHttpRequest; --- 93,96 ---- *************** *** 163,166 **** --- 161,177 ---- { this.debug("Sending..."); + + if (this.hasEventListeners(QxConst.EVENT_TYPE_COMPLETE)) + { + this.debug("Complete!"); + + this.dispatchEvent(new QxDataEvent(QxConst.EVENT_TYPE_COMPLETE, + { + statusCode : 404, + statusMessage : "Not Found", + xmlContent : "<xml>foo</xml>", + textContent : "foo" + }), true); + }; }; Index: QxRequestQueue.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/transport/Attic/QxRequestQueue.js,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** QxRequestQueue.js 18 Jan 2006 14:56:44 -0000 1.1.2.2 --- QxRequestQueue.js 19 Jan 2006 10:59:40 -0000 1.1.2.3 *************** *** 68,72 **** { // DISCUSS: How to support concurrent requests? ! QxTransport.send(this._queue.shift()); if (this._queue.length === 0) { --- 68,72 ---- { // DISCUSS: How to support concurrent requests? ! var t = new QxTransport(this._queue.shift()); if (this._queue.length === 0) { |
|
From: Sebastian W. <wp...@us...> - 2006-01-19 10:59:56
|
Update of /cvsroot/qooxdoo/qooxdoo/source/test/user In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28730/source/test/user Modified Files: Tag: renderer Transport_1.html Log Message: More major enhancements to new transport layer Index: Transport_1.html =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/test/user/Attic/Transport_1.html,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -C2 -d -r1.1.2.3 -r1.1.2.4 *** Transport_1.html 18 Jan 2006 18:37:18 -0000 1.1.2.3 --- Transport_1.html 19 Jan 2006 10:59:40 -0000 1.1.2.4 *************** *** 86,91 **** req.addEventListener("complete", function(e) { ! this.debug("Data comes back"); ! //area.setValue(e.getNewValue().getTextContent()); }); --- 86,93 ---- req.addEventListener("complete", function(e) { ! this.debug("Complete!"); ! ! ! area.setValue(e.getNewValue().getTextContent()); }); |