Bug Tracker

Opened 9 years ago

Closed 8 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)

index.html (897 bytes) - added by john_lucky 9 years ago.
The test file
show.jsp (244 bytes) - added by john_lucky 9 years ago.
The server-side file

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by john_lucky

Attachment: index.html added

The test file

Changed 9 years ago by john_lucky

Attachment: show.jsp added

The server-side file

comment:1 Changed 8 years ago by miketaylr

Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.