similar to: SVG in Rails

Displaying 20 results from an estimated 20000 matches similar to: "SVG in Rails"

2006 Mar 17
6
SVG showstopper
We seem unable to get SVG running under Rails with apparent memory conflicts between the SVG xml object and parameters. For us, unless we can get SVG running okay under Rails, it is a showstopper for us to use Rails. There seem to be only 2 examples out there for SVG, the graph project that actually converts SVG to another image format (way too cumbersome/unworkable for our needs) and the
2006 Apr 25
8
Does Rails suppports XHTML for views for inline SVG''s?
I have following piece of code(which when saved in a file with .xhtml extension and opened in Mozilla 1.5.0.2 works fine); <html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg"> <head> <title>SVG within XHTML Demo</title> </head> <body> <p> You can embed SVG into XHTML, provided that your
2007 Aug 09
1
displaying svg chart
dear railers I was attempting to display a svg chart inside a tooltip in rails using Scruffy. my browser is Firefox 2 and i am using WEBRICK. when i render inside the controller using graph.render(:size=> [255,205], :to => ''C:\xyz.svg) and serve iit via rhtml using the <embed> tag. Instead of the chart inside the tooltip i get a dialog box asking me to open it ... with
2006 Mar 27
2
svg image link
the link_to command is really nice, especially with confirm built in - wondering if there is a way to use it with SVG images since SVG doesn''t seem to work with image_tag I can display svg images (in Firefox) with the following code: <embed width=32 height=32 src="/images/quit.svg" type="image/svg+xml"></embed> "normal" link_to code:
2010 Oct 13
2
Scripting SVG with R
Since now many browsers support (ECMA/Java-)scripted SVG, I am wondering whether there are already any examples of inserting R code into SVG documents (or a Javascript canvas?) either directly, or perhaps more likely through a JavaScript layer, to dynamically generate graphics or make them interactive? I am aware of the excellent packages gridSVG and SVGAnnotation, which facilitate making
2007 Jul 11
4
Extending Markaby for SVG
Hi all, I love the elegance of Markaby for HTML generation. I''d like to do something similar for SVG, e.g.: svg11 do title "Slide Title" rect({:x=>2,:y=>2,:width=>508,:height=>318,:fill=>"aqua"}) g({:style=>"fill:blue; stroke:black", :transform=>"translate(17,-38)"}) do circle({:cx=>70, :cy=>100,
2006 Mar 26
3
Charts and Java servers
Hi, As a long time Java/J2EE exponent I wanted to give Rails a fair crack of the whip and after we evaluated it for several weeks I have to say I like it. The installation process for the base system/framework is straightforward on the two platforms we''ve tried (Windows and Mac OS X). However, the charting components available, relying on ImageMagick or GraphicsMagick seem less clear
2008 Nov 12
1
Theora promotion material
Hi all, A while back I wrote in about wanting a theora promotion video. Having a few lazy minutes left in the day, I decided to do some coding to create a small movie. However, I encountered two problems: - The artwork completely &$@(%sses, but then again I'm no artist. - How do you actually embed the movie into a SVG file? Otherwise I'd go for HTML but a working example would be
2006 Feb 28
1
Ajax functions with embedded objects
Hi, In my project, there is an rhtml page with an embedded SVG file. In my javascript functions, I can find an object by id inside the SVG file with the following: ObjectInSVG = top.document.embeds[0].getSVGDocument().getElementById("rect"); Now, I want to use Ajax methods, like link_to_remote, in the rhtml page to manipulate the SVG objects. The problem is that link_to_remote
2006 Apr 08
2
RadRails problems - any ideas
Hi, I''ve followed the rad rails instructions for importing a project and have two issues. First my console tab shows "Console is not available" I don''t know if that''s significant or not, yet. Second, I''ve created a WebBrick server, but it doesn''t respond when I try to start it from withing RadRails. There''s no error shown.
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.
2008 Jan 14
3
problems with .svg
Dear everybody! I am making a graph in R and employ pstoedit to expot the .pdf-output to .svg. When I open the .svg with firefox I get the .svg-code shown wit the following header: "Mit dieser XML-Datei sind anscheinend keine Style-Informationen verkn?pft. Nachfolgend wird die Baum-Ansicht des Dokuments angezeigt." Which information should how be included? Thank you in advance. Yours,
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
2007 Jan 27
6
Theora in SVG+JavaScript?
Hi, I was just reading on Adobe Flash<http://en.wikipedia.org/wiki/Adobe_Flash>and the components which make it up: SWF, ActionScript, and FLV. >From what I've read, SVG is competing with SWF as the format of vector graphics in web design, while ActionScript is an ECMAScript like JavaScript. Hence, SVG + Javascript can provide an interactive, animated, open, non-proprietary web
2009 Jan 21
1
Italics in svg output display as bold (PR#13463)
Full_Name: Yan Wong Version: 2.8.1 OS: Mac OS X 10.4 Submission from: (NULL) (78.149.167.246) When printing a plot to and svg file, text intended to be in italics is rendered in bold (svg file viewed using both Safari 3.2.1 and Firefox 2.0.0.9. For example, try viewing the test.svg file generated by svg("test.svg", width=4,4,8) plot.new();
2011 Mar 14
2
svg malformed on CentOS (epel R)
There is an issue with the default svg device on a centos workstation that I am using. It does not result in an error, but it produces malformed svg images. Exactly the same script works just fine on an ubuntu box. On Ubuntu I am using R binary that comes with maverick, on centos I am using the latest R binary from EPEL. Other than that both boxes are pretty clean, with only the dependencies
2006 Feb 27
8
Newbie question - Automatically update _form.rhtml?
Hi all, I''ve got an odd issue. I''m new to Ruby/Rails and have a bit of a silly question. I''m following along with the nice little tutorial here, to get an idea of the system: http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=3 However, I''m running into an issue where the author adds a new field in his database, refreshes the browser and shows
2006 Mar 01
9
ajax doesn''t show at the right place
Hi, I use link_to_remote to create a link to trigger an ajax, things work fine, a new rhtml is created, however, the newly created rhtml doesn''t replace my old zone, it shows instead on top of my old zone...Does someone know why??? my code is like <table> <tr><td colspan="2"><a href="#" onclick="new Ajax.Updater(''zone1'',
2006 May 08
7
How to get difference between two dates in days???
Hi, I want to calculate difference between Current date & previous date (stored in database). The difference should be in days. Hhow to do that?? PLs tell me. Thanx in advance. Prash -- Posted via http://www.ruby-forum.com/.
2006 Mar 06
9
Apache + Displaying images
Hi, I''m new to Rails, sorry if I''m repeating the question, but I couldn''t find a solution for my problem so far :( I''m using Apache2 as the web server of my Rails application. I keep my images in public/images and tried inserting images to the page like this; <%= image_tag "rails.png" %> But the image is not displayed on the browser. Can