Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
Featured Web Site Template

Hundreds More at Free Site Templates.com!

Web Site Partners
Sponsored Links
Jet City Software
 
Whos Here ?
Reflects user activity within the last 5 minutes
Moderator(s): Prowler, jcokos
Member Message

Mark Wolk
Joined: Sep 19, 1999
# Posts: 660

View the profile for Mark Wolk Send Mark Wolk a private message

Posted: 2004-Aug-27 03:32
Edit Message Delete Message Reply to this message

My website (profile) has had a small javascript for over 5 years, i.e. on the page english.html (see "Contact", above my fax number): the javascript displays the current time in New Zealand. The idea is that if someone wishes to call me from the US or Europe, they realize what is the time in New Zealand. I understand this is done by the javascript looking at the time and time zone on the user's computer, and computing the corresponding time in New Zealand.

Since I downloaded SP2:

- When opening that page saved on my C drive, I no longer see the NZ time and I get an alert bar appearing under the address bar, stating "To help protect your security, Internet Explorer has restricted this file from showing active content that could access your computer. Click here for options..." - When I click and select "Allow blocked content", a warning appears again: "Allowing active content such as script and ActiveX controls can be useful, but active content might also harm your computer. Are you sure you want this file run active content?" - If I click YES, I can then see the NZ time.

- When opening that very same page from the internet, I do not get any alert at all, and I am able to see the NZ time!

This happens exactly in the same way on two of my computers (Win XP Pro, and Win XP Home) updated with SP2.

Apart from not being impressed by SP2, what should I do? Remove that javascript from my website? Change it in such a way that no alert appears when opened locally (how?)? Do nothing?



Curt
Joined: Eons Ago
# Posts: 3735

View the profile for Curt Send Curt a private message

Posted: 2004-Aug-28 12:53
Edit Message Delete Message Reply to this message

First off, couldn't see your web site. It was inaccessible.

If remote computers can see the time via your web page on the server, then you don't need to be concerned. Perhaps you might want to write a Javascript routine that displays the regular time to you when the page is located on your machine and when it's served from the server under your domain name, then have it run your normal routine. That way you see the time and so do your visitors. Basically:

if "page served via your local computer" serve up local time, else "run regular time generator" (or something to that effect).



Mark Wolk
Joined: Sep 19, 1999
# Posts: 660

View the profile for Mark Wolk Send Mark Wolk a private message

Posted: 2004-Aug-29 21:12
Edit Message Delete Message Reply to this message

Hello Curt - many thanks for your expert advice. Hopefully my website is accessible now.



AmeriClicks
Joined: Eons Ago
# Posts:

View the profile for AmeriClicks Send AmeriClicks a private message

Posted: 2004-Aug-29 22:15
Edit Message Delete Message Reply to this message

SP2 doesn't block JS more than any other program does and JS is not disabled by default on webpages.

What SP2 does do is block local excution of JS on your machine for scripting that is in the local filespace. ie file:///





Mark Wolk
Joined: Sep 19, 1999
# Posts: 660

View the profile for Mark Wolk Send Mark Wolk a private message

Posted: 2004-Sep-13 09:48
Edit Message Delete Message Reply to this message

Here is the solution, which I received on annoyances.org (hopefully it will be useful to other webmasters): to display seamlessly your pages containing javascript which are saved on your disk: from IE's topline menu, choose Tools>Internet Options>Advanced Tab>scroll down to the Security section, check the second checkbox (allow active......files on my computer)>OK



rol_one
Joined: Eons Ago
# Posts: 68

View the profile for rol_one Send rol_one a private message

Posted: 2004-Sep-20 13:23
Edit Message Delete Message Reply to this message

Mark,

You have my sympathy if the script was being used to benefit others so that they may call you at the correct time.

You might want to get in touch with Microsoft and ask them for a solution. You may have to wait a while but the more problems reported, the sooner they can fix it.

Good luck





roatan
Joined: Jun 27, 2002
# Posts: 84

View the profile for roatan Send roatan a private message

Posted: 2004-Oct-31 20:21
Edit Message Delete Message Reply to this message

I'm having the same type of problem since installing SP2, but it is not with JS. I use a code to make small photos enlarge in a new browser window when clicked on. I have many photos and for some time this has solved my page load time problems. I do not want visitors to my site to need to disable anything or find things not working, etc., or have any other un-positive experiences while there. Below is a sample of the code I use which IE now calls "active X" and blocks:

<a href="#" onClick="MyWindow=window.open('images/1.jpg','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=300'); return false;"><img src="images/sm1.jpg" width="100" height="68" border="0"></a>

Does anyone know a similar script for what I'm doing that does not look like Active X (I don't even know what Active X is!)?



squirrel
Joined: Eons Ago
# Posts: 120

View the profile for squirrel Send squirrel a private message

Posted: 2004-Nov-10 14:59
Edit Message Delete Message Reply to this message

Hey roatan

You can use a Macromedia stock function:


Code: [copy]





You will need the following in a js file or the <head>:


Code: [copy]







roatan
Joined: Jun 27, 2002
# Posts: 84

View the profile for roatan Send roatan a private message

Posted: 2004-Nov-18 21:56
Edit Message Delete Message Reply to this message

Thanks -- I'll try this code.



eschmenk
Joined: Dec 22, 2004
# Posts: 1

View the profile for eschmenk Send eschmenk a private message

Posted: 2004-Dec-23 00:57
Edit Message Delete Message Reply to this message

Hopefully someone will have a quick solution for my problem. Since installing SP2 on my home system (windows XP OS), I haven't been able to use the geocities.com PageBuilder to work on my website. I also have problems with some features on programs like Shutterfly. I know this is a JAVA / JavaScript problem, but I have no idea how to fix it. I've checked all options and javascript is enabled, I've tried 3 browsers, started and restarted my system, turned of pop-up blocker, etc. What am I missing?

Thank you.



sometec
Joined: Jan 27, 2005
# Posts: 2

View the profile for sometec Send sometec a private message

Posted: 2005-Jan-27 19:20
Edit Message Delete Message Reply to this message

Im also having an issue with the same blockage, finally got it to stop showing that warning, but on the page that has the javascript clock running, thru a settimeout in the body tag that calls the clock script every second, the page now seems to crash my machine. did not have this problem prior to sp2. Any ideas?

ty in advance



lizardz
Joined: Nov 12, 2004
# Posts: 1394

View the profile for lizardz Send lizardz a private message

Posted: 2005-Jan-28 22:10
Edit Message Delete Message Reply to this message

Service pack 2 affected a very long list of programs, the limited list I saw had over 200 software applications on it.

to view your website locally, you should be running a web server on you machine, service pack 2 may have messed with how apache runs, I never followed through on that. Installing IIS is a major security risk which I'd reommend against doing unless you have some grasp of security on a local machine.



sometec
Joined: Jan 27, 2005
# Posts: 2

View the profile for sometec Send sometec a private message

Posted: 2005-Jan-29 00:01
Edit Message Delete Message Reply to this message

actually i usually view them as a temp file, the real problem turned out to be a file that I missed, while updating everything, since I just reinstalled windows, I think it had something to do with the agpminiport. The warning bar is, as I read above, found in the internet options/advanced area. My solution was to reinstall all the ati and via 4 in 1 drivers. Things were just a lot more confusing since i was unaware that I was dealing with several issues at once.

oh how fun it can get
tongue


You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
  1. You have not yet logged in, or registered properly as a member
  2. You are a member, but no longer have posting rights.
  3. This is a private forum, for which you do not have permissions.

If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

If you cannot find this message, click here to Re-Send it.

If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

New posts Forum is locked
© 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions