Hello Guys!
I've just begun working with JS in VS2013 premium. No problems about coding, but I think I'm missing something.
Intellisense doesn't show all of the methods I'd expect.
To clarify.. I have a reference to an external js file that loads an XMLDoc.
Then I try to traverse the XML using the method GetElementsByTagName, but Intellisense show me only a few things.
This is what I've done:
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Prova.Master.cs" Inherits="FTBL.FTBL" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>FTBL Tips Homepage</title>
<script src="Scripts/JavaScript/Script.js"></script>
<asp:ContentPlaceHolder ID="Head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<form>
<div id="footer">
<script type="text/javascript">
var xmlDoc = loadXMLDoc("DataSources/XML/XMLCountries.XML");
x = xmlDoc.GetElementsByTagName("Country")[0];
y = x.childNodes[0];
document.write(y.nodeValue);
</script>
</div>
</form>
</body>
</html>
The only things that intellisense shows me are:
constructor, hasOwnProperty, isPrototypeOf, propertyIsEnumerable, toLocalString, toString and valueOf
Any suggestion?
Many thx!