Hi there,
on my webpage the user has the possibility to click in a SVG chart and use arrows to navigate up and down. However, the keydown not only moves the SVG elements down (as it should do), but it scrolls the whole page down - so, two things are moving at the same time, and it's really annoying, as the user can hardly see what happens in the SVG graph.
Is there any possibility to stop page scrolling per arrow keys...
Search Result
Collapse
7 results in 0.0014 seconds.
Keywords
Members
Tags
-
luftikus143 started a topic How to prevent page scrolling when user uses keydown for SVG application?in JavascriptHow to prevent page scrolling when user uses keydown for SVG application?
-
How to use getElementById with a JS variable?
Hi there,
I am fighting with a small, probably dumb, issue.
I want to call the properties of an SVG element. The element is composed of several elements:
Code:t = 'id_' + selectedIndex + '_' + clicked_element_year;
Now, it seems I can't call it this way:
Code:clicked_element_text = svgDocument.getElementById(t).getAttributeNS(null,'mouseovertext');
... -
How call an image file to use into SVG image element?
I want to open a local image file in my local PC, such as "E:\image\a.jpg ", then I write the code as following:
<svg>
<image xlink:herf="E:\ image\a.jpg" x="100" y="100" height="500" width="600">
</svg>
but the image don't show in my IE,how call a local image file to use the SVG image element?
Thank you very much.
... -
SVG Text Manipulation with JavaScript
Hi All,
I am creating a custom chart using SVG and I am having problems while dealing with text on IE. I have the SVG file being loaded through an EMBED tag and I can access it through JavaScript. This is a line chart and the lines are being positioned correctly. The problem is that I want to change the text of the scale to the values on the JavaScript, but I can't make it work on IE.
Below is the code snippet that handles... -
Why is my svg file not displaying in my browser?
I just implemented a small svg script...
...Code:<html xmlns:svg="http://www.w3.org/2000/svg"> <body> <p>This is an HTML paragraph</p> <svg:svg width="300" height="100" version="1.1" > <svg:circle cx="100" cy="50" r="40" stroke="black" stroke-width="2" fill="red" />
-
svg stops responding to mouse-events inside dhtmlxlayout
the following is a skeleton of the code :
file1.jsp
//includes file1.js
<div id="xyz">
//includes file2.jsp
</div>
file2.jsp
//embeds an svg object
file1.js
var dhxLayout = new dhtmlXLayoutObj ect("parentId", "3L");
//commenting the above lines enables the mouseover events of svg object
--------------------------------------------------------... -
SVG <object>, <embed> problems with different browsers
Hi there,
I am displaying some graphs in SVG. They are created in PHP, and, for Safari no problem, inserted like this:...Code:<?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <svg width="1090" height="101.3" xmlns="http://www.w3.org/2000/svg" xmlns