473,804 Members | 2,271 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

svg image misbehavior on IE?

Hello. On one webpage I just worked out, I use svg (by using <object>)
for browser that supports svg (firefox), and give an <imginside of
<objectas a fallback for IE.

http://www.realss.com/workshop/061107

The page looks differently between Fx and IE.

On Fx it's the correct look.

On IE, the object block should faile (IE don't suport svg)
[codesnip1]
<object type="image/svg+xml" width="310" height="70"
style="float: left; background-color: white"
data="http://www.realss.cn/logos/scalable_logo_q uarter.svg" >
<img src="http://www.realss.cn/logos/weblogo_quarter .png"
alt="Real Softservice Logo" />
</object>
[/codesnip1]

However, the browser does not correctly fallback. If I replace the
above <objectsectio n with this
[codesnip2]
<img src="http://www.realss.cn/logos/weblogo_quarter .png"
style="float: left; background-color: white"
alt="Real Softservice Logo" />
[/codesnip2]

Then for IE the page look OK.

Question: for IE if svg is not understood, codesnip1 and codesnip2
should look the same, now they are not.
Is it possible to make IE render the page correctly, without having to
fall back to not to use svg at all? (for that particular page there is
no lose if I completely don't use svg, but I am just curious if it's
possible to still using svg, e.g. in case we used an animated logo and
then we wish to preserve the svg movie for browsers that supports it)

Oct 11 '06 #1
1 2014
ÓÚ Wed, 11 Oct 2006 02:14:35 -0700£¬Zhang Weiwuдµ½£º
Hello. On one webpage I just worked out, I use svg (by using <object>)
for browser that supports svg (firefox), and give an <imginside of
<objectas a fallback for IE.

http://www.realss.com/workshop/061107

The page looks differently between Fx and IE.

On Fx it's the correct look.

On IE, the object block should faile (IE don't suport svg)
[codesnip1]
<object type="image/svg+xml" width="310" height="70"
style="float: left; background-color: white"
data="http://www.realss.cn/logos/scalable_logo_q uarter.svg" >
<img src="http://www.realss.cn/logos/weblogo_quarter .png"
alt="Real Softservice Logo" />
</object>
[/codesnip1]

However, the browser does not correctly fallback. If I replace the
above <objectsectio n with this
[codesnip2]
<img src="http://www.realss.cn/logos/weblogo_quarter .png"
style="float: left; background-color: white"
alt="Real Softservice Logo" />
[/codesnip2]

Then for IE the page look OK.

Question: for IE if svg is not understood, codesnip1 and codesnip2
should look the same, now they are not.
Is it possible to make IE render the page correctly, without having to
fall back to not to use svg at all? (for that particular page there is
no lose if I completely don't use svg, but I am just curious if it's
possible to still using svg, e.g. in case we used an animated logo and
then we wish to preserve the svg movie for browsers that supports it)
This problem is cross-posted on comp.infosystem s.www.authoring .stylesheet
and Spartanicus kindly answered it. It seems this is more of a css
question then HTML question, so I posted in the wrong group.

The workaround to this IE issue is to wrap a div around <objecttag and
apply style to <divinstead.
Oct 18 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
11769
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a table in MySQL with the path & filename to the image. I have successfully uploaded and performed an update query on the database, but the problem I have is I cannot retain the primary key field in a variable which is then used in a SQL update...
2
4195
by: Tjerk | last post by:
Hello all, I have the script below to change an image depending on the date upto january it worked fine but then it just stopped working does anybody have an idea how I can make it work again or why it doesn't work? Thanks in advance Tjerk
8
2615
by: Jef Driesen | last post by:
I'm implementing some image processing algorithms in C++. I created a class called 'image' (see declaration below), that will take care of the memory allocations and some basic (mathematical) stuff. The class will behave like a std::vector (copy constructor and assignment create a deep copy), but with 2D indexing. Now I also need a 'view' class that will behave like a reference to an 'image' (can only be constructed from an existing...
6
3321
by: QuasiChameleon | last post by:
Hi, I'm trying to create a grayscale image class that reads and writes grayscale Targa format. This works well with smaller images, but corrupts larger images and creates a "Segmentation fault (core dumped)" error. I am at a loss as to why this works only part of the time. I hope it's proper etiquette to post the code below (3 files). Can someone please show me what's wrong with the following code? I
15
31815
by: Anand Ganesh | last post by:
HI All, I have an Image. I want to clip a portion of it and copy to another image. How to do this? I know the bounding rectangle to clip. Any suggestions please. Thanks for your time and help. Regards
3
1730
by: Kristof Thys | last post by:
Hello, I'm writing a ASP.net webservice wich will visualize an image, generated by another application. The generated image is a char*. I can transform this to a String*, but I want to view it as an image in my browser. Is this possible, and how should I do this? thx,
7
11647
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard is proving to be more difficult. These pictureboxes are bound to an AccessDB. If the user wants to add an image, they select an image using an OpenFileDialog: Dim result As DialogResult = Pic_Sel.ShowDialog() If (result = DialogResult.OK) Then
15
5371
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the path of the uploaded image, and resize it with the provided dimensions. My function is below. The current function is returning an error when run from the upload function: A generic error occurred in GDI+. Not sure what exactly that means. From what...
0
10791
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information inside an image, hide your complete image as text ,search for a particular image inside a directory, minimize the size of the image. However this is not a new concept, there is a concept called Steganography which enables to conceal your secret...
0
9594
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10347
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10090
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9173
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6863
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5531
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3832
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.