Hello, Craig. I'm not sure what question you're actually asking here, but I'll try to explain what I can.
The tutorials you've read are not actually contradictory in any way. Each of those pieces plays a role in getting the data to the user. The TW middleware is used to insert <script> tags, CSS links, and other related pieces, when the HTML for a page is being generated. The controller method that is called is responsible for generating the specific data that will be loaded into the user's web browser. Frequently, this will be JSON, and have some sort of limitation in place to prevent sending thousands of records. Then there is the actual Javascript running in the browser. It makes the request to get the JSON data, and then does something with the data once it gets there. So, the pieces are complementary, not contradictory. I hope this helps. If it doesn't, please ask, and I'll try to answer. I'm sorry I didn't answer last night, but we had a power failure here. Yes, it sucked. On Wed, Jul 18, 2012 at 6:01 PM, Craig Small <[email protected]> wrote: > Hi, > There are muliple tutorials out there showing how toscawidgets works > with turbogears but often they are contradicting in how they come about > it. A good example is some use the middlewear, some use a specific > call (eg a data routine) and then others bring up the data in the > actual function that generates the grid. > > I'm specifically interesting in the jqgrid setup where the grid is > displayed once and it then makes calls to get specific data using, i > guess a json transfer happens there. Also I've not seen how the query > does sensible limiting either; what i mean is if you have several > thousand records you dont want to load them all in and then ditch > most to display the middle 10. I couldn't see how that was done. > > I've 2.2.0rc2 here on my projects and they seem to be going ok. > > - Craig > -- > Craig Small VK2XLZ http://enc.com.au/ csmall at : enc.com.au > Debian GNU/Linux http://www.debian.org/ csmall at : debian.org > GPG fingerprint: 5D2F B320 B825 D939 04D2 0519 3938 F96B DF50 FEA5 > > -- > You received this message because you are subscribed to the Google Groups > "TurboGears" 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/turbogears?hl=en. > > -- Michael J. Pedersen My Online Resume: http://www.icelus.org/ -- Google+ http://plus.ly/pedersen Google Talk: [email protected] -- Twitter: pedersentg -- You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en.

