vbscript in HTML files not render in IE 11, Windows 7 - vbscript

I have this simple vbscript code:
<script type="text/vbscript">document.write("hello world")</script>
However when I view this file in IE 11 on Windows 7 hello world is not displayed.
Am I missing something?

As of Internet Explorer 11, VBScript is considered deprecated and should no longer be used as a scripting language for IE11. Webpages displayed in IE11 edge mode won't execute VBScript code.
More information here: https://msdn.microsoft.com/en-us/library/ie/dn384057(v=vs.85).aspx

Related

windows.location.href throws error on IE10 using vbscript

I'm trying to use Window.Location.Href in my VBScript code,
this throws me an error on Windows 7, IE 10:
Object doesn't support this property or method
It's working on XP and it's even working on Win7 if I'm using javascript.
What can be the problem?
Change to window.location.href (javascript sintax, no uppercase) and it will work.
It looks like Windows 7 IE 10 has some problems with VBScript. Can you try running your page in IE9 compatibility mode? If not then try to determine which object/property combination is giving you the problem. If Window.Location is the problem then try just using Location. However, if Location.Href is the problem then there may be a security issue going on.
More information on setting compatibility mode at vbscript is not working on IE10 browser mode

XPath function selectNodes does not wordk in Windows 8

This small JavaScript snippet of code makes me mad since I installed Windows 8
xmlDoc=http_request.responseXML.documentElement;
var nodes = xmlDoc.selectNodes('/rfp_object/category');
Until that very moment everything worked fine for years, but now I meet trouble when using Windows 8.
The error says: The property or method selectNodes is not being supported by this object.
In Chrome, Firefox, Safari and Windows Vista it does what I was expecting. But under Windows 8 not. Even more peculiar is that it works fine in Development on an XP server, but not in production on Windows Server 2008.
Changing the selectNodes into getElementsByTagName('category') works great in this situation but is not an option, because I need to filter data in other occasions.
So what do I have to do, to make it work for Windows8 users like it used to work.
Any help will be higly appreciated.
Lourens
I think IE 10 makes responseXML an IE XML DOM document while with earlier versions of IE it is an MSXML XML DOM document. The methods selectSingleNode and selectNodes are part of the MSXML DOM API but not of the IE DOM API. I don't think IE provides XPath support for its DOM documents so you will need to decide whether you want to convert the responseXML into an MSXML DOM document along the lines of
var doc = new ActiveXObject('Msxml2.DOMDocument.6.0');
doc.loadXML(new XMLSerializer().serializeToString(http_request.responseXML));
to then use selectNodes on the doc variable or you will check whether the method IE offers like getElementsByTagName and querySelector allow you to find what you are looking for or you will need to check whether a Javascript implementation of XPath like https://github.com/ilinsky/xpath.js allows you to write the query you want.

Why jsfiddle is not rendering at all in IE8 and previous versions?

I tried to open http://jsfiddle.net/ in IE8 with BrowserMode-- IE8 and Document Mode--IE8 in developer tools. In other browsers it's working fine, and even in IE9 it's working fine. But I see javascript errors in IE8 and older versions of IE.
SCRIPT1010: Expected identifier
EditorCM.js?Spring, line 105 character 25
SCRIPT438: Object doesn't support property or method 'addEventListener'
heyoffline.js?Spring, line 24 character 5
SCRIPT5009: 'MooShellEditor' is undefined
jsfiddle.net, line 91 character 7
SCRIPT5007: Unable to get value of the property 'editor': object is null or undefined
Actions.js?Spring, line 130 character 5
this is how it's rendered in IE8
Is jsfiddle working with IE8 and older versions?
You can find more info here. In short:
For all unsupported browsers (like IE8 or mobile phones) please use
DRAFT feature.
Log in to the service on your favourite browser.
Create fiddle and Run it
On IE8 open the http://jsfiddle.net/draft/
Create your jsfiddle on a modern browser then when you want to test on IE8 use the full screen link.
Share > Share full screen result.

UTF-8 encoding does not work properly with Internet Explorer but works perfectly with Mozilla Firefox

I need to display an alert box in other than English language for which I am making use of bean message using Application Resource properties file. The code written in JSP works perfect in Firefox but in IE the characters are messed up and I get all box signs inside alert box.The same problem occurs for ToolTips as well. Any solutions?
Check your page encodings
FF uses UTF-8 page Encoding. View--> Character Encodings
Earlier versions of IE set character encoding according to the language on the client when the document did not specify encoding
Which IE Version are you using ?
This may help also. IE uses the wrong character set when it renders an HTML page
Is charset is utf in headers ?
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
I did found a solution for my query. Actually the issues were with the tool tips and alert boxes were getting displayed in box sign characters only in Internet Explorer and that too in Windows Xp but working properly in windows 7 and other browsers.
What i did was:
1. Right Click On Desktop
2. Properties
3. Appearence Tab
4. Click On Advanced Button
5. In the Item Combo box Select MessageBox(the font combo box should get enabled by then)
6. Select Arial MS Unicode Font instead of Tahoma(Windows XP Default) Font.
And then Check. The desired output will be seen. This is a work around solution but it seems to work fine. Thanks WouterH and Hardik for your guidance till here.

How can I revert back the native javascript code coloring in Dreamweaver CS4?

I recently installed Adobe Dreamweaver CS4. When I tried to code in javascript, all my code is written in pink font. I checked my Preferences > Code Coloring then choose Javascript. I was surprised to see that it only recognizes 3 types of code: jQuery Identifiers, jQuery Keywords and Methods, jQuery objects. I do code jQuery, but I want to see the previous color coding from my pass Installation (Macromedia Dreamweaver version XX). What can I do to revert or add these native code types so I can set their syntax color. I'm just used to seeing these codes more color-coded. Thanks in advance!
I ask because I have the following options when I open up the JavaScript code coloring options:
JavaScript Bracket
JavaScript Client Keywords
JavaScript Comment
JavaScript Default Text
JavaScript Function Keyword
JavaScript Identifier
JavaScript Native Keywords
JavaScript Number
JavaScript Operator
JavaScript RegExp
JavaScript Reserved Keywords
JavaScript String
I just checked in CS4 and CS5 and those entries are present in both, there are no entries for jQuery. Have you installed an extension that provides jQuery support (at least code coloring)? If you have, then I'd suggest you uninstalling it and the modifications may be reverted.
If you have uninstalled the extension, or if you don't have an extension installed, and the code coloring is still awry, to get back to the original code coloring that's built into Dreamweaver, you may need to perform step 12 on this page:
http://kb2.adobe.com/cps/191/tn_19105.html
For CS4 and CS5, the folder to remove will have a "language" folder that the Configuration folder is within. On my Vista system for CS5, it's at:
C:\Users[username]\AppData\Roaming\Adobe\Dreamweaver CS5\en_US\configuration\

Resources