Displaying 20 results from an estimated 3000 matches similar to: "Grabbing banners from other sites."
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 =>
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 =>
2008 May 24
1
link_to_remote, image_tag, mouseover is this possible?
Hi guys,
I was wondering if you are able to have a link_to_remote, having an
image_tag and the link_to_remote has a mouseover event that updates a
div. Does the image_tag need the mouseover event? I currently have:
<%= link_to_remote(image_tag(@p_image.public_filename(:thumb)), :update
=> "big_pic", :onmouseover => {:action => :color_change, :id =>
@p_image.id})%>
2006 Jan 08
0
link_to_remote(image_url url_for_file_column(product, "image
I apologise for bad formatting. I don''t know how to make it nice in an
email
How do you nest image_url tags into link_to_remote tags. The following
creates the error:wrong number of arguments (3 for 2)
<%= link_to_remote(image_tag url_for_file_column(product, "image_url"),
{ "class" => "small_product",
2009 Nov 08
1
link_to_remote with image_tag using Paperclip
I am creating a layout of images with links.
In Photo model:
has_attached_file :mainimg, :styles => {:original =>
"465x365", :thumb => "80x70"}
In my Front controller:
def index
@photos = Photo.find(:all)
@photos = Photo.paginate :per_page => 28, :page => params[:page]
end
In index.dryml:
<% outer = ''a'' %>
2006 Feb 03
0
component/ajax variable access problem
I''m trying to embed a little image gallery on each page. The photos
need to be different for each page. I just want to use ajax and let
them click on the photo and have it show the next image.
When the page loads, it shows the correct image. But when clicking on
it, it gives an error because it doesn''t know what @images is anymore.
On the view for the home page:
<div
2006 Jan 19
0
AJAX Visual effect Loading
Hi people, I made a portfolio gallery on my site
www.pulsedev.net/portfolio
I''m happy with it except for the fact that I setup a loading gif but the
new page starts to load before its ready, so the image inside the page
loads in front of the users eyes.
I would really appreciate some help on this.
The way I have set it up is by using a link_to_remote function like so
<%=
2008 Jul 21
2
using image with submit_to_remote
Hi
How can I give an image to submit_to_remote .I could successfully do
it with link_to_remote as below..But the same not working with
submit_to_remote
<%= link_to_remote( image_tag("/images/cancel.png", {:alt =>
''Cancel'', :class=>"noborder",:title=>"Cancel"}),
{:update => "search_contact_div",
:url
2006 Mar 04
0
lesson learned: careful with :update in link_to_remote
A link_to_remote call was generating Ajax.Request instead of
Ajax.Updater. I couldn''t for the life of me understand why. There was
some extra indirection because I used there a helper of mine that
receives an image and generates a link_to_remote with image_tag and
some stuff for image rollover.
After browsing the sources in the API website (hey, that "[ show
source ]"
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
2006 Mar 08
2
fade out and then fade in....how to make it work?
I''m trying to have one image fade out and then another slidedown upon
completion of the ajax call. I can''t get the timing correct. How do
you do it? Here''s what I''m trying (this does not work)
<%= link_to_remote(image_tag(url_for_file_column(product, "image_url"),
:update => ''right_content'',
:url => {
2006 Dec 04
0
lint_to_remote for image
I have some simple code so that when you click on a thumbnail,
it''s supposed to display the image enlarged in the enlargement area.
The page looks right, but when you click on a thumb nothing happens, it
just moves up the page. Why is the href=# happening ? The generated
html comes after the sample rhtml
<%= image_tag @enlargement, :width => "279", :height =>
2006 Aug 04
3
<img onclick> vs link_to_remote()
In one of my view , I have an image the user need to click to close a
<div>selections</div> added by an Ajax call.
if I use :
<img src ="/images/icon_closeitem.gif", size="16*16",
border="0",alt="Close Selection", title="Close", onclick="<%=
remote_function(:url => { :controller => ''property'',
2006 Apr 30
1
link_to_remote possible with :class AND progress indicators?
I have the following code:
<code>
<span id="loader" style="display:none;">
<%= image_tag "spinner.gif" %></span>
<strong><%= link_to_remote(''Add Entry'', {:update => ''add-entry'',
:url => { :action => "show_add_entry" }},
:loading =>
2006 May 05
0
JavaScript Prompt and link_to_remote
Hi all,
I would like to get one of the parameters for a link_to_remote with
JavaScript prompt. So far I have this:
link_to_remote(image_tag("/images/interface/add.png"),
:before => "$name = prompt(''Name?'')",
:url => { :action => ''add_child'', :id => node, :name => XXX },
:update =>
2008 Apr 21
1
link_to_remote / url path question
I have this helper / link_to_remote link I am trying to switch from
destroy/delete to a separate method/action. Here is the original code.
link_to_remote image_tag(''delete.png'', :class =>
''png'', :width=>''12'', :height=>''12''), :url => profile_message_path(@p,
message), :method => :delete
Current path that
2008 Jul 24
1
How to add link_to_remote element with RJS?
Hello,
after executing an action, I add an <li> element to an existing list
using a RJS template:
page.insert_html :bottom, :contributors, "<li
id=''contributor.#{@contributor.id}''>#{@contributor.user.name}</li>"
but I need to add an image with a link_to_remote as I have in a
partial page:
<li id="contributor.<%= contributor.id
2006 Jan 28
0
calling javascript via "eval(request.resopnseText") help needed.
I have a link_to_remote method:
<%= link_to_remote image_tag("clock_run.gif", :border=>''0''),
:update => @task.id,
:complete=>"eval(request.responseText);",
:url => {:controller => ''time_entries'',
:action => ''punch_in'',
:id => @task} %>
The controller
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
2008 Jul 25
0
doing Selenium tests and :confirm inside a link_to_remote does not work
Hello there.
I have a problem doing Selenium tests.
When I try to test my delete method doesn''t prompt me the respective
alert which otherwise would appears before run the destroy method on
the controller.
Without Selenium the application prompt me as the regular way but
within Selenium things go badly.
Here is a part of my view:
<%=link_to_remote