Opened 13 years ago
Closed 12 years ago
#5811 closed bug (invalid)
$("#id").load doesn't work in opera and firefox
Reported by: | john_lucky | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | ajax | Version: | 1.3.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
tml>
<head>
<script type="text/javascript" src="jquery-1.3.2.js"></script>
<script type="text/javascript">
$(document).ready(function(){
function PostContent(title,content)
{this.title=title;this.content=content;}
$("a").click(function(event){
$.ajax({type: "GET",
url: "test.js", dataType: "script"});event.preventDefault();
}); $("a").click(function(event){
$("#result").load("http://localhost:8080/show.jsp",{$("#content").val( ).length, $("#content").val()},function(){
$("#result").load("http://localhost:8080/show.jsp",new PostContent("en","yes"),function(){ alert("xoxo"); });
}); });
</script>
</head> <body>
<a href="http://jquery.com/">jQuery</a><input id="title" type="text" />
<textarea id="content"></textarea>
</p><div id="result"> </div><p> </p>
</body>
</html>
======================================= show.jsp source here <html>
<body> <h1><% out.println(request.getParameter("title")!=null?request.getParameter("title"):"标题");%></h1> <pre><% out.println(request.getParameter("content")!=null?request.getParameter("content"):"内容");%></pre> </body> </html>
Attachments (2)
Change History (3)
Changed 13 years ago by
Attachment: | index.html added |
---|
comment:1 Changed 12 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Closing as invalid as this test-case isn't really usable. Please feel free to reopen with a working test-case hosted on a server somewhere.
The test file