Wrox Programmer Forums
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 21st, 2003, 02:07 AM
Banned
 
Join Date: Sep 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default ActiveX

Hi

I´m developing a web adminstration site for a friend where it´s possible to create your own web pages, copy/create documents etc. on the disc.
I use different types of ActiveXObject("Scripting.FileSystemObject") to handle those different actions.
The problem is that I allways get an "anoying" prompt that says:
"An ActiceX control on this page might be unsafe...."

This Admin site will not be published to the Web.
It should be installed an runned on the hard drive (C:\WACH\).
He´s op is WinXP Home Ed and my is Win2000Server.

Is there a way to "avoid" this prompt without affect the security settings for the Internet?



//
RGDS
CHWA






chwa
 
Old September 21st, 2003, 03:47 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

You can add the site (most likely http://localhost) to your Trusted Sites zone in Internet Explorer which you can find on the Security tab of the Options dialog.

When you add the site there, and then tweak the settings for that zone, you can grant the localhost site the correct rights, without giving other sites on the Internet the same rights.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old September 21st, 2003, 04:14 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

Its ur Browser Problem & warning! & has no relation to Server u use.

Always:),
Hovik Melkomian.
 
Old October 20th, 2003, 06:19 PM
Banned
 
Join Date: Sep 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi again
Thanks for your answer!
Yes, i added the site to the Trusted Sites zone in IE on the win 2000 server machine = works pretty well. Still have some "small" anoying prompts that appears when i´m creating new web pages (dynamically) with FileSystemObject. The prompt does´nt appear in static pages.

But I still have problem implementing the site on my friends pc, running WinXP Home Edition. In WinXPHomeEd there´s no IIS and you cannot install a PSW (Personal Web Server) so I have some difficulties to add a site to Trusted Internet Zone (for a site that runs on the local pc). Or do I something wrong?? The ActiveX prompts does´nt disappear at all!
What to do? Is there a way to permanent kill this prompts when they appears on a trusted site?

My hair will soon fall off

///CHWA




Quote:
quote:Originally posted by Imar
 Hi there,

You can add the site (most likely http://localhost) to your Trusted Sites zone in Internet Explorer which you can find on the Security tab of the Options dialog.

When you add the site there, and then tweak the settings for that zone, you can grant the localhost site the correct rights, without giving other sites on the Internet the same rights.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
chwa
 
Old October 21st, 2003, 04:05 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Pages opened like this run in the "My Computer" security zone. You can change the settings as for any other zone but by default it is not visible. Michael Harris wrote this script which modifies the registry so that the zone appears with the others. Save it as showMyComputer.vbs and double click (You may have to patch wrapped lines). Alternatively read the code and change the appropriate registry settings by hand.
Code:
'=====================================================
'Exposes the "My Computer" Internet Zone on the
'Internet Options | Security tab to allow custom
'settings for local HTML files...
'
'See the following MS KB article...
'
' Description of Internet Explorer Security Zones Registry Entries
' http://support.microsoft.com/support.../q182/5/69.asp
'
'In general, there's a "My Computer" security zone that is
'normally not displayed by IE in the Security dialog.
'This KB article explains the various registry keys and
'named values that have to do with IE security.
'
'=====================================================

set shell = createobject("wscript.shell")
'=====
'Changing this under the HKLM makes it effective for all users
'at next logon...
'=====
HKLM_MyComputer_key = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0\"
valuename = "Flags"
shell.RegWrite HKLM_MyComputer_key & valuename, 1, "REG_DWORD"
'=====
'Changing this under the HKCU makes it effective for this user
'immediately and at every logon...
'=====
HKCU_MyComputer_key = "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0\"
valuename = "Flags"
shell.RegWrite HKCU_MyComputer_key & valuename, 1, "REG_DWORD"

msgbox "The 'My Computer' security zone is now visible in the IE security dialog."

wscript.quit
--

Joe
 
Old October 21st, 2003, 08:24 AM
Banned
 
Join Date: Sep 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Joe!
Thank you!!! It worked just perfect.
:-)


//
CHWA


Quote:
quote:Originally posted by joefawcett
 Pages opened like this run in the "My Computer" security zone. You can change the settings as for any other zone but by default it is not visible. Michael Harris wrote this script which modifies the registry so that the zone appears with the others. Save it as showMyComputer.vbs and double click (You may have to patch wrapped lines). Alternatively read the code and change the appropriate registry settings by hand.
Code:
'=====================================================
'Exposes the "My Computer" Internet Zone on the
'Internet Options | Security tab to allow custom
'settings for local HTML files...
'
'See the following MS KB article...
'
' Description of Internet Explorer Security Zones Registry Entries
' http://support.microsoft.com/support.../q182/5/69.asp
'
'In general, there's a "My Computer" security zone that is
'normally not displayed by IE in the Security dialog.
'This KB article explains the various registry keys and
'named values that have to do with IE security.
'
'=====================================================

set shell = createobject("wscript.shell")
'=====
'Changing this under the HKLM makes it effective for all users
'at next logon...
'=====
HKLM_MyComputer_key = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0\"
valuename = "Flags"
shell.RegWrite HKLM_MyComputer_key & valuename, 1, "REG_DWORD"
'=====
'Changing this under the HKCU makes it effective for this user
'immediately and at every logon...
'=====
HKCU_MyComputer_key = "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0\"
valuename = "Flags"
shell.RegWrite HKCU_MyComputer_key & valuename, 1, "REG_DWORD"

msgbox "The 'My Computer' security zone is now visible in the IE security dialog."

wscript.quit
--

Joe
chwa
 
Old November 10th, 2003, 12:15 AM
Authorized User
 
Join Date: Jul 2003
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to stalker Send a message via MSN to stalker
Default

if you rename the page to HTA instead of HTML it would have worked and you wouldn't need to Change security settings, add trusted IPs or change registries heheheh

REMEMBER KISS!!

Keep It Simple Stupid!

just change htm to hta! one char :P






Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveX : getting PARAM value in activeX src smaraux Visual Studio 2005 1 March 4th, 2008 12:31 PM
Help in activeX ahmedelmassry C# 1 March 7th, 2007 03:19 AM
Advantages /Disadvantages of ActiveX DLL & ActiveX priyank Beginning VB 6 6 February 19th, 2007 11:34 AM
ActiveX - Please Help cobweb VS.NET 2002/2003 0 July 18th, 2006 02:34 AM
Please HELP !!! ActiveX johnjohn Classic ASP Professional 0 November 16th, 2004 12:45 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.