Click to See Complete Forum and Search --> : checking registry entries with javascript
evanscolin
01-09-2003, 05:12 PM
Hopefully someone will be able to assist, basically I need to check from my web page whether the User as set a particular flag in internet explorer and if not then give them a message and then close the window.
The setting is in Tools / Internet Options / Temporary Internet Files / Settings and the flag set is Every visit to the page.
I know where to check using Regedit etc manually but wondered if there was a way to automate this by using a javascript in the HTM file.
Any help would be greatly appreciated.
Many thanks
Colin
No, you can't check registry entries with javascript. Thank goodness...
evanscolin
01-09-2003, 05:19 PM
you seem very authoritive in your reply but I am sure that it is possible to action from a web page but I may be wrong in assuming javascript can't do it but maybe vb script could or even a java applet, any positive feed back ?
Perhaps you weren't talking about regestry entries, but since you mentioned regedit, I assumed that you were. If you were, I can state again, you can't change the registry with JavaScript.
evanscolin
01-09-2003, 05:46 PM
Hi Pyro, thanks for replying again.
I don't want to change any entries all I want to do is check the value in the registry and if its not the value for every visit to the page, then inform the 'user' and then close the window.
My web pages links to a database that requires that the page is refreshed on every submit, visit etc so I need this flag set to avoid corruption in the data.
khalidali63
01-09-2003, 06:01 PM
No way you can not do this.
You can try one thing though.If you use JavaScript1.5 which is only supported by ns6+ and Mozilla 1+ browsers,and make use of Java classes perhaps you will be able to do that,
again I have not done it and I seriously doubt that its possible.
Khalid
Originally posted by evanscolin
My web pages links to a database that requires that the page is refreshed on every submit, visit etc so I need this flag set to avoid corruption in the data. The best thing to do would be to make your database work with whatever settings the user has enabled. What are you using for your database?
I don't know if this works, it is supposed to keep the browsers from caching your pages, thus meaning it would have to load every time. Try it.
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
lsexton
01-10-2003, 08:42 AM
Let me add my $.02 to this topic. I'm new to JavaScript, but I have been working on some code this week that does read AND write to the registry. Download outexmpl.exe from Microsoft: http://www.microsoft.com/office/ork/2000/Appndx/toolbox.htm#outtoday and look at the custom.htm file. This code appears to only work in Outlook, but it does use JavaScript to read/write the registry. Perhaps, it could be modified to work outside of Outlook? Maybe it takes advantage of some Outlook specific extensions to JavaScript?