similar to: link_to_remote issue after upgrading to rails 1.0

Displaying 20 results from an estimated 300 matches similar to: "link_to_remote issue after upgrading to rails 1.0"

2006 Feb 24
1
Form within table?
Ok, I figured out my problem (kind of) from "Help a n00b?" The problem was that (at least in Firefox) you can''t have a form within a table, it has to be the other way around. Once I put the form on the outside everything started to work. w00t! -- David Olbersen dave@toasterwaffles.com
2006 Mar 24
2
ajax redirection
Hi, Is there a simple way to redirect towards another page (controller, action) when using form_remote_tag ? I used it tipically to check fields of a account login form. I''d like if the user exists, he''s redirected towards another page, otherwise I display some error div''s. Any ideas ? Thanks a lot. Seb
2006 Feb 17
4
Best practice for showing errors AND updating list
Morning/Afternoon/Evening All, This is my first post to the ruby message board so if my request is better suited to another location just let me know, The problem I keep coming up against is with a listing of objects and updating that list via AJAX (for arguments we are talking about a list of users). As it stands I can currently submit a form, and update the list (using :update
2004 Jan 08
3
pictorG
Hi! Attached is the current version of my image organizing program. If you dbl-click on a thumbnail, it will show the image (1:1 zoom) in a dialog, and eat some memory.... Gergo -- +-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113 ]---------+ | http://www.mcl.hu/~kgergely "Olyan langesz vagyok, hogy | | Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval
2006 Jan 14
2
link_to_remote and an id that points to a text_field
Hi! I''m having trouble with the following thing: I have a view with a text_field. What I want is to call a remote method with the value of the text_field as the :id I supply to link_to_remote. How do I do this? It''s about an empty form, so the text_field doesn''t have a value when the page is loaded. Grtz, Wouter -- Posted via http://www.ruby-forum.com/.
2005 Dec 30
11
Losing my mind with Ajax link_to_remote
I''m playing around with Rails, and I can''t get this to work. I just can''t seem to wrap my brain around it. I''m having some trouble doing an Ajax navigation column. Here''s what I have: view layout: <div id="navigation"> <%= render(:partial => "navigation", :collection => @categories) %> </div> My
2005 Mar 24
5
Using html_options with link_to_remote??
Why doesn''t this output class="delete" into my html? <%= link_to_remote image_tag("delete"), :update => "relationship_" + @relationship.id.to_s, :url => { :controller => "relationships", :action => "destroy", :id => @relationship.id }, :html_options => {:class => "delete"} %> Regards, Ben
2003 Nov 10
5
picture organizer -- need a bit of help
While trying to develop a little wxruby program, I have some difficulties, namely: 1. I want to read all kind of graphic files, (mainly jpg, png and tiff is enough...) But, the current implementation seems to deal only with bmps and currently there is no way to call ::wxInitAllImageHandlers. 2. I think DnD is required in my case: I want to drop filenames on a TreeCtrl. I will try to add
2006 May 19
1
how to access ActionView::Helpers::JavaScriptHelper::escape_javascript in a model (a newbie question)
Hi all, Please forgive me for this newbie question. But I really want to know how how to access ActionView::Helpers::JavaScriptHelper::escape_javascript method in a model. I can access this method in view, but when call it in the model, it ends up with undefined method. It seems to me they are in different scope. So what''s the best way to access view helper methods in model. --
2006 Apr 07
3
RJS removing content of div, but not div itself
Hi, I''m creating a list of ingredients on a page. When the user clicks the ''Add Ingredient'' button a record gets added to the db and the ingredient gets added to the page. On the page, each record is represented by a <div> with three <span>s inside. One of the <span>s has a link_to_remote to ''delete'' the ingredient. When the link
2008 Oct 23
4
Problems With Rich Text I Think
I am trying to run a program called content composer and the text in the text field is invisible until i highlight it or sometimes just clicking around it will make it pop up for a bit. Also the words aren't wrapping correctly. Here are the errors i get when i run it command line. Code: fixme:mpr:WNetGetConnectionW Don't know how to convert L"\\junker" to an unc
2006 Nov 04
0
headers[''Content-Type''] & link_to_remote on Rails Edge
I''m on rails edge and am calling an after filter on my actions. Works except for my ajax calls via link_to_remote. When I inspect headers, I see the ''Content-Type'' is key for an object rather than a string. Shouldn''t it be a string? Anyone know if this is a bug or if I''m dealing with this incorrectly. Thanks, Jamie The code: after_filter
2006 Aug 03
0
link_to_remote() question from a newbie.
Hello, I am trying to utilize link_to_remote() in the following manner: <%= link_to_remote(exchange.name, :update => ''mydiv'', :url => { :controller => ''attributes'', :action => :list_user_attributes, :class_id => class.id, :user_id => user.id } ) %> And
2006 Aug 17
2
link_to_remote question
I''m using link_to_remote to call a method that deletes an item <%= link_to_remote " [delete]", :url => { :controller => ''user_admin'', :action => ''employee_type_delete'', :id => employee_type.id }
2006 Jul 06
2
link_to_remote method display a loading image?
Hey guys, what would be the best way to incorporate this into the builtin link_to_remote() method? document.getElementById(''main'').innerHTML = ''<img src="/images/loading_small.gif">''; Id like for the item above to take place while the page is loading. I''m currently doing this with another javascript but would prefer to use rails.
2006 Jul 10
1
link_to_remote questions
Hello, I tried link_to_remote to see the build in AJAX capabilities with rails for the first time for me, I tried the following code and it worked: <%= link_to_remote( "some link", :update => "some_div", :url =>{ :action => :someaction }) %> OK, it has worked, but I have two questions here: 1- When moving
2006 Jul 10
0
link_to_remote, how to send "data" to another <div> when something system detects something wrong???
HI, I try use link_to_remote to do a ajax update on my page, when eveything is OK, the syetem returns data to the ajax zone, but when there is something wrong, like the entry wasn''t correct, I want to send data(a message) to another zone (the zone is defined in the layout (message zone used flash[:notice]) I was never able send data to the other zone, because it is on the layout, and I
2006 Jul 19
1
using link_to_remote to post form values
Hi, I have a website in which I am attempting to post certain form values back to my controller using link_to_remote. I need to do this without any additional form tags, as it is already within a larger form. I have found a mod that i think would do this @ http://dev.rubyonrails.org/ticket/2137 but unfortunatly the site is down right now. Does anyone have any ideas on the best way to implement
2006 Jul 21
1
Saving multiple variables using link_to_remote
Hi guys, I have a form with 10 fields and was wondering how you can pass multiple values and saving them into your database using link_to_remote. Is it doable? thanks, Bing -- Posted via http://www.ruby-forum.com/.
2006 Jun 01
1
link_to_remote show then hide
Hi, I have a link_to_remote and it update a div. After the first click the div is opened with the information. Now I want to be able to close hide the div . How should I do it. Someone at the IRC told me to use toggle. But what I want is a bit odd. I want that it will not do again link_to_remote but toggle. Tnx Kfir