Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #321
    Ext User
    Join Date
    Sep 2008
    Posts
    1
    Vote Rating
    0
    mpereira is on a distinguished road

      0  

    Default Timeout issue

    Timeout issue


    I'm having a strange problem that seems to be an aborted conection by a timeout.
    I'm using LiveGrid on a grid with 400+ entries. When I'm scrolling down these entries and a request is made for more data, sometimes an error occurs and the grid resets (goes back to the beginning). The timeout is set to 30 seconds, but the reset occurs in less time.
    This is not a server issue as I can see the correct response on Fiddler (HTTP Debugger). This means that the response arrives in time. Debugging ext-base.js I can tell the following:


    --> On a normal request:
    1. handleReadyState function is called
    2. POST is made
    3. handleTransactionResponse function is called
    4. releaseObject function is called
    --> On a bugged request:
    1. handleReadyState function is called
    2. POST is made
    3. abort function is called from window.setTimeout
    4. handleTransactionResponse function is called
    5. releaseObject function is called
    This error occurs randomically and I have no idea of what is happening! Any ideas??

  2. #322
    Ext User
    Join Date
    Sep 2008
    Posts
    7
    Vote Rating
    0
    changhua is on a distinguished road

      0  

    Default


    I came up with my own solution and it seems to work under ext 2.2.
    It's a modification from MemoryProxy.

    HTML Code:
    MyMemoryProxy = function(data, root, sortingFunctions){
        MyMemoryProxy.superclass.constructor.call(this);
        this.data = data;
        this.root = root;
        this.sortingFunctions = sortingFunctions;
        this.sortedData = {};
    };
    
    Ext.extend(MyMemoryProxy, Ext.data.DataProxy, {
    
        load : function(params, reader, callback, scope, arg){
            params = params || {};
    
            // possible params: start, limit, sort, dir
            
            var tmpData = { version: 1, total: 0 };
            tmpData[this.root] = [];
    
            var srcArr = this.data[this.root], destArr = tmpData[this.root], n, i;
            tmpData.total = srcArr.length;
    
            var field = params.sort;
            if ( !this.sortedData[field] ) {
                var arr = [];
                for ( i=0; i<srcArr.length; i++ )
                    arr.push( srcArr[i] );
                if ( this.sortingFunctions && this.sortingFunctions[field] ) {
                    arr.sort( this.sortingFunctions[field] );
                }
                else {
                    arr.sort( 
                            function(a,b) {
                                if ( a[field]<b[field] )
                                    return -1;
                                else if ( a[field]>b[field] )
                                    return 1;
                                else
                                    return 0;
                        });
                }
                this.sortedData[field] = arr;
            }
            
            srcArr = this.sortedData[field];
            
            if ( params.dir == "ASC" ) {
                n = Math.min( params.start+params.limit, tmpData.total );
                for ( i=params.start; i<n; i++ ) {
                    destArr.push( srcArr[i] );
                }
            }
            else { // DESC
                var start = tmpData.total-1-params.start;
                n = Math.max( start-params.limit, -1 );
                for ( i=start; i>n; i-- ) {
                    destArr.push( srcArr[i] );
                }
            }
    
            var result;
            try {
                result = reader.readRecords(tmpData);
            }catch(e){
                this.fireEvent("loadexception", this, arg, null, e);
                callback.call(scope, null, arg, false);
                return;
            }
            callback.call(scope, result, arg, true);
        },
        
        
        update : function(params, records){
            
        }
    });
    And then define bufferedDataStore as

    HTML Code:
    var bufferedDataStore = new Ext.ux.grid.BufferedStore({
            autoLoad   : false,
            bufferSize : 300,
            proxy      : new MyMemoryProxy( your_data, your_root, your_sortingFunctions ),
            url        : 'dummy.php',
            reader     : bufferedReader,
            sortInfo   : {field: 'id', direction: 'ASC'}
        });
    A dummy url is required. Replace your own three parameters in the proxy definition.

    Feedback is welcomed.

    Thanks a lot.

  3. #323
    Ext User
    Join Date
    Sep 2008
    Posts
    1
    Vote Rating
    0
    ecarrenho is on a distinguished road

      0  

    Default


    changhua,

    Thanks for the help. If you could explain what is the root cause of the timer expiration and how your solution resolves it, we appreciate.

    Regards,
    Evandro.

  4. #324
    Ext JS Premium Member
    Join Date
    May 2008
    Posts
    4
    Vote Rating
    0
    dkuz is on a distinguished road

      0  

    Default Element.update function

    Element.update function


    I have noticed that, when i load data into BufferedStore Element.update function is been called 3 times, with the same html string. Did anybody else noticed this problem? Any ideas?

    Thank you.

  5. #325
    Sencha User ThorstenSuckow's Avatar
    Join Date
    Sep 2007
    Location
    Aachen, Germany
    Posts
    597
    Vote Rating
    2
    ThorstenSuckow is on a distinguished road

      0  

    Default V0.3a1 available

    V0.3a1 available


    I'm proud to announce the release of Ext.ux.Livegrid 0.3a1

    A lot of work has been put into this release. Major code refactoring with lots of improvements along with the support for Ext2.2. The UI matches now the usual Ext.grid-components.



    As of V0.3a1, Ext.ux.Livegrid is now released under the terms of the GPL V3.

    Furthermore, there is a backward compatibility break: The namespace has been changed to Ext.ux.grid.livegrid. Please update your code accordingly.

    Changelog is available on the first page, as usual.

    Happy coding!


    Thorsten

  6. #326
    Ext User
    Join Date
    Mar 2008
    Posts
    6
    Vote Rating
    0
    Mots is on a distinguished road

      0  

    Default


    Hi Mindpatterns,

    First of all I have to say great extension!

    Have you (or anybody else for that matter) ever tried to combine the live grid with MaximGB's tree grid?

    I know that in my company one of the biggest issues to solve in any web project was the presentation of large amounts of data in a tree. I think that if the mechanisms from the live grid are applied to the tree grid (or vice versa), this would solve this issue once and for all.

    I will take a look at this myself in the next days, but perhaps there is already some experience with this out there.

  7. #327
    Sencha User ThorstenSuckow's Avatar
    Join Date
    Sep 2007
    Location
    Aachen, Germany
    Posts
    597
    Vote Rating
    2
    ThorstenSuckow is on a distinguished road

      0  

    Default


    Quote Originally Posted by Mots View Post
    I know that in my company one of the biggest issues to solve in any web project was the presentation of large amounts of data in a tree. I think that if the mechanisms from the live grid are applied to the tree grid (or vice versa), this would solve this issue once and for all.

    I will take a look at this myself in the next days, but perhaps there is already some experience with this out there.
    Hi Mots,

    the Ext.tree.TreePanel provides this functionality already- well, sort of: You can lazy load the nodes when you specify a "Ext.tree.TreeLoader" in the "loader" property of the TreePanel. The API doc should help you here.

    HTH


    Regards

    Thorsten

  8. #328
    Ext User
    Join Date
    Mar 2008
    Posts
    6
    Vote Rating
    0
    Mots is on a distinguished road

      0  

    Default


    Hi Thorsten,

    Actually, we first used Ext.tree.TreePanel (Actually Ext.tree.ColumnTree), because we need a tree with additional columns displayed. However, we then switched to the TreeGrid because the column tree does not have all the nice features a grid has (out of the box sorting, hiding columns, drag and drop of columns, and so on).

    The TreeGrid also has lazy loading support which we already use and which works well, the problem is that trees that load the content of a folder in the tree on demand still have a performance problem when there is a lot of entries in one folder (which is the case quite often).

  9. #329
    Ext User
    Join Date
    Mar 2008
    Location
    Debin, Souf Efrika
    Posts
    17
    Vote Rating
    0
    ub3rn00b is on a distinguished road

      0  

    Default


    just a quick one, I am moving my current implementation of this component from Ext 2.1 as we are having a minor issue where the bottom most records are truncated, I am assuming this is to do with the viewport height bug as according to firebug the proxy is returning all the relevant records, however the last 10 or so are not being scrolled to.

    This is my declaration code below, it generates 'n' grids in a tab panel

    Code:
    var bufferedDataStore_billingExport_<?= $BillingTableRow[0]?> = new Ext.ux.grid.livegrid.Store({
    		autoLoad   : true,
    		bufferSize : 600,
    		reader     : bufferedReader,
    		sortInfo   : {field: 'date_field', direction: 'ASC'},
    		url        :    'proxies/billingproxy.php?table=<?= $BillingTableRow[0]?>'
    	});	
    	
    	var bufferedView_billingExport_<?= $BillingTableRow[0]?>= new Ext.ux.grid.livegrid.GridView({
    		nearLimit      : 200,
    		id: 						'BufferedViewBillingExport',
    		loadMask : {
    		msg : 'Please wait...'
    	}});
    	
    	var bufferedGridToolbar_billingExport_<?= $BillingTableRow[0]?> = new Ext.ux.grid.livegrid.Toolbar({
    		view        : bufferedView_billingExport_<?= $BillingTableRow[0]?>,
    		displayInfo : true
    	});
    	var searchBox_<?= $BillingTableRow[0]?>_txt = new Ext.form.TextField({
    			id: 'searchBox_<?= $BillingTableRow[0]?>',
    			enableKeyEvents: true
    	});
    	
    	var grid_billingExport_<?= $BillingTableRow[0]?> = new Ext.grid.GridPanel({
    		ds             : bufferedDataStore_billingExport_<?= $BillingTableRow[0]?>,
    		enableDragDrop : false,
    		cm             : colModel,
    		listeners: {activate: handleActivate_<?= $BillingTableRow[0]?>},
    		//autoExpandColumn: 2,
    		sm             : bufferedSelectionModel,
    		id						 : 'dataGridPanel_<?= $BillingTableRow[0]?>',
    		loadMask       : {
    				msg : 'Loading...'
    		},
    		view           : bufferedView_billingExport_<?= $BillingTableRow[0]?>,
    		title          : '<?= $DisplayTitle?>',
    		bbar           : bufferedGridToolbar_billingExport_<?= $BillingTableRow[0]?>,
    		tbar					 : [
    			{text: 'Quicksearch:'	},
    			searchBox_<?= $BillingTableRow[0]?>_txt
    		,{
    			xtype:'button',
    			text:'X',
    			handler: function(){
    				if (searchBox_<?= $BillingTableRow[0]?>_txt.getValue().length!=0) {
    						searchBox_<?= $BillingTableRow[0]?>_txt.setValue('');	
    						bufferedDataStore_billingExport_<?= $BillingTableRow[0]?>.load();
    				}
    			}
    		}]
    
    	});	
    ....
    I know it looks a bit clunky but it does work, other than the scrolling issue, however when I move across to the latest version of this component it fails to render with the following error popping up in firebug

    "grid is undefined Toolbar.js (line 112)
    var st = grid.getStore();"

    Do we have to change the way that our toolbars are generated in the new component now?

  10. #330
    Sencha User ThorstenSuckow's Avatar
    Join Date
    Sep 2007
    Location
    Aachen, Germany
    Posts
    597
    Vote Rating
    2
    ThorstenSuckow is on a distinguished road

      0  

    Default


    Quote Originally Posted by ub3rn00b View Post
    Do we have to change the way that our toolbars are generated in the new component now?
    Yeah it got kind of messed up with the latest release. If you need the toolbar, make sure the instance of the grid-panel you want to create is available to the time the toolbar is instantiated. Best way would be to extend Ext.grid.GridPanel and create the Toolbar in the "initComponent()" method, referencing the grid using "this".

    Will be fixed in the next release, however.

Thread Participants: 248

  1. JeffHowden (1 Post)
  2. Animal (4 Posts)
  3. rodiniz (1 Post)
  4. galdaka (2 Posts)
  5. mdissel (1 Post)
  6. Wolfgang (1 Post)
  7. zzo (2 Posts)
  8. Frank (1 Post)
  9. herve (2 Posts)
  10. ericd (2 Posts)
  11. RWaters (5 Posts)
  12. Digital God (1 Post)
  13. Dumbledore (11 Posts)
  14. KimH (1 Post)
  15. pjordan (1 Post)
  16. cpantel (1 Post)
  17. mystix (3 Posts)
  18. wanclark (1 Post)
  19. MD (3 Posts)
  20. drew (1 Post)
  21. jheid (15 Posts)
  22. tsprague (1 Post)
  23. Confused (2 Posts)
  24. thesilentman (1 Post)
  25. andreas.linde (1 Post)
  26. violinista (1 Post)
  27. redxiii (1 Post)
  28. akannu (1 Post)
  29. theo (1 Post)
  30. Troy Wolf (3 Posts)
  31. chh (4 Posts)
  32. Phenothiasine (1 Post)
  33. danh2000 (1 Post)
  34. tobiu (1 Post)
  35. badgerd (1 Post)
  36. mlarese (1 Post)
  37. pluesch0r (1 Post)
  38. krycek (1 Post)
  39. gtaylor (4 Posts)
  40. ftftft (1 Post)
  41. hallikpapa (7 Posts)
  42. tech-nova (1 Post)
  43. provagino (1 Post)
  44. mjlecomte (2 Posts)
  45. iancmcc (1 Post)
  46. andrei.neculau (7 Posts)
  47. zieli1 (1 Post)
  48. meteorbites (1 Post)
  49. brookd (3 Posts)
  50. alexpetri (1 Post)
  51. urskipfer (1 Post)
  52. JEBriggs (1 Post)
  53. magunes117 (6 Posts)
  54. shiweiwei97 (3 Posts)
  55. vpell (1 Post)
  56. gelleneu (4 Posts)
  57. ohhowihateie (2 Posts)
  58. Andrewd2 (1 Post)
  59. Jacob (1 Post)
  60. cherbert (2 Posts)
  61. DragonFist (1 Post)
  62. marcoas (1 Post)
  63. Shmoo (1 Post)
  64. GraemeBryce (1 Post)
  65. w011117 (1 Post)
  66. luxxxian (1 Post)
  67. loverofdream (1 Post)
  68. lvanderree (1 Post)
  69. robw (1 Post)
  70. SeaSharp (1 Post)
  71. xpressive (1 Post)
  72. jeremia (1 Post)
  73. wm003 (21 Posts)
  74. miti (1 Post)
  75. sfrancolla (1 Post)
  76. Blob (1 Post)
  77. WoLpH (5 Posts)
  78. khatuido (3 Posts)
  79. zacware (3 Posts)
  80. mepfuso (2 Posts)
  81. wasp (1 Post)
  82. sharpguy (1 Post)
  83. stevets (1 Post)
  84. fred (1 Post)
  85. eliasp (3 Posts)
  86. h0tzenpl0tz (1 Post)
  87. tonedeaf (1 Post)
  88. Zolcsi (3 Posts)
  89. dearsina (1 Post)
  90. efattal (3 Posts)
  91. franck34 (3 Posts)
  92. tyr (1 Post)
  93. cybertaz (1 Post)
  94. zergworld (8 Posts)
  95. sekundek (1 Post)
  96. cs_alpha (3 Posts)
  97. Sultanalifezar (3 Posts)
  98. emily (7 Posts)
  99. jwendt@iscinternational.com (1 Post)
  100. sinma (1 Post)
  101. ItsMee (3 Posts)
  102. Nic (1 Post)
  103. sksoft (4 Posts)
  104. mjhaston (1 Post)
  105. mattb (4 Posts)
  106. jenner (1 Post)
  107. 2le (1 Post)
  108. bluefeet (1 Post)
  109. PremiereGlobal (2 Posts)
  110. rtozati (1 Post)
  111. KirkOlson (4 Posts)
  112. False Maria (1 Post)
  113. jbd007 (5 Posts)
  114. c.barca (1 Post)
  115. nctag (34 Posts)
  116. kfironit123 (1 Post)
  117. Emt (1 Post)
  118. ub3rn00b (12 Posts)
  119. Ballsacian1 (1 Post)
  120. mprice (1 Post)
  121. srikanthnukala (2 Posts)
  122. Mots (2 Posts)
  123. yhwh (1 Post)
  124. el777 (1 Post)
  125. JoomlaMan (1 Post)
  126. sanjivank (1 Post)
  127. sdetweil (1 Post)
  128. Snakehit (1 Post)
  129. msynovic (2 Posts)
  130. Snuyt (1 Post)
  131. as (2 Posts)
  132. pkmiec (2 Posts)
  133. epoks (2 Posts)
  134. NoahK17 (1 Post)
  135. praneeth528 (2 Posts)
  136. bemn (1 Post)
  137. Remy (1 Post)
  138. Daniel_Brazil_Campinas (1 Post)
  139. freddyk (4 Posts)
  140. dshorthouse (1 Post)
  141. dahman7 (1 Post)
  142. Canard64 (1 Post)
  143. dkuz (2 Posts)
  144. xsuniwov (1 Post)
  145. neha.chopra (1 Post)
  146. Eric24 (2 Posts)
  147. Mandeep (2 Posts)
  148. ttbgwt (6 Posts)
  149. suzan (1 Post)
  150. tenthcup (5 Posts)
  151. excelsis (5 Posts)
  152. DaveBrewster (6 Posts)
  153. rusty124 (1 Post)
  154. bcmatz (3 Posts)
  155. bjcullinan (1 Post)
  156. sstratton (4 Posts)
  157. Scorpie (1 Post)
  158. supercharge2 (3 Posts)
  159. Bing Qiao (6 Posts)
  160. tmaung (1 Post)
  161. xenon (4 Posts)
  162. sureaintme (5 Posts)
  163. animeshsingh (2 Posts)
  164. NicoP (29 Posts)
  165. cyfl (2 Posts)
  166. simplessus (1 Post)
  167. imnphd (1 Post)
  168. mono blaine (5 Posts)
  169. Kango_V (5 Posts)
  170. cain06 (1 Post)
  171. charak (2 Posts)
  172. vayumahesh (1 Post)
  173. Gabor Turi (1 Post)
  174. daeghran (2 Posts)
  175. maceido (5 Posts)
  176. sgoswami (1 Post)
  177. rubaiz (1 Post)
  178. Jabe (1 Post)
  179. ecarrenho (1 Post)
  180. mpereira (1 Post)
  181. changhua (4 Posts)
  182. alexw23 (1 Post)
  183. fxmisticat (5 Posts)
  184. extjssiva (1 Post)
  185. f1xxx3r (1 Post)
  186. SimoAmi (1 Post)
  187. aj3423 (1 Post)
  188. kkothari (2 Posts)
  189. jmariani (28 Posts)
  190. ibet (3 Posts)
  191. SunWuKung (1 Post)
  192. micgala (2 Posts)
  193. inptisto (1 Post)
  194. TheColonel (1 Post)
  195. cdeguzman (1 Post)
  196. ektanit (6 Posts)
  197. James Wang (1 Post)
  198. PCBingoB (1 Post)
  199. flylaputa (1 Post)
  200. MacSimon (1 Post)
  201. pibree (2 Posts)
  202. Markus (1 Post)
  203. aleister999 (2 Posts)
  204. adamli (2 Posts)
  205. jmaisel (4 Posts)
  206. pdugas (1 Post)
  207. plaak (1 Post)
  208. coriolis (2 Posts)
  209. weazil (4 Posts)
  210. fwiethof (1 Post)
  211. meroy (19 Posts)
  212. lxf1101 (2 Posts)
  213. stephen.friedrich (3 Posts)
  214. vinepod (1 Post)
  215. yuriy (2 Posts)
  216. completej (1 Post)
  217. dan_jf (1 Post)
  218. harel (2 Posts)
  219. veenvliet.morion (2 Posts)
  220. yura620310 (1 Post)
  221. barncat (1 Post)
  222. DmitrySistor (2 Posts)
  223. pclovec (3 Posts)
  224. Ranma13 (1 Post)
  225. swang (4 Posts)
  226. calugaru.cristian (5 Posts)
  227. mohan_b (1 Post)
  228. karlsnyder0 (2 Posts)
  229. JimmyInMD (2 Posts)
  230. tolitius (1 Post)
  231. a.labeau (2 Posts)
  232. benjixx (1 Post)
  233. psm1963 (1 Post)
  234. sosy (1 Post)
  235. nosferatum (10 Posts)
  236. daddie888 (1 Post)
  237. ixvivxi (1 Post)
  238. dp814082 (1 Post)
  239. nickelj (4 Posts)
  240. wifi4psp (1 Post)
  241. drian (1 Post)
  242. su-aska (1 Post)
  243. SebTardif (1 Post)
  244. danceric (1 Post)
  245. DTSman (1 Post)
  246. brian.moeskau (1 Post)
  247. Neethi (2 Posts)
  248. sango (1 Post)