Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


VBscript, IE back method not working

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> VBscript, IE back method not working
  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 >>
 VBscript, IE back method not working - 12/12/2007 6:01:36 PM   
  BBistheKing

 

Posts: 107
Score: 0
Joined: 6/21/2005
Status: offline
Hi,

I am writing an app for our admin team to perform a repetitive task using one of our intranet sites. I am trying to use oIE.document.location.reload(true). Works fine on any other website but this one particular site wont let me use it. It gives me an error 800A0046 permission denied. After searching google I believe the error is due to not having read/write permission. I am getting a similar error when I use oIE.document.parentwindow.history.back. So does any one know of a way to refresh IE and go back a page in IE without resorting to appactivate/sendkeys?

< Message edited by BBistheKing -- 12/12/2007 6:04:47 PM >


_____________________________

"Live simply, that others may simply live." - Mahatma Gandhi
 
 
Post #: 1
 
 RE: VBscript, IE back method not working - 12/12/2007 6:30:25 PM   
  TNO


Posts: 1400
Score: 16
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
Will this particular website allow you to perform any other functions? Or is it only the reload? Could you post the source code of the webpage?

_____________________________

To iterate is human, to recurse divine. -- L. Peter Deutsch

(in reply to BBistheKing)
 
 
Post #: 2
 
 RE: VBscript, IE back method not working - 12/12/2007 7:32:19 PM   
  BBistheKing

 

Posts: 107
Score: 0
Joined: 6/21/2005
Status: offline
I wish I could post the source code but because it has a lot of client information on it I would be breaching the Privacy act and I would be in serious trouble if I was found out.

I can use navigate, access the innertext and innerhtml, access links etc. It the only issue is with reload and back. Is it possible it might have something to do with not having admin rights to the computer it is being used on? Or would it be a server-side issue?

< Message edited by BBistheKing -- 12/12/2007 8:10:05 PM >


_____________________________

"Live simply, that others may simply live." - Mahatma Gandhi

(in reply to BBistheKing)
 
 
Post #: 3
 
 RE: VBscript, IE back method not working - 12/13/2007 4:52:09 AM   
  TNO


Posts: 1400
Score: 16
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
Can I assume correctly that this particular computer is running windows vista? If so yo DO have to run as an administrator. The new UAC "feature" of vista blocks cross window manipulation in some cases. (You could try putting the page in the trusted domain but I'm not sure if this will work)

_____________________________

To iterate is human, to recurse divine. -- L. Peter Deutsch

(in reply to BBistheKing)
 
 
Post #: 4
 
 RE: VBscript, IE back method not working - 12/13/2007 9:06:18 AM   
  BBistheKing

 

Posts: 107
Score: 0
Joined: 6/21/2005
Status: offline
We are using XP, sorry, forgot to mention that. I tested using back and reload on google on the computer that was having the problem and it worked fine. The web site in question is an internal web site and is not secure, at least the padlock symbol doesn't show up on IE. I can access everything else I have tried to access through the DOM, just back and reload won't work. It just seems really odd to me.

I don't know much about setting up web sites - is it possible to block the use of reload and back?

< Message edited by BBistheKing -- 12/13/2007 9:08:11 AM >


_____________________________

"Live simply, that others may simply live." - Mahatma Gandhi

(in reply to BBistheKing)
 
 
Post #: 5
 
 RE: VBscript, IE back method not working - 12/14/2007 4:43:06 AM   
  TNO


Posts: 1400
Score: 16
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
its possible yes, but without seeing the code behind the page its hard to say that this is the issue. Can you use document.location.replace?

_____________________________

To iterate is human, to recurse divine. -- L. Peter Deutsch

(in reply to BBistheKing)
 
 
Post #: 6
 
 
 
  

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 >> VBscript, IE back method not working 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