-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjq.html
57 lines (39 loc) · 2.29 KB
/
jq.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>jquery </title>
</head>
<body>
<p>this is the head of my website</p>
<p id="box">this is the head of my website3</p>
<p class="rise">this is the head of my website3</p>
<p>this is the head of my website4</p>
<button id="hn">clickon this you will see magic</button>
<div id="interest">To add to @andy_magoon, in my case, I had a script tag that was supposed to serve up javascript, but because the request was redirected to an HTML page (its not important why it was redirected), which begins with <!DOCTYPE html>, which is not valid javascript, the browser returns the SyntaxError when it attempt to parse the HTML as JS. – david.barkhuizen Apr 4 '16 at 10:54
2
@Thom The way to fix it is to make sure that the HTTP get returns the javascript file that you're looking for, and not unexpected HTML. – david.barkhuizen Apr 4 '16 at 11:07
1>
I got exactly this error because, as it turns out, the file path is incorrect and it can't find the file specified in script tag. – newman Jan 25 '17 at 1:57
mine was 301 redirect issue itself. Fixed by appending / at the end of url. – Kishor Pawar Aug 2 '17 at 5:59
I sometimes get this error when I try running an uncompleted project deployment on Heroku. – akolliy May 22 '20 at 17:49
@david.barkhuizen I feel what you said is completely valid. But now how do i make the browser understand or send javascript file from the server – tencho Jul 9 '20 at 13:59 </div>
<h1 id='coords'></h1>
<form>
<input id="inp" type="text">
<textarea id="text" >put your text </textarea>
</form>
</body>
<script src="jquery-3.6.0.min.js"></script>
<!-- 1 -->
<!-- we also use cdn which is taken from google etc -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- here is i m gonna make a fuction a whole which will make my html first ready everthing is clear then do internally stauff -->
<script src="jquieris.js">
</script>
<!-- 2 -->
<!-- we represent jquery for a dollars sign "$"-->
<!-- 3 -->
</html>