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
05a4b784
Commit
05a4b784
authored
Jul 02, 2006
by
Michael Geary
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix jQuery.httpData to allow forcing of text data
parent
73f55bec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
ajax.js
ajax/ajax.js
+6
-4
No files found.
ajax/ajax.js
View file @
05a4b784
...
@@ -174,11 +174,13 @@ jQuery.httpSuccess = function(r) {
...
@@ -174,11 +174,13 @@ jQuery.httpSuccess = function(r) {
r
.
status
==
304
)
||
!
r
.
status
&&
location
.
protocol
==
"file:"
;
r
.
status
==
304
)
||
!
r
.
status
&&
location
.
protocol
==
"file:"
;
};
};
// Get the data out of an XMLHttpRequest
// Get the data out of an XMLHttpRequest.
// Return parsed XML if content-type header is "xml" and type is "xml" or omitted,
// otherwise return plain text.
jQuery
.
httpData
=
function
(
r
,
type
)
{
jQuery
.
httpData
=
function
(
r
,
type
)
{
// Check the headers, or watch for a force override
var
xml
=
(
!
type
||
type
==
"xml"
)
&&
return
r
.
getResponseHeader
(
"content-type"
).
indexOf
(
"xml"
)
>
0
||
r
.
getResponseHeader
(
"content-type"
).
indexOf
(
"xml"
)
>=
0
;
type
==
"xml"
?
r
.
responseXML
:
r
.
responseText
;
return
xml
?
r
.
responseXML
:
r
.
responseText
;
};
};
// Serialize an array of form elements or a set of
// Serialize an array of form elements or a set of
...
...
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