similar to: ajax and creation of a list

Displaying 20 results from an estimated 3000 matches similar to: "ajax and creation of a list"

2006 Feb 02
4
ajax insertion into a form
After an ajax insertion in the dom, it seems the browser don''t refresh its knowledge of the page. The source of the page is identical after the insertion, whereas the display is correct. The ajax insertion is used to add an input field. The added fields are ignored by the submission of the form. Isn''t it possible to do that, or maybe there''s a problem in my code
2009 Feb 25
0
Problem redirecting user running a Dynamic feature
Hello, Here is my setup : Telephone 1 ( GXP 2000 ) Telephone 2 ( SPA942 ) Asterisk 1.4.17 ( same behaviour on Asterisk 1.4.23.1 ) Scenario: I don't like the default asterisk transfer feature, so I am trying to write my own. What I did : 1. Added to dynamic features #3 with AGI pointing to my php script 2. PHP script asks the user to enter his/her extension 3. PHP connects to Asterisk
2007 Mar 11
0
Good code?
Hi, Could you look at some code I created? I don''t know if it''s good... or if it could be better. Especially the controller. I couldn''t find a way to let the declaration_payers be automatically saved. declarations_controller.rb: def create @declaration = Declaration.new(params[:declaration]) unless @declaration.save @users = User.find(:all)
2006 Jul 19
6
ActiveRecord::RecordNotSaved - bizarre behaviour.
Hi. I get a RecordNotSaved exception when trying to create a user record. The error: User Columns (0.005930) SHOW FIELDS FROM users SQL (0.000465) BEGIN SQL (0.000466) COMMIT ActiveRecord::RecordNotSaved (ActiveRecord::RecordNotSaved): ... As you can see, there''s no INSERT SQL generated, which is the root cause of the problem. In my user model, I have the following
2006 Nov 04
1
acts_as_tree repeats
Hello Railslist, I want to draw a simple single-table Acts_as_tree model. I''ve read some articles about it and read the API docs, and now I''ve got this running: in controller I have: --- def index @pages = Page.find(:all) end --- in the model for Page I have ofcourse: --- acts_as_tree :order => "position" --- in the helper I have; --- def
2005 Sep 21
9
Ajax.Updater
Hi all, I was wondering if one could pull a completely separate web site into a div, e.g. <a href="#" onclick="new Ajax.Updater(''artifact'', ''http://www.vivisimo.com/'', {asynchronous:true, evalScripts:true, onLoading:function(request){Toggle.display(''message2body'')}}); return false;">&raquo;</a> it fails
2007 Oct 16
3
can''t define custom GIcon
Hi, I am having trouble getting custom GIcons to display. Here is the code in my controller: @map = GMap.new("map_div") @map.control_init(:large_map => true,:map_type => true) @map.icon_global_init(GIcon.new(:image => "images/APBox-20.png "),"ap_none") infoString = "Friendly Name: "+result.friendly_name+
2006 Jul 11
1
instance vars in layouts
Hello List, The layouts contain the instance var @content_for_layout; is it possible that they may also contain the instance vars from a controller similar to the way a controller''s views do? cheers, - trav -- p [151,40,154,157,166,145,40,162,165,142,171].collect { |ii| eval ''"\\''+ii.to_s+''"'' }.join -------------- next part --------------
2010 Apr 07
0
Problems with no method error with rufus scheduler
Hi, I have a problem with rufus. I created a test.rb file in the /config/ initializers folder. test.rb require ''rubygems'' require ''rufus/scheduler'' scheduler = Rufus::Scheduler.start_new scheduler.each ''10s'' do puts "hey see you in 10seconds!" end works fine so far. Now I change it to: test.rb require
2009 Mar 26
0
Error On relative_url_root
I''m attempting to mash together Adva CMS'' Fckeditor and the Fckeditor plugin provided by Scott Rutherford. http://blog.caronsoftware.com/2008/6/21/fckeditor-plugin-0-5-1-released The Scott''s plugin has a controller than handles the Fckeditor file upload and browse, but it errors out on the following lines. def upload_directory_path uploaded =
2007 May 29
0
Ajax sortable_element refresh
Hi, I have the following ajax example, with a list of counters, and two buttons for adding/removing elements. The list is sortable. There are two things that I don''t know how to do: . remove an elemet . when I add a new element to the list, that element doesn''t become sortable with the rest of the list Thanks, hugo #### View <html> <head> <title>Ajax
2007 Mar 20
2
Progressive AJAX Filter
Hi Guys, In my rails app, I present a table of data that I want to be able to filter using multiple criteria. I''ve created a one-line table of input fields above my table to accept filter criteria like this... <%= javascript_include_tag :defaults %> &nbsp; <form name="sform" action="" style="display:inline;"
2006 Jul 12
1
odd habtm behavior? or is it me?
Hello List, I''m a bit spent on this problem, and my code might be whack. I seem to be encountering a problem where the primary key on a join table is not being resolved correctly. I will elaborate after some code bits. I am creating the join table using migrations, and relevant model code is this: class Post < ActiveRecord::Base has_and_belongs_to_many :records
2006 Jul 06
0
Ajax form results display help
I''m not that familiar with Ajax, so there is a good chance that I''m doing something incredibly stupid, but here is the issue. I have a search form that will display results on submit using Ajax callbacks and cool effects. Here is the operation that I would like -User enters data - On submit of the form, the spinner shows - If there is an error, the error div is shown and
2006 Apr 14
2
Nested AJAX remote_form in form?
I''d like to achieve something that is better described by the following code: <%= start_form_tag :action => ''create'' %> <%= text_area ''place'', ''description'', :cols => 100, :rows => 4 %> <div id="categories"> <%= form_remote_tag :update => ''categories'',
2006 Mar 13
2
Keypress events with no AJAX needed
Is anyone else finding it frustrating to do in Ruby client-side things that would be simple in Javascript? It seems like all of the "helpers" involve server (controller) communication. For example, having a text field that just echos below what the user types. Is this the only way to do it? <div id=''word_panel''> <%= text_field_tag
2006 Mar 23
0
Ajax and Rails Problem
hi guys, i am havin a problem displaying content of @wine from the search action.. i get no errors i only get &nbsp where the results is when i examine the html plz help i posted my code John def search @wines = Wine.find(:all) @wine_pages, @wines = paginate :wines end def searchaction @search=request.raw_post @wines = Wine.find(:all,:conditions=>["name LIKE
2006 Feb 10
0
ajax form submission and updating multiple divs
I''m not sure if this is even possible, but here is my current method: class Item < ActiveRecord::Base def self.generate(name) Item.create(:name => name) || nil end end class ItemController < ActionController::Base layout "application" def index @items = Item.find(:all) end def create if @request.method ==:post name = @params[:name]
2006 Feb 26
0
Ajax, MemoryStore and sessions
Have you ever worked with Ajax, memoryStore and sessions in Rails? I''m trying to pass a value through a session variable to various methods. I''m calling the methods with Ajax on a submit button. I do this twice on a page. The first time I pass a variable from the page to the controller and store it in the session and write a log entry. This works fine. When the second button
2010 Oct 18
0
Ajax call-request.xhr? = false Rails 3
I have the following tag in a view:- <%= form_tag url_for({:controller => params[:area], :action => :search, :area => params[:area] }), :method => :get, :remote => true do %> <%= label_tag(:query, "Search for:") %> <%= text_field_tag("query", params[:query], :autocomplete => "off", :onKeyPress=>"return