Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Temporarily storing data between web pages (HTA)

Status
Not open for further replies.

woter324

Technical User
Jan 26, 2007
179
GB
Hi All,

I have an HTA that mimics the tabs in a Windows dialogue. Each tab is a separate html page inside an iFRAME. The pages collect data that will be committed to Active Directory in the final tab.

Would anybody be able to advise on the best (simplest) method of temporarily storing the field values until the final commit stage. I have though about cookies, a database and writing to text or XML file, but wondering if I am missing a trick as they are all a little cumbersome.

As always any tips, idea would be gratefully received.


Many thanks

Woter.

P.S. Thinking about it, I hope this is the right forum. I am writing it in VBScript.
 
If you go through the screens in sequence, you could just append them to the GET command. For instance, your link to the next tab would look like
Code:
<a href="page2.hta?var1=foo&var2=bar&var3=...">Go</a>
[code]

I don't remember if VBScript has a built-in function to do url-safe encoding or not. That would probably be necessary if you are using spaces or any kind of special character.  That may be easiest, though your links and urls will get really long if you are passing much information.  A cookie/flat file is possibly the easiest solution.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top