Re: [Cheetahtemplate-discuss] Displaying 50 records per page using Cheetah
Brought to you by:
rtyler,
tavis_rudd
From: Redhorse, O. J. (WSTF-RD)[J. T. Inc]
<oli...@na...> - 2013-04-26 18:45:14
|
I have been playing with dataTables and I have a question. I was not sure if dataTables was going to work inside a *.tmpl file (cheetah file). When I test plain html (not using cheetah), datatables works fine. But when I try to use dataTables in a *.tmpl (a cheetah file) I get an error message, invalid character (in the browser), on the following code. <script type="text/javascript"> window.onload = (function() { $('#table_id').dataTable();} ); </script> It is having a problem resolving the dollar sign ($) in the code. I know it is related to the fact that in a cheetah file, the dollar sign means a variable is declared. How do I resolve this? Or am I understanding this incorrectly? From: Daniel Winter [mailto:win...@me...] Sent: Friday, April 26, 2013 2:31 AM To: Redhorse, Olivia J. (WSTF-RD)[Jacobs Technology Inc] Cc: che...@li... Subject: Re: [Cheetahtemplate-discuss] Displaying 50 records per page using Cheetah That means you want to display data in a table with pagination? Something like: http://www.datatables.net/ ? That's a jQuery Plugin that can transform your html table. It also allows you to add filter and pagination options.. gruß, daniel On 25 Apr, 2013,at 11:39 PM, "Redhorse, Olivia J. (WSTF-RD)[Jacobs Technology Inc]" <oli...@na...> wrote: Hello All, I am fairly new to using Cheetah and Python. I am planning to create a page that displays 50 records per page based on a search criteria. The user would be provided the option to go to the next or previous 50 records on the page. This is a new area for me. How can create a page like this? Any suggestions or other resources would be very helpful. I appreciate your input. -Olivia ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr _______________________________________________ Cheetahtemplate-discuss mailing list Che...@li...<mailto:Che...@li...> https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss |