Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


history.back in HTA

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> history.back in HTA
  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 >>
 history.back in HTA - 10/29/2006 3:09:48 AM   
  swiftoid


Posts: 31
Score: 0
Joined: 10/20/2006
Status: offline
Hi everyone. Is there an equivelant of history.back('1') when using javascript in a HTA? Even if it's in VBscript I don't care, it's just that you guys seem to be the experts on HTA and seem to know more about it than Microsoft.

When I try using for example:
<script>history.back('1')</script>
under a html page it works fine
but the same code in a HTA doesn't do anything.
I know I could just do a:
document.location=.....
but I am passing a massive amount of variables to this page and to actually get the previous page to display them and this page to send them would be a huge task. Please help me someone!!!

_____________________________

Jamie Swift
<!---The Swiftanator---!>
www.swiftscripts.co.uk
 
 
Post #: 1
 
 RE: history.back in HTA - 11/29/2006 7:37:35 PM   
  TNO


Posts: 1397
Score: 16
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
quote:

Hi everyone. Is there an equivelant of history.back('1') when using javascript in a HTA? Even if it's in VBscript I don't care, it's just that you guys seem to be the experts on HTA and seem to know more about it than Microsoft.


Thanks for the compliment, but I'm afraid that history.back('blah') does not exist in an HTA since its not a browser. So you're gonna have to use  document.location= but passing the information isn't as hard as you think, you have a few alternatives. One of them being frames. If you set up your HTA with a hidden frame, you can pass variables to that window and hold them there while the bottom frame changes. Or you could hold the values in the registry and read them from there. Or even write to a text file andthen read from that on the new page. 

_____________________________

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

(in reply to swiftoid)
 
 
Post #: 2
 
 
 
  

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 >> history.back in HTA 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