similar to: Select tags and AJAX

Displaying 20 results from an estimated 80000 matches similar to: "Select tags and AJAX"

2006 Jul 04
0
Help with first AJAX action
I''ve used Rails for a while, but haven''t really done any AJAX until now. Now I''ve been fighting for days with my first AJAX action and after reliably crashing Safari and throwing errors in IE, I''m finally coming to the list for help. :) I have a "controls" div in my layout. This div displays a list of page-specific actions. When some of these
2010 Oct 19
0
Ajax & Table Display Filtering based on Selected Option
My scenario: On a department''s products page (index.js.rjs), there is a table showing the products with their id, name, category. The view of this table is specified by a partial file called _index.html.erb. I''m going to add in a selection/option drop down menu above the table to show all the product categories. When the user selects a category from the drop down menu, Ajax
2006 Nov 12
0
Select boxes with Ajax
Hi, I would like to create a select box which is editable through Ajax. Does anyone have a code pattern for that? Up to now I’m using the following code snippet: <span id="tag"><%= @nutzer.tag%> <%= select("nutzer", "tag", Nutzer::TAG_TYPES, {:include_blank => true}) %> </span> After I call the site there appears a select box which has a
2006 Mar 29
0
css, div-tags and ajax
Hi. I copied parts of the ajax-examples in Agile Rails prog. and modified it so it searched for zip-codes. The result is displayed in search.rhtml. The first version looked like this, I liked the look of the "add to cart" in the depot-example. :class => ''button1'' is originally addtocart which I renamed in the .css-file. <% for city in @cities %> <%=
2005 Oct 12
2
AJAX and disapear javascript tags
Hello everyone. I''m writing web aplications using AJAX (library prototype and scriptaculous). I have situation that I want to change content of one div in my site. I make ajax request to server and getting new content of that div. The problem is that this div should have javascript code (e.g. looks like that <div><script>js code</script>
2009 Oct 15
10
AJAX - how to have multiple select form sets implemented?
hi, there :) Consider a blogging application whereby a user is trying to add a new blog. He/she has to select a category. Upon selecting a category from a drop down box, a new sub categories drop down box will be created (hence an AJAX call). Got this implemented and it''s ok. Now, let''s assume that a given blog can have multiple categories (and subcategories). For example, a
2006 Apr 27
7
RJS & Ajax question...
Hi, I''m trying to convert an older Rails application to use Ajax. I''ve already moved my edit and show actions so that, instead of displaying as separate pages, they appear in a <div> on my list view. However, I have two problems: 1) When the user saves the changes, I want to put all the ajax changes in an RJS template. However, form_remote_tag :url =>{:action =>
2005 Aug 17
3
Ajax.Autocompleter
I have been working with the Ajax.Autocompleter for about a day so forgive my ignorance. Is there any value in adding additional callbacks. I want perform an action when the user selects a choice. So I was thinking of adding an option {select: function(selectedElement) {}} similar to the callbacks on Ajax.Request in the prototype library. Call me out if you think I am crazy my feelings
2006 Feb 10
0
AJAX update for select list onchange?
Hi Rails Users, I have a select list that I''d like to use to update a div onchange. Right now I just have the div appear, but not update: <%= select_tag( "profiles_select", option_tags = @profiles, { :onchange => "new Effect.Appear(''the_profile'', { duration: 0.5 } );"
2006 Sep 29
1
Error on drag n drop list after refreshing list using AJAX
My web page (developed in php and MySQL)is having a table with each table cell having a list of related information as list item. First, the list is performing well when page is loaded (i.e. multiple lists are created and list items can be dragged and dropped on each other lists). Whenever double click on specific cell, it''ll invoked ajax function (created by myself) to refresh the
2006 Aug 17
0
Problem updating element with script in an AJAX response
Hi, I''m trying to use AJAX to update an element with a small HTML fragment that contains <script> tags. The problem is that although it seems the script is being evaluated (i.e. evalScripts is true), it isn''t doing what its supposed to. This is the script tag: <SCRIPT
2007 May 30
2
Depot - empty_cart with ajax
First of all id like to say hi to everyone from Argentina, im yet another Depot first-timer. Going through the example, i got to the point where my cart finally runs Ajax-based. And there is a line where Dave says, after all the job is done "You should see the cart in the sidebar update. And you shouldn''t see your browser show any indication of reloading the page. You''ve
2006 Jun 26
2
Prototype Ajax event handlers
I''ve been trying to use the prototype.js Ajax obect''s event handlers (onCreate, onComplete) inside the options tags as below: function updateCalendar(today, id){ new Ajax.Updater("calendars", "calendar.inc.php", {asynchronous: true, onCreate: function(){ showBusy }, onComplete: function(){ hideBusy }, method: "get",
2007 Jul 26
4
populate select box by ajax query with Prototype and IE7
Trying to populate a select box with a value passed in from another select box works great in Firefox, but using IE nothing happens, no data is getting returned back. I commented everything out and put alerts in there and the alerts work in IE but when ajax is getting used it seems to just die...Is this a bug or what am I doing wrong? --~--~---------~--~----~------------~-------~--~----~ You
2006 Feb 27
0
update a second div with Ajax.Updater, when Ajax.InPlaceEditor has just finished to modify another first div
Hi, I''m a newbees in javascripting with scriptaculous, but I wonder someone to help me on that simple (not for me of course !) case : I''d like to update a second div with Ajax.Updater, when Ajax.InPlaceEditor has just finished to modify another first div ? How could I do this in this kind of code : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2006 May 10
0
how to implement chained select box without ajax?
Former post focused on the chained select box with ajax select,but how to do that without ajax using rails? This following url can performance well: www.bigbold.com/snippets/posts/show/1916 but it can only work under firefox,while not worked in ie because it use the HTMLSelectElement.prototype,while ie does not support i am still working to modify the source of the above url,but not successful
2006 Jan 08
2
RoR AJAX select box update?
Hi, I want to update a select box depending on another selected option thru ajax. Heres how I do it # _form.rhtml <select id="budget_coordinator_id" name="budget[coordinator_id]" onchange="<%= remote_function(:update => "budget_project_number", :url => { :action => :get_projects }) %>"> <%=
2006 Feb 04
4
AJAX rendered select doesn''t get submitted
I have implemented the AJAX observe_field to filter the state/province options in my address form. This works great except when I submit the form, @params doesn''t contain the select element. _address_form.rhtml relevant snippet: <%= collection_select(:address, "country", Country.find(:all, :order => "position"), :code, :name, {:prompt => "-- Select
2006 Feb 22
3
how to escape from AJAX URL
This may be a bit difficult to explain, but here goes. I''m developing a web site which has a nice AJAX part to it (thanks to rails). You just click on the link and it take you to the ajax part which is on a seperate page. -The user then selects directories or files from via a multiple menu. -When the user selects a directory (and hits the submit button) the menu is updated with the
2010 Aug 01
0
fields_for can not group its params when ajax
hi book and page is one_to_many relationship.I want to create them in a single form.But when clicking create button,the submitted params for pages are not grouped correctly, i want "book"=>{"new_pages"=>[{"name"=>"", "color"=>""}, {"name"=>"","color"=>""}] but it is