Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
898ca319
Commit
898ca319
authored
Dec 15, 2006
by
Jörn Zaefferer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed synchrnous requests, improved AJAX inline documentation
parent
18e33074
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
133 additions
and
91 deletions
+133
-91
newandnoteworthy.txt
newandnoteworthy.txt
+7
-0
ajax.js
src/ajax/ajax.js
+105
-91
ajaxTest.js
src/ajax/ajaxTest.js
+21
-0
No files found.
newandnoteworthy.txt
View file @
898ca319
New and Noteworthy
New and Noteworthy
-----------------
-----------------
1.0.5
-----
- Fixed synchronous requests
- $.get, $.getIfModified, $.post, $.getScript and $.getJSON now all pass through the XMLHttpRequest as returned by $.ajax
- Improved AJAX docs (eg. more examples for $.ajax
1.0.4
1.0.4
-----
-----
...
...
src/ajax/ajax.js
View file @
898ca319
This diff is collapsed.
Click to expand it.
src/ajax/ajaxTest.js
View file @
898ca319
...
@@ -22,6 +22,27 @@ test("param", function() {
...
@@ -22,6 +22,27 @@ test("param", function() {
ok
(
$
.
param
(
params
)
==
"foo[bar]=baz&foo[beep]=42&foo[quux]=All%20your%20base%20are%20belong%20to%20us"
,
"even more arrays"
);
ok
(
$
.
param
(
params
)
==
"foo[bar]=baz&foo[beep]=42&foo[quux]=All%20your%20base%20are%20belong%20to%20us"
,
"even more arrays"
);
});
});
test
(
"pass-through request object"
,
function
()
{
expect
(
7
);
stop
();
var
count
=
0
;
var
success
=
function
()
{
if
(
count
++
==
6
)
start
();
}
var
url
=
"data/name.php"
;
ok
(
$
.
get
(
url
,
success
),
"get"
);
ok
(
$
.
getIfModified
(
url
,
success
),
"getIfModified"
);
ok
(
$
.
post
(
url
,
success
),
"post"
);
ok
(
$
.
getScript
(
"data/test.js"
,
success
),
"script"
);
ok
(
$
.
getJSON
(
"data/json.php"
,
success
),
"json"
);
ok
(
$
.
ajax
({
url
:
url
,
success
:
success
}),
"generic"
);
});
test
(
"synchronous request"
,
function
()
{
ok
(
/^{ "data"/
.
test
(
$
.
ajax
({
url
:
"data/json.php"
,
async
:
false
}).
responseText
),
"check returned text"
);
});
test
(
"load(String, Object, Function) - simple: inject text into DOM"
,
function
()
{
test
(
"load(String, Object, Function) - simple: inject text into DOM"
,
function
()
{
expect
(
2
);
expect
(
2
);
stop
();
stop
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment