On 01/22/2013 10:04 AM, Peter Schneider wrote: > Hi Mustafa, > > as I already said it's hard to reproduce in the playground... Especially, if > you don't have control over the backend ;) > > But I tried. And I think I've found a test-case to reproduce the issue. > (unfortunately I can't provide a "shortened URL", cause our Network here > behaves evil...) > Anyway... with the attached code (to be run at > http://demo.qooxdoo.org/devel/playground/index.html) you should be able to > reproduce the issue. > Function: > - Each time you click on reload, the reloadData() method is called. > - Due to the fact that I haven't any control over the backend, I alter the > "getRowCount" RPC-result every 2nd time (alternating returning 1000 or > 500). > Result: > - You will see that the row-count indication will change, but the rendered > data > still displays the old data (it should display a 'newer' date) > Expected Result: > - You should see that the row-count indication will change, *AND* the rendered > data displays the new data (it displays 'newer' dates)
Looking at the network packet level, pressing the "Reload" button does *not* immediately result in a network request to the server, which is on my machine due to browser caching (I'm looking at Chrome currently). Clearing the browser cache after each reload will force network requests going out to the server, fetching new data. Without that, data with a seen URL is fetched from browser cache. So looking at, say, the first 15 records in the table they won't change at all between "Reload" presses. If you then start to scroll, further records get shown. Depending on whether you have looked at those rows before you get the old data, or you are looking at row indecies for the first time then fresh data is retreived from the server, showing new time stamps. So I believe the XHR requests are issued from JS code fine, but the result that is displayed depends on browser cache behaviour. T. ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
