similar to: paginate, search, sort with ajax problem

Displaying 20 results from an estimated 200 matches similar to: "paginate, search, sort with ajax problem"

2009 May 13
1
[PATCH server] Cloud UI V1 (readonly).
This patch creates the shell for much of what the cloud ui will become. It is focused on layout (lightly fedora themed), accessibility, and 'bookmarkability'. This layout uses no javascript (that will be used to enhance interactivity in a future patch). It also introduces the idea of using a simple table rather than the more conplex js/json we use in the admin side. Plan here is to
2007 Mar 22
2
Inconsistent Invalid Argument Error
I have a view with a table that contains sortable links as headings. Here is the code used to create these sortable links in the application_helper: module ApplicationHelper def sort_link_helper(text, param) key = param key += "_reverse" if @params[:sort] == param link_to(text, :controller => ''sales_orders'', :action => ''list'',
2006 Sep 06
3
url_for , controller routing error
I have an ''account_controller.rb'' in an ''admin'' module I list the accounts with : http://0.0.0.0:3000/admin/accounts/list, and get my table trying to sort it, I use the follwoing sort_link_helper : def sort_link_helper(text, param) key = param key += "_reverse" if @params[:sort] == param options = { :url =>
2006 Aug 11
0
SQL sort
in my list action, I setup the sort parameters as folows : .. sort = case @params[''sort''] when "login" then "login DESC" when "first_name" then "first_name DESC" when "last_name" then "last_name DESC" end ... to be used in a ''sort_link_helper''
2007 Mar 16
1
sort_link_helper and cross-controller partials
Hello Rubyists, I ran into a problem with sorting a table (rendered in a partial) using the sort_link_helper methods after I have submitted data and re-rendered the table through an AJAX request. The setup is a follows: The table is a shared partial of Controller1 and Controller2 accessible via "shared/table". The AJAX''ed sorting using the sort helper works all fine on
2006 Aug 16
0
sort_link_helper , sorting on date
I am using this helper to sort my table colums, no problem sorting on string but how can I sort a date colum ( in my DB, ) user_helper.rb ---------------------- def sort_link_helper(text, param) key = param key += "_reverse" if @params[:sort] == param options = { :url => {:action => ''list'', :params => @params.merge({:sort => key, :page =>
2006 Apr 23
5
Controllers in folders and helper scope in Rails >1.0
Hi, Here''s my problem. I tried to google it, read the release-docs and haven''t found anything similar. My application uses folders to store controllers, as described in the Rails book. I need to have same-named controllers for admin and for users, so it looks like this: /app/controllers/admin/project_controller.rb /app/controllers/admin/...
2006 Apr 18
1
Pagination links with separator
Hi, I have @result_pages and @results obtained from paginate in an action. I want to show the pages as 1 | 2 | 3 | 4 > The fifth page will show: < 5 | 6 | 7 | 8 > and so on. How exactly do I render the paginator to give this effect? I guess I will have to use pagination_links_each. But being new to Rails, I need help. Thanks, Yash -- Posted via http://www.ruby-forum.com/.
2006 Feb 27
0
Simple Namespace Question
I put the following code into my application_helper.rb file, which will allow super fancy ajax pagination blah blah blah. Now the problem is, it''s not being identified. I''m running Rails 1.0.0, and froze edge, so it''s sitting in /vendor. The actual pagination_helper.rb file is appropriately sitting in: /vendor/rails/actionpack/lib/action_view/helpers
2009 Jul 06
0
[PATCH server] UI for accumulated uptime for VMs. (revised2)
This revised version of the patch incorporates jguiditta's sorting fix as well as some other changes required to make this work fully on the cloud UI side. --- src/app/controllers/pool_controller.rb | 2 +- src/app/controllers/resources_controller.rb | 4 +++- src/app/controllers/smart_pools_controller.rb | 7 +++---- src/app/helpers/application_helper.rb | 14
2009 Jul 02
1
[PATCH server] UI for accumulated uptime for VMs. (revised)
This revised version of the patch incorporates jguidditta's sorting fix as well as some other changes required to make this work fully on the cloud UI side. --- src/app/controllers/pool_controller.rb | 2 +- src/app/controllers/resources_controller.rb | 4 +++- src/app/controllers/smart_pools_controller.rb | 5 ++--- src/app/helpers/application_helper.rb | 14
2009 Jul 06
2
[PATCH server] UI for accumulated uptime for VMs. (revised3)
This revised version of the patch incorporates jguiditta's sorting fix as well as some other changes required to make this work fully on the cloud UI side. --- src/app/controllers/pool_controller.rb | 2 +- src/app/controllers/resources_controller.rb | 4 +++- src/app/controllers/smart_pools_controller.rb | 7 +++---- src/app/helpers/application_helper.rb | 14
2009 Jun 29
3
[PATCH server] UI for accumulated uptime for VMs.
There's still a problem with this working on the cloud side, but that can be resolved in a subsequent commit. --- src/app/controllers/pool_controller.rb | 2 +- src/app/controllers/resources_controller.rb | 7 ++++++- src/app/controllers/smart_pools_controller.rb | 5 ++--- src/app/helpers/application_helper.rb | 14 ++++++++++++++ src/app/models/vm.rb
2006 Apr 06
3
scaffold question
there are some things on a scaffold that i would like to use without the whole thing. is it better to generate one and then cut it down to only what you''ll use? are all of the things in a scaffold available to just build by hand? for instance, i have a scaffold for my users. in the list action, it has @user_pages, so that you can put @user_pages.current.next or something like that -
2006 Jun 11
4
remote_function posting?
Hi, I''ve noticed that my remote_function calls are resulting in POST requests. As a result, my routes do not apply since it does not generate a url based on the parameters, but simply posts to the raw url with post data. I want to make a GET request instead of a POST. How can I do that? Has anyone else run into this? Thanks, Ryan -- View this message in context:
2006 Apr 26
1
List shows always first page
Hello! I''m a beginner of rails. I made a simple test project with rails 1.1.2 and ruby 1.8.2 on Windows XP. DB is SQLServer 7.0. I''m connecting the server thru ODBC. I created a table named "users" with about 10 columns. I inserted 1000 sample records. I created a scaffold for user model and login controller for it using the script. Everything''s fine
2006 Mar 31
2
Silly question
Hi there, I know this is be a very minor issue, but considering @users = User.find :all, :order => ''name'' _AND_ @user_pages, @users = paginate :user, :order_by => ''name'' by simplicity, shouldn''t the symbols :order and :order_by be the same or both to both cases ? I stumbled on them a couple of times yet :) Thanks, Andre --
2006 Jan 24
1
Pagination
Hello, maybe that I''m a stupid, but I don''t know how I can working with pagination. In all examples is written (for example) next: def user_list @user_pages, @users = paginate(:users, :order_by => ''name'') end So, it''s OK (as a scaffold) for all set of users. But I need a little other functionality. For example I need paginate only a little bit
2006 Jul 05
3
list of users
Hi all, I''m creating admin module. in that module i need to get the list of users and also the projects created by the each user. No doubt i''m getting the list of users. but i''m not getting the list of projects done by each user.. This is my code:: <% for user in @users %> <%=link_to
2006 Jun 20
4
Prototype Array bug??
function CreateTOC(){ var $aTOC = document.getElementsByClassName(''tocitem''); var $temp = ''''; if(isArray($aTOC)){ for($t in $aTOC){ $temp += ''t='' + $t + '', '' + $aTOC[$t].name + ''<BR>''; } $(''test1'').innerHTML = $temp; } } When I run this code