similar to: link_to_remote > in :action , interrupt ajax to render a new page outside the :update div ?

Displaying 20 results from an estimated 4000 matches similar to: "link_to_remote > in :action , interrupt ajax to render a new page outside the :update div ?"

2006 Jul 26
3
adding class or id tags to tags like linkto and form
I''m trying to figure out things like this by myself so I don''t bother my developer and slow him down. How do I add class or id css attributes to tags like this: <%= form_remote_tag :url => { :action => "send_url" } %> <%= link_to_remote "My Profile URL", :url => { :action => "send_profile_url", :id => @user.id } %>
2006 Apr 26
8
Newbie: Hide div I''ve just show using link_to_remote?
I''m using link_to_remote to show details for an item that''s clicked. I''d like to hide the div with the next click, or alternatively have a "Hide" link within my div. What is the best way to accomplish this? Here''s my existing code: <% for task in @mytasks %> <div class="rowFormat"> <%= link_to_remote(
2004 Apr 13
2
Vonage goes to .ca
FYI http://www.itbusiness.ca/index.asp?theaction=61&sid=55298 did not like this by line in the story t"he CRTC has said it will likely regulate voice over IP the same as other phone services."
2011 Feb 15
7
Hide/Show Div and link_to_remote
Hi I want to show some info and provided an ''edit'' button next to it. This will change the display info to an editable form. I''ve seen this done before, but what I can''t figure out is whether I have to use an actual remote action to the rails server? I think I should be able to render both the edit box and the display info as seperate divs, and then show/hide
2006 Jan 23
16
Adding form fields (extending a form) on the fly
Hello, I just can''t seem to find a way to extend a form dynamically in ROR. Say I am writing a recipe website. There is one form to enter the recipe. There is room for N number of ingredients (let''s say a text field for each ingredient name and selection list for the amount). What if the user wants to add more than N ingredients as he types them in? how do I do this without
2006 Apr 27
4
pdf render inline .... update ''main'' div
Hi, I want to keep the layout and just to a link_to_remote to update the=20 div id ''main'' Using this in the controller action send_file "public/pdf/my.pdf", :type =3D> ''application/pdf'', = :disposition=20 =3D> ''inline'', :stream =3D> false I get this. The raw pdf code sent replacing the main div with :
2006 Apr 30
0
Using a DIV or SPAN for a content_tag (link_to_remote)
I was wondering if there was an easy way to over ride the <a> tag that is used as the content_tag() value when using link_to_remote(), perhaps using a SPAN or DIV. I see follow the chain in the source code and I guess I could write my own helper, but I was wondering if there was a way to do this already? I know already that SPAN''s and DIV''s are not supported
2006 Mar 09
5
link_to_remote id or class
Can anyone out there tell me how to add a class or id property to a link using link_to_remote? I''ve been banging my head on this for far too long. Thanks Clint
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
2007 May 10
2
link_to_remote fix, should this be added to edge rails?
After looking at the link_to_remote tag for the first time, I found it broke when javascript was disabled. Below is one possible solution I found and would like to suggest that this idea is promoted into rails. # # provide fix for link_to_remote tag when javascript is not enabled def link_to_remote_fix(text, options) link_to_remote text, options, :href => url_for(
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 }
2009 Jul 11
6
conditional link_to_remote not re-rendering
I have an int, ''floorfrozen,'' in my table, ''channels'' that can take a value of 0 or 1. When I render a page, an image in a link_to_remote is called differently depending what the value of channel.floorfrozen is, in a partial, as follows: <% if @channel.floorfrozen %> <%= link_to_remote image_tag("/images/icecube.gif"), {:url =>
2004 Jun 07
1
not able to change passwd
Hello, Sorry to have posted in the wrong thread, resending the email. We have a samba domain and now some of the users from WINDOWS 2000 Pro are unable to change their password, below is the error : They are able to login without any problems. pdb_free_sam: SAM_ACCOUNT was NULL [2004/06/07 13:52:29, 0] smbd/chgpasswd.c:check_oem_password(817) check_oem_password: incorrect password length
2006 Mar 01
4
link_to_remote, doesn''t receives params?????
Hi, I''m using link_to_remote to trigger an ajax zone, but depends on a varaible, the new zone has different features. before I has a button inside a form. so when I click on the button, I get the value of the variable inside "params". but since I use link_to_remote now, I don''t get any value from params anymore.... Is there some way I can get the data inside a form
2006 Jun 07
2
How to send post data with link_to_remote?
Hi, I''m trying to send a post body with my link_to_remote call. Prototype supports the ''postBody'' option, but I can''t seem to get link_to_remote to set that. Here''s what I''m trying: link_to_remote ''move up'', :url => { :controller => ''upload'', :action => ''position_ajax'', :id
2006 Mar 04
3
:class in link_to_remote?
Is there a way to set the class of a link in link_to_remote? I tried adding :class => "this_damn_class" after the :url hash and it didn''t work. I went ahead and did it manually using remote_function, i.e. <a class="this_damn_class" href="#" onclick="<%= remote_function ..., :url => {...} %>">My Link</a> -- Posted via
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
2007 Nov 20
4
link_to_remote style
I am trying to use link_to_remote to update a div tag with some content. This part works fine. The thing I am having an issue with is that I am trying to format this link with a ''class'' tag and it is being ignored. Can anyone shed some light on this? I have tried brackets in different places with different options and tried other variations with no luck. I am guessing my
2006 Apr 04
2
How to add CSS tips to link_to_remote?
The following code of tag clouds implementation: <%= link_to(h("<#{tag}>"), "tags/listmytag/#{tag}", { :style => "font-size: #{font_size}" } ) -%> I want to change it to ajax style: <%= link_to_remote "<#{tag}>", { :url => { :controller => ''tags'', :action => ''listmytag'', :id =>
2008 Mar 24
2
link_to_remote and restful routes/urls
is there a way to access a restful resource with mike''s new link_to_remote helper? something like: <%= link_to_remote h(user.name), :update => "div_id", :url => user_url(user) %> of course, that doesn''t work. i have also been trying things like: :url => controller.asset_host +