| 779 | | messages[i].clientId = this._cometd.clientId; |
| 780 | | messages[i].id = ""+this._cometd.messageId++; |
| 781 | | messages[i]=this._cometd._extendOut(messages[i]); |
| | 785 | buffer[bigCnt][smallCnt] = messages[i]; |
| | 786 | buffer[bigCnt][smallCnt].clientId = this._cometd.clientId; |
| | 787 | buffer[bigCnt][smallCnt].id = ""+this._cometd.messageId++; |
| | 788 | buffer[bigCnt][smallCnt]=this._cometd._extendOut(buffer[bigCnt][smallCnt]); |
| | 789 | smallCnt++; |
| | 790 | if ( dojox.dtl.filter.strings.urlencode(dojo.toJson( buffer[bigCnt] )).length > (dojo.isIE ? 1800 : 1000000) ) { |
| | 791 | smallCnt = 0; |
| | 792 | bigCnt++; |
| | 793 | buffer[bigCnt] = new Array(); |
| | 794 | } |
| | 795 | } |
| | 796 | for(var i=0; i<buffer.length; i++){ |
| | 797 | var bindArgs = { |
| | 798 | url: this._cometd.url||dojo.config["cometdRoot"], |
| | 799 | load: dojo.hitch(this._cometd, "deliver"), |
| | 800 | callbackParamName: "jsonp", |
| | 801 | content: { message: dojo.toJson( buffer[i] ) } |
| | 802 | }; |
| | 803 | ret = dojo.io.script.get(bindArgs); |