On Domingo, 27 de Septiembre de 2009 18:01:54 alexp escribió:
> Hi all
>
> A little glitch but noticable what is happening
>
> goto a list view, navigate to say the 2nd page of results, press f5
> and you get page 1 loading, and then it refreshes directly after to
> page 2.  if page 2 has 1 result and page one has say the default 20
> listed rows, this means that 20 rows worth of objects on page 1 are
> being called to view 1 record/row in page 2 of listed results.  This
> with lots of users working on the same app is not ideal, lots more
> work than needed on resources
>
> Although you only see this on a slow machine its still an extra
> overhead.  Where can the code be changed so that it only loads page
> 2's data, and misses the page 1 data?
>
> It does this in every case, meaning goto page 30 of the listed
> results, and page 1 loads then it auto refreshes to page 30

I suppose it's due to dhtml_history. You ask the first page with an anchor, 
which after loading the page request by ajax another page. You can try to 
disable dhtml_history if is causing problems to you. You can disable globally 
in your ApplicationController:
ActiveScaffold.set_defaults do |config|
config.dhtml_history = false
end

-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to