Displaying 20 results from an estimated 10000 matches similar to: "Invoking a remote (AJAX) action via double click"
2009 May 21
1
[PATCH server] Updated look and feel for empty grid views
When empty grids are shown (ex: no VMs in this pool) a specific graphic, message and improved action button are shown. For Task views, the user will see the current filter and an explanation that no tasks match that filter.
Signed-off-by: Jeremy Perry <jeremy.perry at redhat.com>
---
src/app/views/hardware/show_hosts.rhtml | 11 ++++-------
src/app/views/hardware/show_storage.rhtml
2006 Jun 27
2
Serve an image up from an action
What I am really trying to do is use the file_column plugin for the file
uplaod/storage (to a non-application directory), but serve up the images
on my own (without the mage_tag url_for_file_column technique)
In the java world, I would simply do something like this:
<img src="myImageServlet?id=1">
and myImageServlet would simply return the appropriate mime headers and
data
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 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
2009 Oct 06
0
[PATCH server] new host networking wui
Frontend and backend changes needed to implement
http://ovirt.org/page/Networking_UX#Option_3
---
src/app/controllers/host_controller.rb | 38 ++-
src/app/services/host_service.rb | 35 ++
src/app/views/host/edit_network.rhtml | 593 ++++++++++++++++++++++++++++----
src/public/stylesheets/components.css | 76 ++++
4 files changed, 676 insertions(+), 66 deletions(-)
diff --git
2009 May 15
0
[PATCH server] final cleanup for service layer refactoring.
I've pulled out the no-longer-necessary remnants of the old way of handling auth and before_filters as well as fixing a couple bugs that had crept in along the way.
Unit test fixes for the refactoring will follow in a subsequent patch.
Signed-off-by: Scott Seago <sseago at redhat.com>
---
src/app/controllers/application.rb | 46 ----------------
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})%>
2007 Oct 26
3
--prefix, url_for and image_tag
First time here, so I hope this isn''t a FAQ (although I did check
*the* faq).
I''m using mongrel_cluster with --prefix, and it is very slick. Thanks
for that. But I had one problem. At one point in my little app, I
have something like this:
image_tag(url_for(:action => ''picture'', :id => 1), :size =>
"160x200")
In this scenario,
2010 Dec 22
0
image_tag and send_data
i''m storing images in database.
i have this action in controller:
def image
begin
item = StoredItem.find(:first, :conditions => {:id =>
params[:id]})
rescue
return
end
return if item.nil?
if item.image_binary.nil?
render :nothing => true
else
send_data(item.image_binary, :type => item.image_datatype,
:disposition =>
2009 Aug 18
1
[PATCH server] Add of a button destroy for disabled hosts.
Add of a button destroy for disabled hosts.
This button behave in a similar way than the delete button of a VM.
Signed-off-by: Sylvain Desbureaux
<sylvain.desbureaux at orange-ftgroup.com>
---
src/app/controllers/host_controller.rb | 5 +++++
src/app/services/host_service.rb | 15 +++++++++++++++
src/app/views/host/show.rhtml | 17 +++++++++++++++++
3 files changed,
2006 Apr 22
0
Re: Rails Digest, Vol 19, Issue 611
Thanks szymek for putting me on track. What I did was re-intstall the
file_column plug-in but I still got the same error so I added @recipe =
recipe and then then error changed to something about nil.first. So I added
a
rescue "no image"
to the end of my image_tag like so
<%= image_tag url_for_file_column("recipe", "image") rescue "none" %>
and
2009 Oct 20
2
Kernel panic w/ DAHDI 2.x/Digium TE220B
I've seen this consistently on three systems, with three different
cards, and multiple versions of DAHDI. At first I thought the issue
only occurred on newer, Nehalem-based, systems, but I reproduced it on
a Core 2 Duo box as well. I've tested with dahdi-linux 2.2.0.2, dadhi-
linux-complete 2.0.0+2.0.0, 2.1.0.2+2.1.0.2, and 2.2.0.2+2.2.0. The
card is a Digium TE220B which uses the
2007 Sep 20
1
undefined method `request' for "products":String ?
Since updated edge yesturday i have had a series of errors related to
undefinded methods for "products":String.
I do have these controllers namespaced.
====
Errors example 1:
undefined method `request'' for "products":String
Extracted source (around line #2):
view:
<tbody>
<%= render :partial => ''admin/products/product'',
2006 Feb 28
4
No action from AJAX link_to_remote...
AJAX & Ruby & Rails newbie here.
I''ve got a link to remote that I believe should be working, but doesn''t
seem in fact to do *anything*. I''m looking at the webrick log, since
the Book says I should be seeing some hot POST action in there, but
there''s literally no change when I click on the JS link. From looking at
the source that''s
2007 Aug 29
3
Queue Agents on Remote Asterisk server?
Hi,
I have a main Asterisk server, and a server at a branch location
connected via a IAX2 trunk. I want to have a queue at the main
location that has people from both locations as members. I got this
working, but the trouble comes when the round-robin logic selects a
member at the branch office to call. If that user is unavailable,
their voicemail answers the call, and the main server
2006 Nov 04
0
how do I debug a utorial ?
I am working on tutorials and am working on the photo slideshow.
http://rubyonrails.freetutorial.info/index.htm I have found some problems. The tutorial recommends downloading the source code zip file, but there is no address to download that I can find.
I seems to be avery good tutorial.
One of the problems I am having is an error with the "url_for" and can''t discoover the
2006 Jan 25
1
Using image_tag in Action Mailer???
I''m trying to send a HTML formatted email with Action Mailer and
everything works fine except for when I try to use a Rails image_tag in
my email template. Does anyone have experience doing this? I keep
getting this error
|undefined method `request'' for #<SamplesDirectMailer:0x231d4d8>|
Extracted source (around line *#7*):
|7: <div style="position:absolute;
2005 May 13
0
Fw: directory permissions
----- Original Message -----
From: "Stuart Highlander" <fsb@ntwsdb.com>
To: "Aubrey King" <aubrey@rochesteross.com>
Sent: Friday, May 13, 2005 4:46 PM
Subject: Re: [Samba] directory permissions
> aubrey,
>
> when i've run into this kind of problem, it was usually unix file
> permissions that was the hang-up.
>
> this is what i did to solve a
2006 May 14
1
Dragable element
Hey all
Im having a problem... Ok, this is the situation...
I have a small product image, on which ive floated a div over it, and
defined it as draggable. Now, this works, and i can drag it around no
problem. great. but then, what i want to do is, based on the location of
that dragable element from the top and the left, to move (using the
Effect.MoveBy method) a larger image - so effective
2008 May 16
0
Problem with :action => 'destroy' in url_for
url_for( :controller => ''foo'', :action => ''destroy'', :id => 1 ) => ''/
foo/1''
url_for( :controller => ''foo'', :action => ''destroy_x'', :id => 1 ) => ''/
foo/destroy_x/1
url_for( :controller => ''foo'', :action => ''destroy'', :foo_id => 1 )