473,769 Members | 3,102 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

<object> fallback fail on IE (style doesn't apply)

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
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 12 '06 #1
5 2244
ÕÅí|Îä wrote:
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
I went to take a look in IE and got a message box, "This page is
accessing information that is not under its control.This poses a
security risk. Do you want to continue?" I'm not interested in working
with a page that's trying to access my personal information.
Oct 12 '06 #2
ÓÚ Thu, 12 Oct 2006 09:46:02 -0400£¬Harlan Messingerдµ½£º
Zhang Weiwu wrote:
>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

I went to take a look in IE and got a message box, "This page is
accessing information that is not under its control.This poses a
security risk. Do you want to continue?" I'm not interested in working
with a page that's trying to access my personal information.
It's strange, this URI is tested with both IE and Fx; it is a validated
XHTML page by w3c; it contain no javascript. What makes your browser think
the access control is being violated? Is it the special xhtml http header
or the reference to an <object>/<imgwhich refer to an svg image and an
png image on another site?

If any other people also experience such error message can you let me
know? I already invited several friends to visite this site with IE and so
far we cannot reproduce the error message.
Oct 12 '06 #3
??? <zh********@rea lss.comwrote:
>(IE don't suport svg)
It can (via a plugin).
>Is it possible to make IE render the page correctly, without having to
not to use svg at all?
Assuming that the SVG and the fall back image are the same size: wrap a
div around the object tag, attach the styling to that instead of the
object element.

--
Spartanicus
Oct 12 '06 #4
ÕÅí|Îä wrote:
ÓÚ Thu, 12 Oct 2006 09:46:02 -0400£¬Harlan Messingerдµ½£º
>Zhang Weiwu wrote:
>>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
I went to take a look in IE and got a message box, "This page is
accessing information that is not under its control.This poses a
security risk. Do you want to continue?" I'm not interested in working
with a page that's trying to access my personal information.

It's strange, this URI is tested with both IE and Fx; it is a validated
XHTML page by w3c; it contain no javascript. What makes your browser think
the access control is being violated?
My experience could differ from yours because I'm not on your local network.
Is it the special xhtml http header
or the reference to an <object>/<imgwhich refer to an svg image and an
png image on another site?

If any other people also experience such error message can you let me
know? I already invited several friends to visite this site with IE and so
far we cannot reproduce the error message.
Hmmmmmm.
Oct 12 '06 #5
ÓÚ Thu, 12 Oct 2006 17:25:29 +0100£¬Spartani cusдµ½£º
<zh********@rea lss.comwrote:
>>(IE don't suport svg)

It can (via a plugin).
>>Is it possible to make IE render the page correctly, without having to
not to use svg at all?

Assuming that the SVG and the fall back image are the same size: wrap a
div around the object tag, attach the styling to that instead of the
object element.
yes, this method works!

Thank you.

Oct 18 '06 #6

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

Similar topics

3
4919
by: Milan | last post by:
When I put my <object> tag out of <table> (and <div>), VBScript code below works fine. When I put <object> tag into <table> (and put <table> into <div> tag) it doesn't work. What I am doing wrong? <html> <script language=VBScript> Function Toggle() If toggleView.innerText = "Show Files" Then toggleView.innerText = "Hide Files"
1
9089
by: chotiwallah | last post by:
this is the html: <a href="Javascript:change();">change</a> <object data="a.htm" type="text/html" width="200" height="200" id="obj"></object> and this the javascript:
7
2819
by: Simon Strandgaard | last post by:
There are no <iframe> tag in xhtml strict, instead I should use <object>. If I change <iframe> to <object> then my javascript stops working. I am curious to how to use <object> with javascript ? <?xml version="1.0" encoding="ISO-8859-1"?>
6
2801
by: Christopher Benson-Manica | last post by:
(I posted this as a reply to my thread about iframes, but I think it may get mostly ignored there.) http://ataru.gomen.org/files/test.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>&lt;object&gt; test</title>
2
1657
by: ACaunter | last post by:
Hi all, I have the following code in the html part of my asp.net page to display an activeX control object which is like a picture viewer: ---------------------------- Response.Write("<object style='position: absolute; left=275px; top=73px; width=725px; height=595px;' width='656px' height='475px' classid='clsid:68CE4C35-090C-470B-B956-96B129554E64' standby='Please Wait...' codetype='application/x-oleobject' codebase='com/test.cab'>" &...
2
4079
by: Martin Eyles | last post by:
Hi, I want to have an <objecttag in my .aspx file, so that it is shown as part of my webpage. I want to add data to the "data" attribute using server side code, so I thought I would add the runat="server" attribute. In order for ASP.net to treat this as a generic html control, I have declared it in my ..aspx.vb codebehind file as Protected WithEvents myObjectTag As System.Web.UI.HtmlControls.HtmlGenericControl
5
640
by: Stephan Steiner | last post by:
Hi I seem to have a bit of trouble understanding one bit of how generics work: In C#, every class automatically derives from object, and inherits a bunch of properties (i.e. ToString()). Thus, (MyClass is object) should always evaluate as true. However, if I have a method with the following signature:
4
8614
by: Alan Silver | last post by:
Hello, I have an <objecttag that is used to display a Flash file. I would like the whole Flash file to be a link. The obvious thought would be to do this... <a href="http://www.url.com"><object blah....> </object></a> ....but this doesn't work.
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10222
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10050
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9999
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
8876
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
6675
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
5310
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...
1
3967
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3570
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.