Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Script Problems with IE7

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,50078
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Script Problems with IE7
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Script Problems with IE7 - 7/27/2007 6:46:49 AM   
  Warren

 

Posts: 5
Score: 0
Joined: 7/27/2007
Status: offline
I have a large and complex VBScript used as a login script that I've developed and enhanced over the last several years that has worked great using IE5 and IE6 to display the results of the script as it executes. The script spawns an instance of IE, turns the address bar, toolbar, statusbar, menubar all OFF and then uses the window to display the company logo, login info for the user and then the results of drive mapping, printer mapping, setting local clock to system time, etc. etc. The window is very clean looking and users love it, not to mention my IT staff for the info it displays.

Unfortunately, it appears that IE7 has completely screwed up the way my VBScript works. It doesn't allow me to turn off any of the IE Window components such as the address bar, buttons, menus, etc. despite the fact that I clearly and explicitly  stuff for a locally executing VBScript so my display now has all of the things I turned off when instantiating the window. My understandiing is that IE7 expressly disallows turning off the address bar for anti-phishing purposes. This brings up several questions that I hope folks can answer.

1) Is there anyway around this programatically?

2) Are there any other options besides downgrading everyone back to IE6 such as  spawning a Firefox or Windows Explorer window rather than an Internet Explorer Window and use it to display the script output?

3) Is there any way to set security so that a locally executing script from within my company Intranet can do away with the address bar, etc. within IE7?

4) Can an IE7 HTA do this ?  (Get rid of address bar, menus, toolbar, etc.)  If so, can an HTA be used as a login script?

5) Is there a detailed reference of the IE7 DOM available somewhere tailored to use with VBScript? In other words, what has changed, what is restricted, etc.?


Any help would be greatly appreciated.

Warren
 
 
Post #: 1
 
 RE: Script Problems with IE7 - 7/27/2007 3:04:34 PM   
  dm_4ever


Posts: 2663
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
I'm using IE 7 with all security updates and this turns off those things you mentioned.


      

An HTA by default does not have any of the things you mentioned.  You can try copying your current code into a file and just change its extension to .hta and try it out for yourself.

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to Warren)
 
 
Post #: 2
 
 RE: Script Problems with IE7 - 7/27/2007 3:15:07 PM   
  Warren

 

Posts: 5
Score: 0
Joined: 7/27/2007
Status: offline
The below code shows pretty much exactly the same thing and does NOT work with IE7. I still get the address bar, toolbar, etc.


      

I'm pretty much stumped at this point with the only solution I'm seeing being to downgrade everyone to IE6. Fortunately most of my users are Firefox fanatics and don't use IE at all, but I am concerned about the possible political impact of folks who may be very senior management who will give me a hard time for taking away the "latest and greatest" version of something from them...

Warren

< Message edited by Warren -- 7/27/2007 3:18:39 PM >

(in reply to dm_4ever)
 
 
Post #: 3
 
 RE: Script Problems with IE7 - 7/27/2007 3:50:11 PM   
  dm_4ever


Posts: 2663
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
Shouldn't this


ObjExplorer = CreateObject("InternetExplorer.Application")

be

Set objExplorer = CreateObject("InternetExplorer.Application")


and what if you remove this line:    objExplorer.FullScreen = 0

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to Warren)
 
 
Post #: 4
 
 RE: Script Problems with IE7 - 7/27/2007 4:56:55 PM   
  Warren

 

Posts: 5
Score: 0
Joined: 7/27/2007
Status: offline
Thanks, will give it a try on Monday and post results here.

Warren

(in reply to dm_4ever)
 
 
Post #: 5
 
 RE: Script Problems with IE7 - 7/30/2007 9:03:34 AM   
  Warren

 

Posts: 5
Score: 0
Joined: 7/27/2007
Status: offline
Well, that most definitely did NOT change anything. My code executes fine and works perfectly EXCEPT that I can't turn off IE7's address bar, menu bar, status bar or anything else. The systems involved are fully default installs of XP SP2 and IE7 fully patched up to current.

Anyone have any ideas how to do this?

Warren

(in reply to Warren)
 
 
Post #: 6
 
 RE: Script Problems with IE7 - 7/30/2007 9:48:55 AM   
  dm_4ever


Posts: 2663
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
I have to say...that's pretty weird since that does not happen on my computers at home or at work.


      

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to Warren)
 
 
Post #: 7
 
 RE: Script Problems with IE7 - 7/30/2007 10:30:53 AM   
  Warren

 

Posts: 5
Score: 0
Joined: 7/27/2007
Status: offline
It definitely is pissing me off. It happens at all systems at work (about 115 or so of them) and my system at home and it's only the objExplorer.Addressbar, objExplorer.ToolBar, objExplorer.StatusBar, and objExplorer.MenuBar items that seem to ignore the settings. I've tried changing the value 0 to the built in Const FALSE, but that hasn't changed anything.

I'm just wondering what kind of security settings and such that you have on your IE7 that it allows you to turn off the address bar. Microsoft themselves has told me 3 different ways that this is explicity denied by IE7 under ALL conditions due to the anti-phishing code built in. It no longer pays any attention to that parameter in the object model.

Warren

< Message edited by Warren -- 8/1/2007 8:54:40 AM >

(in reply to dm_4ever)
 
 
Post #: 8
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Script Problems with IE7 Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts