Forum Moderators: not2easy

Message Too Old, No Replies

CSS and Activex in IE brower

How do I stop the 'activex' yellow bar from showing up in my IE browser.

         

Flying Monkeys

12:12 am on May 19, 2008 (gmt 0)

10+ Year Member



Okay, So I don't understand that much about 'active x' nor css but I don't understand why every time I use css the 'active x' yellow bar pops up. Is their a way to stop this? A snippet of code or something, ive done some searching and can't find any help because this shouldn't happen, its just CSS.

swa66

11:43 am on May 19, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ActiveX scripting is a way to access tools and methods provided by other software on a windows machine. It's only available in IE.
Practically it's a scripting language that can access a lot of things in your machine (way too much if you ask somebody versed in security).
Many security bugs in IE are related to ActiveX and ActiveX controls offered by other software.

CSS is a standard based way to define layout in a web page (or XML file). While Microsoft's IE allows some scripting in it (expressions) those are *not* part of the standard, and hence should not be used (stay away from "expressions").

In modern browsers you *always* use CSS as it uses built-in style sheets. And most web sites use some level of CSS.

CSS can be used inline in the html e.g.:

<p>this is <span style="color:red">red</span></p>

It can be used in the html itself in the head of the file


<html>
<head>
<title>Title</title>
<style>
.red {
color:red
}
</style>
</head>
<body>
<p>this is <span class="red">red</span></p>
</body>
</html>

Or it can be linked from an external file
Replacing the <style> tag above with a reference to a file having the same content


<link rel="stylesheet" type="text/css" href="style.css" />

Using CSS should not generate ActiveX warnings.

While at it: if you start to develop things with CSS remember that IE has a broken box model. It's better to develop in _any_ other browser (e.g. firefox, safari, opera, ...) and then fix the problems in IE in a conditional comment afterwards. It'll save you tons of frustration to go that way.

Flying Monkeys

9:55 pm on May 19, 2008 (gmt 0)

10+ Year Member



You didnt' need to describe CSS to me ;). But thanks for the note 'using css should not generate activex warnings' and ' develop in any other browser then fix the IE problems'.

They seem to pop up. I think it might be the computer from which I was working. It's a school computer, so it might be tighter restrictions. We will see though. . .

Receptional Andy

9:59 pm on May 19, 2008 (gmt 0)



If I recall correctly, CSS expressions (see MSDN [msdn.microsoft.com]) will trigger a warning on IE if running from a local file (can someone correct me on this?). No help if you're not using them, though!

Flying Monkeys

11:11 pm on May 19, 2008 (gmt 0)

10+ Year Member



Yea it seems to be an 'expression' issue. But I used an expression to hack IE for something. . . I guess I need to find other means.

Xapti

2:28 am on May 20, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That message does not come up when the page is on the internet though, so you shouldn't worry about it. And on the local machine, you can change the settings I think so it doesn't give that warning.

I believe you can even put some sort of code on the page which tells the browser to simulate it running as if it was on the internet, not the local machine, which will also remove the problem I think.

Flying Monkeys

11:19 am on May 20, 2008 (gmt 0)

10+ Year Member



Do you have an idea of what that snippet of code might be?

Receptional Andy

11:35 am on May 20, 2008 (gmt 0)



I believe it may be a comment in the form:

<!-- saved from url=(0030)http://www.example.com/ -->

This fools IE into thinking you used file >> save as to get the source.

Flying Monkeys

11:36 am on May 20, 2008 (gmt 0)

10+ Year Member



Okay, yea, that's the code someone else gave me in another forum, thanks.