By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,987 Members | 971 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,987 IT Pros & Developers. It's quick & easy.

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

P: n/a
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_quarter.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 <objectsection 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
Share this Question
Share on Google+
5 Replies


P: n/a
| 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

P: n/a
Thu, 12 Oct 2006 09:46:02 -0400Harlan 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

P: n/a
??? <zh********@realss.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

P: n/a
| wrote:
Thu, 12 Oct 2006 09:46:02 -0400Harlan 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

P: n/a
Thu, 12 Oct 2006 17:25:29 +0100Spartanicusд
<zh********@realss.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 discussion thread is closed

Replies have been disabled for this discussion.