Congratulations to AcaCandy on her 100,000th post!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen boot bsod computer connection crash css dell display drive driver drivers email error ethernet excel firefox firefox 3 game hard drive internet internet explorer itunes laptop linux malware monitor network networking nvidia outlook outlook 2003 outlook 2007 outlook express partition problem router slow software sound trojan usb video virus vista windows windows xp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
displaying blocks for cross-browser use


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
fizzle's Avatar
Junior Member with 19 posts.
 
Join Date: Jun 2005
Experience: it depends on the topic
26-Jan-2006, 04:59 PM #1
avoiding IE security warning when using javascript
I am trying to do a simple version of something that I saw on Foxton's website:

http://newyork.foxtons.com/search?s...cation_ids=3004

(from the map, if you click on Queens, it causes a list of neighborhoods to appear)

I tested that, and it works in IE, Mozz and Firefox.

So, I tried to make a simplified version that would perform the same task, but when I test it in IE, I recieve a warning in the toolbar that says, "To help protect your security, Internet Explorer has restricted this file from showing active content that could access your computer. Click here for options..."

my simple version only uses javascript (as does Foxton's site), but the Foxton site does not generate that same warning.

What gives ???

Here is my dopey code, just so you can see what IE is barking about.
I have already provided a link to Foxton's site (above). No barks from IE on that one.

I would just like to accomplish this very simple task without causing IE any undue stress.
Any help would be appreciated.


<HTML>
<HEAD>

<script language ="javascript">

function d1()
{
document.all.div1.style.display = 'block';
document.all.div2.style.display = 'none';
document.all.div3.style.display = 'none';
}

function d2()
{
document.all.div1.style.display = 'none';
document.all.div2.style.display = 'block';
document.all.div3.style.display = 'none';
}

function d3()
{
document.all.div1.style.display = 'none';
document.all.div2.style.display = 'none';
document.all.div3.style.display = 'block';
}

</script>

</HEAD>

<BODY>
<div style="position:absolute; left:200px; top:50px;">
<div id="div1" STYLE="display: none">DIV 1 text</div>
<div id="div2" STYLE="display: none">DIV 2 text</div>
<div id="div3" STYLE="display: none">DIV 3 text</div>
</div>

<div style="position:absolute; left:300px; top:300px;">
<input type="radio" name="r1" onClick="d1();">
<input type="radio" name="r1" onClick="d2();">
<input type="radio" name="r1" onClick="d3();">
</div>

</body>
</HTML>


*** btw, I changed the title of this thread from: displaying blocks for cross-browser use (that was probably a pretty crappy description of the problem )

Last edited by fizzle : 26-Jan-2006 05:52 PM. Reason: (more detailed description of the problem)
Rockn's Avatar
Computer Specs
Distinguished Member with 17,888 posts.
 
Join Date: Jul 2001
Location: Mexico of the North, MN
Experience: Disenfranchised American Male
26-Jan-2006, 05:34 PM #2
I think it really depends on your security settings. It works just fine in both browsers on my PC.
fizzle's Avatar
Junior Member with 19 posts.
 
Join Date: Jun 2005
Experience: it depends on the topic
26-Jan-2006, 05:52 PM #3
Quote:
Originally Posted by Rockn
I think it really depends on your security settings. It works just fine in both browsers on my PC.
<headscratch>

Really???

(your talking about my code, right?)

I don't get it. I haven't done anything to alter my settings.
I also tested it on my laptop (which I did not alter settings on either).
Same deal on that one.

It's just basic javascript.
The Foxton's site uses elaborate javascript, and yet I do not get the same type of warning in the information bar.
Doesn't seem to make sense.

</headscratch>
Rockn's Avatar
Computer Specs
Distinguished Member with 17,888 posts.
 
Join Date: Jul 2001
Location: Mexico of the North, MN
Experience: Disenfranchised American Male
26-Jan-2006, 06:45 PM #4
Are you running it from localhost when you are testing it?
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 05:57 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.