similar to: "can't modify frozen string" error in Ajax.Updater

Displaying 20 results from an estimated 2000 matches similar to: ""can't modify frozen string" error in Ajax.Updater"

2006 Jun 12
0
Passing parameters to ''remote_function''
Hi, I am trying to use the ''remote_function'' helper method from the PrototypeHelper class on a the onblur event of a text_field for filling a form with data via AJAX. How can I get the value of the text_field for making a query to the database in the controller action? <%= text_field("item", "code" , :onblur => remote_function(:update =>
2006 Jun 12
1
multiple observe_field''s and IE 6
Has anybody ran into any problems using mulitple observe_field or multiply remote_function calls when the browser is IE? I have a search and retrieve app that works very well in Firefox or Safari, but in IE, the app sometimes just sits there for minutes and then catches up all at once, or never at all. I just want to know where to start looking to solve this one, as most of our customers will be
2007 Jul 12
1
remote_form_for behavior on javascript submit();
Hey all, Tried this on the IRC channel but after an hour i figured nobody that was on knew, so i''ll try it here. I have a rhtml page with: <% remote_form_for(:performance_goal, :url => user_performance_goal_path(@user.account, @user, @performance_goal), :html => {:id => ''sidebar_form'', :method => :put}) do |f| %> <%= f.text_area :impact, :size
2006 May 09
6
RJS, & mulitple Drop Down Boxes.
Hello Again Rails Folk! I''m trying to creat a page similar to what the person is doing here... http://mudabone.com/aietc/?page_id=410 Instead of doing it the way he/she has, I decided to use RJS files, or at least I tried. Here''s my view <%= start_form_tag %> <%= javascript_include_tag "prototype" %> <p> Union: <div id="union">
2008 Jul 23
1
Rails Rewrite rule (on mod_rails)
Hello, I''m running fine my application on the dev server with apache2 and mod_rails, but on the production server I have a strange issue.. it seems like something is wrong with httpd.conf of .htacces.. the dev server is a DreamHost PS and I''m configuring the production one one HostGator. I have a public/users/ folder with member profile images and a users controller..
2006 Feb 07
4
Dynamic url with javascript? - Help Please
Hi, I''m trying to call a remote function when a combobox option is selected, passing as an argument the current value of the combobox (paramenter "panel_id": <select id="server_interface_jack_switch_panel"
2008 May 30
4
How to deal with observe_field in partials?
Hiyas I''m having a little problem with a observe_field in a partial "bokings/room_list": <%= select_tag "room_#{room.id}_grownups", options_for_select([0, 1, 2], room.grownups.length) %> <%= observe_field "room_#{room.id}_grownups", :url => set_number_of_grownups_booking_room_url(:id => room.id), :with =>
2006 Aug 07
2
Select Box Question
Hi, Yet another newbie here... I''m writing an appliction in Rails, and I''ve Ajaxified my select boxes so they update dynamically. I used the "observe_field" method to monitor changes to my select box. I find that it''s kind of erratic... it updates constantly and makes the selection for me, based on where my mouse happens to be hovering when it does its
2008 Oct 24
4
Railscast 75, Observe_field and Shopping Cart
Hi all, I have the shopping cart page where a user can add items dynamically through ajax as explained in Railscast episode 75. I am using observe_field to observe the ''quantity'' and ''cost'' fields to update the total field for each item. This does not work however, for records that are added through the Ajax. How can i name the fields and observe them as i have
2008 May 05
1
Passing values selected with onchange remote_function
How do i pass the value selected from a drop down selection and then extract it in rjs <% select("what", "hello", @selection, {}, {:onchange => remote_function(:url => "test", :my_variable => "hello again") } ) %> thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google
2005 Oct 11
2
Pushing Javascript Helper to external file.
I have a table and when I mouseover a row I want a pop-up with some additional information for that specific row (called remotely). I can do this easily with something along the lines of... onmouseover="<%= remote_function(:updated => "notediv", :loading => " Element.show(''note'');", :url => {:action => ''get_note'', :id
2008 Jan 03
0
remote_form_for with auto_complete_field
Hi friends I have problem with auto_complete_field. I have used auto_complete_field with in the remote_form_for. But when we enter the text in auto_complete_field two actions are calling 1. auto_complete_field action 2. remote_form_for action I need to restrict the form action when we enter text on auto_complete_field Could u give any ideas? <div
2008 Sep 04
3
Can you use observe_field to watch a select list and then update the contents of a text field?
Before I waste more time trying to figure that out, I was wondering if it''s even possible? The Rails Way says that observe_field by default will trigger changes in text fields and text areas, and on clicks for radio buttons and check boxes. So perhaps I''m using the wrong tool here? Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you
2006 Aug 10
5
RJS in Internet Explorer to update a list box
Hi, I''m trying some RJS to update a series of list boxes in which the user selects a state, and the following list gets updated with a list of counties, and the same for the next list of areas. My code works perfectly (albeit a bit slow) on Firefox, but on Internet Explorer it clears the list box (instead of filling it) and Netscape shows all the counties cramped together on one
2005 Sep 01
0
Teething problems with Ajax.updater
Hi all, Forgive what I expect is a silly question. I have the following code: #CONTROLLER def calculate render :partial => ''calculate'' end #CALCULATE PARTIAL <%= update_element_function("update_1", :position => :bottom, :content => "<p>New product1!</p>") %> #VIEW <p><label for="order_unit_price">Unit
2009 Nov 24
2
mongrel stand alone for small site
Hello, I just completed my first rails app. I''m currently signed up at HostGator with a shared account. I noticed that they run their rails apps with just the mongrel (non Apache load balanced/clustered) server. I''ve read some mixed information about mongrel. Some say its ok by itself, some say no. For a small site with maybe 500-1000 hits a month, will the mongrel service by
2008 Sep 07
1
remote_form_for, paths, and partials
hi, i''m having a little trouble rendering a partial that uses a remote_form_for and is in another controller. <%= render :partial => "reviews/new"-%> and in the partial i have only this, inside another controller <% remote_form_for @review do |rv|-%> <%= rv.hidden_field :value, :value => 1 -%> <%= rv.image_submit_tag "thumbsupnc.png" %>
2006 May 23
1
Help with observe_field
Folks, When I use observe_field, I get a javascript error "Form is not defined". Any thoughts? __View: search.rhtml__ <label for="search">Search:</label> <%= text_field_tag :search %> <%= observe_field(:search, :frequency => 0.25, :update => :search_hits, :url => { :action =>
2006 Jun 07
0
javascript that remote_function creates
I''m tring to use remote_function instead of writing all the javascript out, but am having difficulties.. I have this code in a layout: <body onload="<%= remote_function(:update => ''show_active'', :url => {:action => ''show_active_bugs''}, :complete => visual_effect(:blind_down, ''show_active'')) %>">
2006 May 03
1
form :onblur => ''this.form.submit()'' doesn''t do AJAX
Hi, I''m looking to create a form that gets submitted using AJAX after an element loses focus. <% remote_form_for :person, @person, :url => { :action => "save" }, :update => ''form'' do |f| %> <label for="person_fname"><span class="req">*</span>Name</label> <div class="form_el"> <%=