Displaying 20 results from an estimated 5000 matches similar to: "Fall-Through for link_to_remote?"
2006 Jan 23
0
form_remote_tag and Safari (HELP!)
<%= form_remote_tag :url => { :action => ''list_setups'' },
:loading => "Element.update(''setupslist_display'','''');
Element.show(''setupslist_progress'')",
:loaded => "Element.hide(''setupslist_progress'')",
:update => ''setupslist_display'',
2006 May 30
1
DOM values in ERB Variable?
I am trying to post the current brower window sizes into the user''s
session file with a form_remote_tag call as follows:
<%= form_remote_tag :url => url_for(:controller => "welcome", :action
=> "login", :iheight => "1", :iwidth => "2") %>
But how do I get the DOM data for window.innerHeight and
window.innerWidth into an
2006 Jan 29
0
Pagination and AJAX
How does one do pagination with link_to_remote calls so the
pagination can be done with AJAX? For example, this obviously works
out of the box with the standard scaffold:
<%= link_to ''Next page'', { :page => @image_pages.current.next } if
@image_pages.current.next %>
to get users to the next page.
The tutorial at: http://wiki.rubyonrails.com/rails/pages/How+to
2006 Mar 24
2
Basic Auth in WEBrick
Yo all,
All I want to accomplish at this moment in time is simple password
protection around a rails application in development using WEBrick on
a custom port. Just one account would be fine.
I have done an extensive Google hunt for an example, but I all find
are code chunks for starting WEBrick such as:
realm = "Gnome realm"
start_webrick {|server|
htpasswd
2006 Jan 25
1
@params Hash Access
I am trying to load an ActiveRecord object from an ID within a hidden
field in a submitted form. How do I do it?
I get this into the controller with the request:
Parameters: {"action"=>"index", "website"=>{"id"=>"7"},
"controller"=>"msa/setup"}
So, how do I load the Website object from ID 7?
@website
2006 Feb 12
2
link_to_remote (AJAX) and tables: IE issues, validation?
I have a table that lists domain names, with a form next to it to add
new domains.
I have AJAXified this so that new domains are immediately added as table
rows. This works fine in Firefox 1.5/Win, but not in IE6/Win. Domains
are added into the database, but the HTML table is not updated unless
you reload the page.
Some googling tells me there are issues with e.g. link_to_remote
updating
2006 Jun 16
0
link_to_remote v. text_field?
Just curious if anyone had come across wanting to submit the value in a
text_field via link_to_remote [the more obvious way is to use
form_remote_tag]? It''s certainly possible using javascript but was
wondering if theres a rails construct..
--
Posted via http://www.ruby-forum.com/.
2006 Jul 20
5
Need HELP changing link_to_remote to a button
I would really appreciate some help with changing a link_to_remote call to a button of some sort. Here''s a little background.
On the page there are two <div>s. One is a form that lets the visitor enter items. The second <div> is where the entered items get displayed, each in it''s own item <div>.
Each item <div> has two <span>s. The first one
2006 Jan 14
3
link_to_remote where the url contain a javascript variable
Ok, so I am basically trying to use ''link_to_remote'' and pass the value
of a javascript variable as an argument. Something like that:
link_to_remote "my_link",
:update => ''my_div'',
:url => { :action => "my_action", :var =>
''my_var'' }
Basically,
2006 Jan 04
6
Ajax makes me cry
What is the difference in treatment between an ajax link_to_remote and a
form_remote_tag
This works great and adds a list item to an ordered list with
id=form_results
link_to_remote ("Help me please!",
:update => ''form_results'',
:url => { :action => :search_ajax_test },
:position =>
2006 Jul 21
10
Using an image button for "link_to_remote"
All,
I want to do an AJAX request using a custom image button. I currently
have this as a standard button action using "button_to".
What I need is the button equivalent of "link_to_remote". Is there a
helper that I can use, or do I need to build it by hand?
I see button_to_function(), but that sets me up to call a Javascript
function, not post to a Rails action.
Or can
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/.
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 Aug 29
1
Scope problem with form_remote_tag, ajax?
Hi all,
I have tracked an odd behavior down to what I think is an issue of
scope. In short, when I use form_remote_tag to establish an AJAX form,
my database fields don''t get populated when performing an edit on the
record. Those same fields will get populated using start_form_tag and
no AJAX. I think that Ruby can''t find the local object that represents
the database
2008 Feb 01
1
render partial in div
I have this link which when clicked will loop and render more links and
a form from a partial inside of "myDiv":
<%= link_to_remote ''MyLink'' . . . ., :update =>"myDiv" %>
<div id = myDiv>
<div>
<div>
<div>
What I am trying to do is have a form_remote_tag that re-renders the
list of stuff in "myDiv" when
2008 Oct 03
7
form_remote_tag and :with
I am trying to pass the result from a javascript function along with
the result from a text_field with form_remote_tag. This is what I
have so far, but no go:
<% form_remote_tag(:url => {:controller => ''requests'', :action =>
''create''}, :with => "''data=''+request()", :update => ''request_sent'' )
2005 Aug 15
2
Newbie rendering problem
Hi
On every list request i render an item partial through a collection of
items. the item table has 3 columns namely name,anotherName and id. the
item partial looks like
<%@item=item%>
<%= error_messages_for(:item) %>
<tr id="<%=item.id%>">
<% for column in Item.content_columns %>
<td><%=h item.send(column.name) %></td>
<%
2008 Jul 23
0
Link_to_remote object missing
Hello, I''m in troubles trying to use ''link_to_remote'' on Rails 2.1.
Having this page:
<h4>Editing project</h4>
<% form_for(:project, :url => project_path(@project), :html =>
{ :method => :put }) do |f| %>
<p>
Name <%= f.text_field :name %>
Date <%= calendar_date_select :project, :target_date, :time =>
2006 Jul 05
1
form_remote_tag and update
I have a layout which contains multiple divs, (header, menu, content,
footer), content contains <%= @content_for_layout %>.
I have switched all link_to and form_tag to link_to_remote and
form_remote_tag and they are supposed update the content div.
It is working, however instead of updating just the div content, it is
re-rendering the entire layout within the div.
Hopefully someone can
2006 Apr 02
0
Re: updating the dom - Solution
Easy solution. I am using the behaviour.js package. Using this, the solution
was to apply a Behaviour.apply(); command when the XMLHttpRequest() is
complete. So my solution was to use the form_remote_tag properties to help
me call this like such:
link_to_remote("questions",
:url => { :action => ''curator_questions'', :uid => curator.id,
:tid =>