Side navigation
#5811 closed bug (invalid)
Opened January 15, 2010 05:30AM UTC
Closed October 26, 2010 05:49PM UTC
$("#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 (1)
Changed October 26, 2010 05:49PM UTC by comment:1
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.