Discussion:
VBScript in IE11 in Windows 7?
(too old to reply)
Dr J R Stockton
2014-03-03 13:16:02 UTC
Permalink
I have a note that a VBScript DatePart error can be seen in Windows 7 -
I do not now know whether that was *my* Windows 7 or someone else's.

Currently, my Windows 7 has IE 11, and does not run VBScript.

The code can be tested at
<http://www.merlyn.demon.co.uk/vb-date2.htm#DP> - just under the heading
"ISO Week Number Using DatePart" there should be a yellow box on the
right. I expect its first line to say "Testing your VBScript if any :".

If there is no more in the box, VBScript is not operating.

Otherwise it should show results for two future dates.

In my IE 8, those results are "False"; the error is still present.

If those results are not "False", the error is corrected; a copy of the
box and a note of the IE version would be appreciated.

Has VBScript been removed from IE 11? Do I need to install or enable it
somehow? Comment?
--
(c) John Stockton, nr London, UK. For Mail, see Home Page. Turnpike, WinXP.
Web <http://www.merlyn.demon.co.uk/> - FAQ-type topics, acronyms, and links.
Command-prompt MiniTrue is useful for viewing/searching/altering files. Free,
DOS/Win/UNIX now 2.0.6; see my <http://www.merlyn.demon.co.uk/pc-links.htm>.
Evertjan.
2014-03-04 00:31:44 UTC
Permalink
Post by Dr J R Stockton
Currently, my Windows 7 has IE 11, and does not run VBScript.
Ugly, but you could try:

<meta http-equiv="x-ua-compatible" content="IE=9">
<script type='text/vbs'>
document.write 3*3
</script>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Mayayana
2014-03-04 22:04:28 UTC
Permalink
I got curious and checked this out:

http://msdn.microsoft.com/en-us/library/ie/bg182625%28v=vs.85%29.aspx

There's no VBS in "edge mode" in the Internet Zone.
Edge mode seems to be just a confusing term for using
an HTML5 DOCTYPE. (As opposed to standards mode.)
There seems to be no reason for the change other
than an attempt to wean people off of VBS for Web.

You didn't mention why you need it. I always code
pages for IE in "quirks mode" anyway. That way all
versions of IE give me the same dependable rendering.
You can get quirks mode by simply leaving out the
DOCTYPE tag.



------------------------

"Dr J R Stockton" <***@merlyn.demon.co.uk.invalid> wrote in message news:***@invalid.uk.co.demon.merlyn.invalid...
|I have a note that a VBScript DatePart error can be seen in Windows 7 -
| I do not now know whether that was *my* Windows 7 or someone else's.
|
| Currently, my Windows 7 has IE 11, and does not run VBScript.
|
| The code can be tested at
| <http://www.merlyn.demon.co.uk/vb-date2.htm#DP> - just under the heading
| "ISO Week Number Using DatePart" there should be a yellow box on the
| right. I expect its first line to say "Testing your VBScript if any :".
|
| If there is no more in the box, VBScript is not operating.
|
| Otherwise it should show results for two future dates.
|
| In my IE 8, those results are "False"; the error is still present.
|
| If those results are not "False", the error is corrected; a copy of the
| box and a note of the IE version would be appreciated.
|
| Has VBScript been removed from IE 11? Do I need to install or enable it
| somehow? Comment?
|
| --
| (c) John Stockton, nr London, UK. For Mail, see Home Page. Turnpike,
WinXP.
| Web <http://www.merlyn.demon.co.uk/> - FAQ-type topics, acronyms, and
links.
| Command-prompt MiniTrue is useful for viewing/searching/altering files.
Free,
| DOS/Win/UNIX now 2.0.6; see my
<http://www.merlyn.demon.co.uk/pc-links.htm>.
Dr J R Stockton
2014-03-11 20:55:36 UTC
Permalink
Post by Mayayana
You didn't mention why you need it. I always code
pages for IE in "quirks mode" anyway. That way all
versions of IE give me the same dependable rendering.
You can get quirks mode by simply leaving out the
DOCTYPE tag.
Pages <http://www.merlyn.demon.co.uk/vb-?????.htm> are a disinterested
means of presenting a few VBScript algorithms and at least one bug to an
uninterested public.

AIUI, the same DLL is used for IE, Excel, Word, and other MS products,
and the page is expected to be mainly, if at all, of interest to those
who use VBScript in non-Web material, including HTAs.

The DatePart bug demonstrated in the cited page certainly exists in
other MS products.
--
(c) John Stockton, nr London, UK. E-mail, see Home Page. Turnpike v6.05.
Website <http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
PAS EXE etc. : <http://www.merlyn.demon.co.uk/programs/> - see in 00index.htm
Dates - miscdate.htm estrdate.htm js-dates.htm pas-time.htm critdate.htm etc.
Evertjan.
2014-03-12 00:09:56 UTC
Permalink
a disinterested means
I more often than not hate it when my means get disinterested.

Should I try to live beond my means?
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Loading...