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
4c66f62a
Commit
4c66f62a
authored
Dec 31, 2006
by
Jörn Zaefferer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved Mikes hack to ease testing against IE cache
parent
c3d8cb0c
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
31 deletions
+48
-31
test.php
build/test/data/test.php
+1
-1
testrunner.js
build/test/data/testrunner.js
+13
-0
ajaxTest.js
src/ajax/ajaxTest.js
+34
-30
No files found.
build/test/data/test.
html
→
build/test/data/test.
php
View file @
4c66f62a
...
@@ -3,5 +3,5 @@ html text<br/>
...
@@ -3,5 +3,5 @@ html text<br/>
testFoo
=
"foo"
;
$
(
'#foo'
)
.
html
(
'foo'
);
testFoo
=
"foo"
;
$
(
'#foo'
)
.
html
(
'foo'
);
ok
(
true
,
"test.html executed"
);
ok
(
true
,
"test.html executed"
);
/* ]]> */
</
script
>
/* ]]> */
</
script
>
<script
src=
"data/test.js"
></script>
<
script
src
=
"data/test.js
?<?php srand(); echo time() . '' . rand(); ?>
"
></
script
>
blabla
blabla
\ No newline at end of file
build/test/data/testrunner.js
View file @
4c66f62a
...
@@ -191,4 +191,17 @@ function t(a,b,c) {
...
@@ -191,4 +191,17 @@ function t(a,b,c) {
for
(
var
i
=
0
;
i
<
f
.
length
;
i
++
)
for
(
var
i
=
0
;
i
<
f
.
length
;
i
++
)
s
+=
(
s
&&
","
)
+
'"'
+
f
[
i
].
id
+
'"'
;
s
+=
(
s
&&
","
)
+
'"'
+
f
[
i
].
id
+
'"'
;
isSet
(
f
,
q
.
apply
(
q
,
c
),
a
+
" ("
+
b
+
")"
);
isSet
(
f
,
q
.
apply
(
q
,
c
),
a
+
" ("
+
b
+
")"
);
}
/**
* Add random number to url to stop IE from caching
*
* @example url("data/test.html")
* @result "data/test.html?10538358428943"
*
* @example url("data/test.php?foo=bar")
* @result "data/test.php?foo=bar&10538358345554"
*/
function
url
(
value
)
{
return
value
+
(
/
\?
/
.
test
(
value
)
?
"&"
:
"?"
)
+
new
Date
().
getTime
()
+
""
+
parseInt
(
Math
.
random
()
*
100000
);
}
}
\ No newline at end of file
src/ajax/ajaxTest.js
View file @
4c66f62a
This diff is collapsed.
Click to expand it.
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