similar to: svg image link

Displaying 20 results from an estimated 8000 matches similar to: "svg image link"

2007 Mar 28
5
link_to best practice
I''m looking for best practice for creating a hyperlink which has both an icon and text. I am currently using this in my view: <%= link_to image_tag(''icons/add.png'', { :align => ''absmiddle'', :border => 0, :size => ''16x16'', :alt => ''New education record'', :title => ''New education
2006 Apr 10
6
image_tag adding request parameter
I have noticed that the image_tag helper method now appends a request parameter to the generated src attribute. With Rails 1.0/actionpack-1.11.2 I had <img src="/images/rss.gif" /> Now (1.1/1.12.1) I get <img alt="Rss" border="0" src="/images/rss.gif?1142366545" /> Is there any use for that number? Where does it come from? This is very far
2006 May 23
3
image_tag problem
Hiall, I want to make an image_tag from within a controller in order to be able to present a link (with a status image) in a view. Here is my controller method (in file webca_controller.rb, hence WebcaController) def untouched_status_image_tag image_tag("open", { :alt => "Offen", :title => "Offen", :size => "12x12", :class =>
2023 Mar 07
1
insert hyperlink into svg graphic
This was actually the first thing that ChatGPT debugged for me. The issue was that I was able to click on the link when I displayed the raw SVG in the browser (you can use that to test whether the syntax is even correct), but not when the svg displays inside a html page with the <img ...> tag. ChatGPT correctly identified the issue and suggested a solution using <object ...> tags
2023 Mar 07
2
insert hyperlink into svg graphic
Perhaps this thread on stackoverflow (from a search on "include hyperlink in svg graphic") may be of use: https://stackoverflow.com/questions/41970535/a-hyperlink-in-svg-use Cheers, Bert On Tue, Mar 7, 2023 at 12:34?AM Rusty Travis <rusytravis19 at gmail.com> wrote: > Greetings, > > I am creating plots of weather data and wish to include a link to the > data source
2023 Mar 08
1
insert hyperlink into svg graphic
Hi On 8/03/23 15:27, Rusty Travis wrote: > On 3/7/23 13:12, Paul Murrell wrote: >> Hi >> >> I think the main issue here is that you are *drawing* text on the >> graphics device, so I would only expect to see literal XML text output >> in the result. >> ''' >> >> Hope that helps > > Thank you for your consideration of the
2023 Mar 08
1
insert hyperlink into svg graphic
On 3/7/23 13:12, Paul Murrell wrote: > Hi > > I think the main issue here is that you are *drawing* text on the > graphics device, so I would only expect to see literal XML text output > in the result. > ''' > > Hope that helps Thank you for your consideration of the matter, but that seems extraordinarily overly-complicated for the results of
2023 Mar 07
1
insert hyperlink into svg graphic
Greetings, I am creating plots of weather data and wish to include a link to the data source into a title() object in the plot. My syntax must be wrong though, as the hyperlink doesn't display, just the text and tags. > svg("/tmp/temps.svg", width=9, height=6) > #plot created here > title(sub="produced by Rusty Travis? \nusing data from <a
2006 Mar 11
8
SVG in Rails
How can I show an SVG image in a view - I only see how to use jpgs or pngs -- Posted via http://www.ruby-forum.com/.
2008 May 19
4
REST urls and Authenticity Token
Hi, I have a few questions regarding REST and the Authenticity Token. I''m using a RESTful aproach for my small project and everything worked fine untill I wanted to destroy a record. Lets say we have a listing of folder (a folder is just a record) and I want to destroy one by using this link: <%= link_to image_tag(''icons/folder_delete.png''), {: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})%>
2008 Oct 17
1
link_to + image_tag
i want to integrated link_to with image_tag before i did link_to with image_tag like this <%=link_to image_tag(image.filename
2006 Jun 09
5
Using link_to with an image tag & link text
Hi , I was trying to use link_to along with image_tag to setup a link that would open in an external window. But I was unable to make a link using both text & an image So my current workaround looks like this inside a partial where link is http://foo.com & text would be descriptive <img src="images/arrow.gif" border="0"/> <%= link_to(text, link, :popup
2006 May 09
3
Named link to image
Hiall, Call me stupid if you like .,) but it seems i can''t figure out how to get a named link using a combination of link_to and image_tag. What I need is basically a link displaying a name along with some image to indicate status (open,working,finished). I found no combination of link_to and image_tag that accepts a name, this seems to be solely used for making whole images into links
2007 May 28
1
svg as a spescial case for image
SVG starts to become more useful in browsers like Firefox, OmniWeb, Opera and soon Safari. There is a couple problem. Since no browser support svg embedded with img one need to fall back to html from: <object data="/path/to/img.svg" type="image/svg+xml" width="512" height="384">Alt text</object> Second, one need to write the width
2010 Sep 01
1
[PATCH 1/3] Adding the VM Pool migration for vms
Signed-off-by: Simon COURTOIS <scourtois at linagora.com> --- src/app/controllers/vm_controller.rb | 16 ++++++++++++++ src/app/views/vm/edit_vmpool.rhtml | 36 ++++++++++++++++++++++++++++++++ src/app/views/vm/show.rhtml | 3 ++ src/public/images/icon_vmpool_11px.png | Bin 0 -> 542 bytes 4 files changed, 55 insertions(+), 0 deletions(-) create mode 100644
2006 Aug 04
5
image_tag + ActionMailer
Hi, Any idea why image_tag doesn''t work within an email template? I''m trying to generate the URL for an image and I''m getting the following error. undefined method `request'' for #<Mailer:0x6a719e0> I''ve been able to use link_to but no luck with image_tag. I''ve seen a similar post to this in the list but no one has posted a response.
2007 Apr 10
3
Link to local files
I have a small rails system I am building. Part of the code allow uploading files in to RailsRoot/public/files folder I am running this system is several places that have different domain and folder combinations. cases: 1) domain1.com/folder_a # where folder_a is a symbolic link from Apache document root to the public folder of rails app 2) domain2.com/folder_b/public # where folder_b is
2006 Jan 13
1
file_column - how to test for empty column?
I am using the excellent file_column, but have run into an issue. I am wanting the user to be able to *not* upload an image if they so choose. Then I am trying to determine if that column is empty or not, and display a generic image if that column is empty. I have tried both of the following code blocks: <% if @newsentry.image -%> <%= link_to(image_tag((url_for_image_column
2019 Jun 19
3
point size in svg
Hello, All: ????? I'm unable to control the font size in plots to svg.? Consider the following: svg('cex-svg.svg') cex. <- 5 plot(1:2, cex.axis=cex.) text(1:2, 1:2, c('as', 'DF'), ????????? cex=cex.) dev.off() ????? When I open this in Gimp 2.10.4, the font size is tiny.? I also tried: svg('cex-svg.svg', width=15, height=15, pointsize=24) cex.