I've added some JavaScript code to my ASPX page, and when I navigate to the page I get the following error:
The first part of my ASPX page with JavaScript ... the line starting with $(document).ready ...:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="MyProcess.aspx.vb" Inherits="DC.Web.MyProcess" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html>
<link rel="stylesheet" runat="server" media="screen" href="DCStyles.css" />
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Move-In</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript">
if (typeof jQuery == 'undefined') {
var script = document.createElement('script');
script.type = "text/javascript";
script.src = "http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(script);
}
</script>
<script src="https://myurl/myjavascriptstuff.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
var fspParameters = {
authenticationKey: '89234-979AF-kj23987-jkljjh-1123',
opType: 'Token',
entryContext: 'WebConsumerInitiated',
formId: 'token-form',
nameOnAccountField: 'NameOnAccount',
zipField: 'Zip'
};
fspSetup(fspParameters);
});
</script>
</head>
<body>
<form id="SomeForm" runat="server">
I'm unable to resolve this Webpage Error (unless of course I remove the JavaScript reference). How can I fix this?