473,398 Members | 2,335 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

SVG is not displaying in Chrome,in IE9 and above its working fine

I am using
<embed height="99%" width="100%" src="Myclass.do?attr1="abc.svg" type="image/svg+xml" />
in my JSP code.Myclass.do creates a XML at run time and use XSTL code to superimpose the values of XML(fetched from DB) into static SVG.I am not creating any new element in SVG.I am only adding the atrributes to existing elements.

this code is working fine in IE9 and above.In Chrome it allocates a empty space(No SVG) for frame in window.When I right click on frame and view its source, the code of SVG file is present.So why SVG file do not display in Chrome.
Note- I am not using SVG Adobe plugin.

If I copy the code and create a new SVG and replace the code
with
<embed height="99%" width="100%" src="static.svg" type="image/svg+xml" />
then its working fine.
I cant use static SVG.I want to superimpose XML data on it.
Please give your suggestion why SVG is not displaying in Chrome
Sep 2 '13 #1
1 3646
Anas Mosaad
185 128KB
I guess your problem is the URI to the image. Look closely, you are using double quotes in the URI which makes URI invalid.
You are using (src="Myclass.do?attr1="abc.svg" ). This will be understood as src="Myclass.do?attr1=". Meaning, the parameter is not passed to your servlet/action.

You may use a URI like this
src='Myclass.do?attr1="abc.svg"' to make it work.

Good luck.
Sep 2 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Larry Woods | last post by:
I have a site that works fine for days, then suddenly, I start getting ASP 0115 errors with an indication that session variables IN SEPARATE SESSIONS have disappeared! First, for background...
1
by: Dinesh | last post by:
Dear Friends, IIS is not working fine, sometime it works fine and sometime pages are taking lomg time. and same time FTP is not able to upload and doanload anything. It accepts username and...
1
by: haisenthilk | last post by:
Hi I have a text box. I have to validate it only for numbers. There is another text box which depends on the value of the previous. so i should do the validation in onBlur().. If...
1
by: web20tester | last post by:
Hi all, I am new to javascript. I have this script working fine in IE but cannot work in firefox. Really appreciate on any guidance. search0.js function Search(str) { var...
3
by: vishwa Ram | last post by:
Hi All, Please see my below code. my $dir = $ARGV; #Getting command line argument (path of the file) foreach $file (<$dir*.xml>) # Error here when i run exe only. In my above...
2
by: nudrat | last post by:
Hi, I am having problem in getting request.serverVariables("auth_user") when i place the pages in my server...locally in my pc it is working fine. what other changes i need to make in...
14
by: sourav08 | last post by:
Hi, I have validate a text field with onchange event which throw error message, if not satisfied the condition and set the mouse cursor on the same field using document.focus(). It is...
2
by: sateeshchandrasanga | last post by:
Hi All, My HTML code is working fine in Firefox.But its not displaying any thing in IE.Can you help me in this problem.And in Google crown its displaying but not properly. ...
1
by: sajidk | last post by:
Hi All, I am very new to DB2 programming. I have written a SQL stored procedure and called it from C# . The program is working but it is not returning the error code and sqlstate code. If i...
4
by: Hotice | last post by:
I have a form for registering some bookings. The problem is that I want to validate the data users enter in this form. All works fine, excepting the booking hours (ready by and closing time). This...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.