[Xmpp4js-commit] SF.net SVN: xmpp4js: [719] trunk/src/main/javascript/transport
Status: Beta
Brought to you by:
h-iverson
From: <h-i...@us...> - 2008-07-05 05:06:02
|
Revision: 719 http://xmpp4js.svn.sourceforge.net/xmpp4js/?rev=719&view=rev Author: h-iverson Date: 2008-07-04 22:05:59 -0700 (Fri, 04 Jul 2008) Log Message: ----------- put open requests into base Modified Paths: -------------- trunk/src/main/javascript/transport/BOSH.js trunk/src/main/javascript/transport/Base.js trunk/src/main/javascript/transport/Script.js.js Modified: trunk/src/main/javascript/transport/BOSH.js =================================================================== --- trunk/src/main/javascript/transport/BOSH.js 2008-07-05 04:52:49 UTC (rev 718) +++ trunk/src/main/javascript/transport/BOSH.js 2008-07-05 05:05:59 UTC (rev 719) @@ -48,12 +48,6 @@ */ this.xhr = this.createXhr(); - /** - * The number of open XHR requests. Used for polling. - * @private - */ - this.openRequestCount = 0; - var superConfig = config; Xmpp4Js.Transport.BOSH.superclass.constructor.call( this, superConfig ); Modified: trunk/src/main/javascript/transport/Base.js =================================================================== --- trunk/src/main/javascript/transport/Base.js 2008-07-05 04:52:49 UTC (rev 718) +++ trunk/src/main/javascript/transport/Base.js 2008-07-05 05:05:59 UTC (rev 719) @@ -133,6 +133,12 @@ */ this.hold = null; + /** + * The number of open XHR requests. Used for polling. + * @private + */ + this.openRequestCount = 0; + var superConfig = config; Modified: trunk/src/main/javascript/transport/Script.js.js =================================================================== --- trunk/src/main/javascript/transport/Script.js.js 2008-07-05 04:52:49 UTC (rev 718) +++ trunk/src/main/javascript/transport/Script.js.js 2008-07-05 05:05:59 UTC (rev 719) @@ -36,6 +36,15 @@ * sends empty body if both are empty */ Xmpp4Js.Transport.Script = function(config) { + + /** + * @private + * @type String + */ + this.endpoint = config.endpoint; + + var superConfig = config; + Xmpp4Js.Transport.Script.superclass.constructor.call( this, config ); } @@ -57,7 +66,7 @@ this.prepareWrite( packetNode ); // TODO check for max length constraints in browsers - var requestUrl = "http://"+this.server+":"+this.port+"/"+this.endpoint+"?body="+xml; + var requestUrl = this.endpoint+"?body="+xml; var scriptElem = document.createElement( "script" ); scriptElem.setAttribute( "type", "text/javascript" ); scriptElem.setAttribute( "src", requestUrl ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |