Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 21st, 2003, 02:07 AM
Banned
 
Join Date: Sep 2003
Location: Örebro, , Sweden.
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
Reply With Quote
  #2 (permalink)  
Old September 21st, 2003, 03:47 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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.
Reply With Quote
  #3 (permalink)  
Old September 21st, 2003, 04:14 AM
Friend of Wrox
Points: 3,558, Level: 25
Points: 3,558, Level: 25 Points: 3,558, Level: 25 Points: 3,558, Level: 25
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: California, USA
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.
Reply With Quote
  #4 (permalink)  
Old October 20th, 2003, 06:19 PM
Banned
 
Join Date: Sep 2003
Location: Örebro, , Sweden.
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
Reply With Quote
  #5 (permalink)  
Old October 21st, 2003, 04:05 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
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
Reply With Quote
  #6 (permalink)  
Old October 21st, 2003, 08:24 AM
Banned
 
Join Date: Sep 2003
Location: Örebro, , Sweden.
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
Reply With Quote
  #7 (permalink)  
Old November 10th, 2003, 12:15 AM
Authorized User
 
Join Date: Jul 2003
Location: , , .
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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:58 AM.


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