[jQuery] [JQuery 1.2.3] The load function will send two requests of images in IE 6.
Hi,
I want to using load function to load other one page. But I found that
images of the loaded page would be requested two times in IE 6. I
guess the cause is cache machine problem of IE 6. I found the images
would be requested in (clean function: div.innerHTML = wrap .... and
append function : appendChild) of jquery 1.2.3 file.
The attachment is an example of the problem. The attachment is a JAVA
web application. Please extract the attachment to "%TOMCAT_HOME%/
webapps", and start the tomcat. The console of tomcat will show the
request URLs.
In the IE 6, input "http://localhost:8080/jquery/test_Service.jsp".
We should clean the cache of IE 6 before clicking the "open" button on
the test_Service.jsp page.
The console log like the following:
0.............../jquery/image_Service.html
1.............../jquery/a.jpg
2.............../jquery/a.jpg
How to post the attachement?
The test page:
test_Service.jsp
-----------------------------------------------------
<html>
<head>
<title>JQuery Load Test</title>
<!-- Jquery Lib -->
<script type="text/javascript" src="js/jquery-1.2.3.min.js"></script>
</head>
<body>
<input type="button" value="open" onclick='$("#userLogin").load
("image_Service.html")'>
<!--main footer end-->
<!-- consumerSignIn div lock screen -->
<div id="userLogin" style="width:400px;" w="400" h="400"></div>
</body>
</html>
-----------------------------------
image_Service.html
--------------------------------------------------------------
fdsfkdsfkd
<img src="a.jpg">
-------------------------------------
Thanks.
Xiaoyu