Skip to content

Commit 53d313a

Browse files
committed
Pages: Use JSON for front matter
1 parent 1f72f19 commit 53d313a

File tree

110 files changed

+646
-659
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+646
-659
lines changed

CONTRIBUTING.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
---
2-
title: Contributing
3-
customFields:
4-
-
5-
key: "is_chapter"
6-
value: 0
7-
---
1+
<script>{
2+
"title": "Contributing",
3+
"customFields": [
4+
{
5+
"key": "is_chapter",
6+
"value": 0
7+
}
8+
]
9+
}</script>
810

911
Depending on your level of experience with some of the workflows common to many open source projects, e.g. git/GitHub, the command line, and setting up a local development environment, contributing to this site may be a breeze or come with a bit of a learning curve. If you fit into the former group, great! Jump ahead to learn how to get started.
1012

page/about-jquery.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
---
2-
title: About jQuery
3-
level: beginner
4-
customFields:
5-
-
6-
key: "icon"
7-
value: "certificate"
8-
---
1+
<script>{
2+
"title": "About jQuery",
3+
"level": "beginner",
4+
"customFields": [
5+
{
6+
"key": "icon",
7+
"value": "certificate"
8+
}
9+
]
10+
}</script>
911

1012
Getting started with jQuery can be easy or challenging, depending on your experience with JavaScript, HTML, CSS, and programming concepts in general. In addition to these articles, you can read about the [history of jQuery](https://jquery.org/history/) and the [licensing terms](https://jquery.org/license/) that apply to jQuery projects. You can also [make a donation](https://jquery.org/donate/) to help the [jQuery team](https://jquery.org/team/) continue to improve jQuery.

page/about-jquery/additional-support.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
---
2-
title : Additional jQuery Support
3-
---
1+
<script>{
2+
"title": "Additional jQuery Support"
3+
}</script>
44

55
While we hope to cover most jQuery-related topics on this site, you may need additional or more immediate support. The following resources can prove useful.
66

page/about-jquery/how-jquery-works.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
---
2-
title : How jQuery Works
3-
level: beginner
4-
---
1+
<script>{
2+
"title": "How jQuery Works",
3+
"level": "beginner"
4+
}</script>
55

66
### jQuery: The Basics
77

page/about.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
---
2-
title: About This Site
3-
customFields:
4-
-
5-
key: "is_chapter"
6-
value: 0
7-
---
1+
<script>{
2+
"title": "About This Site",
3+
"customFields": [
4+
{
5+
"key": "is_chapter",
6+
"value": 0
7+
}
8+
]
9+
}</script>
810

911
Learning how and when to use jQuery is a different process for each and every web developer, depending largely on experience with the primary tools for front-end development (HTML, CSS, and JavaScript) and knowledge of general programming principles. Over the years developers of all stripes have come to rely on our [API documentation](http://api.jquery.com) for help figuring out how to do exactly what they need to do.
1012

page/ajax.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
---
2-
title: Ajax
3-
level: beginner
4-
customFields:
5-
-
6-
key: "icon"
7-
value: "refresh"
8-
---
1+
<script>{
2+
"title": "Ajax",
3+
"level": "beginner",
4+
"customFields": [
5+
{
6+
"key": "icon",
7+
"value": "refresh"
8+
}
9+
]
10+
}</script>
911

1012
Traditionally webpages required reloading to update their content. For web-based email this meant that users had to manually reload their inbox to check and see if they had new mail. This had huge drawbacks: it was slow and it required user input. When the user reloaded their inbox, the server had to reconstruct the entire web page and resend all of the HTML, CSS, JavaScript, as well as the user's email. This was hugely inefficient. Ideally, the server should only have to send the user's new messages, not the entire page. By 2003, all the major browsers solved this issue by adopting the XMLHttpRequest (XHR) object, allowing browsers to communicate with the server without requiring a page reload.
1113

page/ajax/ajax-and-forms.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
---
2-
title: Ajax and Forms
3-
level: beginner
4-
source: http://jqfundamentals.com/legacy
5-
attribution:
6-
- jQuery Fundamentals
7-
---
1+
<script>{
2+
"title": "Ajax and Forms",
3+
"level": "beginner",
4+
"source": "http://jqfundamentals.com/legacy",
5+
"attribution": [ "jQuery Fundamentals" ]
6+
}</script>
87

98
jQuery's ajax capabilities can be especially useful when dealing with forms. There are several advantages, which can range from serialization, to simple client-side validation (e.g. "Sorry, that username is taken"), to [prefilters](http://api.jquery.com/jQuery.ajaxPrefilter/) (explained below), and even more!
109

page/ajax/ajax-events.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
---
2-
title : Ajax Events
3-
level: beginner
4-
source: http://jqfundamentals.com/legacy
5-
attribution:
6-
- jQuery Fundamentals
7-
---
1+
<script>{
2+
"title": "Ajax Events",
3+
"level": "beginner",
4+
"source": "http://jqfundamentals.com/legacy",
5+
"attribution": [ "jQuery Fundamentals" ]
6+
}</script>
87

98
Often, you'll want to perform an operation whenever an Ajax requests starts or stops, such as showing or hiding a loading indicator. Rather than defining this behavior inside every Ajax request, you can bind Ajax events to elements just like you'd bind other events. For a complete list of Ajax events, visit [Ajax Events documentation on docs.jquery.com](http://docs.jquery.com/Ajax_Events).
109

page/ajax/jquery-ajax-methods.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
---
2-
title : jQuery's Ajax-Related Methods
3-
level: beginner
4-
source: http://jqfundamentals.com/legacy
5-
attribution:
6-
- jQuery Fundamentals
7-
---
1+
<script>{
2+
"title": "jQuery's Ajax-Related Methods",
3+
"level": "beginner",
4+
"source": "http://jqfundamentals.com/legacy",
5+
"attribution": [ "jQuery Fundamentals" ]
6+
}</script>
87

98
While jQuery does offer many Ajax-related convenience methods, the core `$.ajax()` method is at the heart of all of them, and understanding it is imperative. We'll review it first, and then touch briefly on the convenience methods.
109

page/ajax/key-concepts.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
---
2-
title : Key Concepts
3-
level: beginner
4-
source: http://jqfundamentals.com/legacy
5-
attribution:
6-
- jQuery Fundamentals
7-
---
1+
<script>{
2+
"title": "Key Concepts",
3+
"level": "beginner",
4+
"source": "http://jqfundamentals.com/legacy",
5+
"attribution": [ "jQuery Fundamentals" ]
6+
}</script>
87

98
Proper use of Ajax-related jQuery methods requires understanding some key concepts first.
109

0 commit comments

Comments
 (0)