我搜索了互联网,直到我去了蓝色,但无法弄清楚,为什么它不工作。jQuery AJAX奋斗
我有JavaScript,但这只是为Firefox工作。没有其他浏览器。
所以,我决定去jQuery。
我想要做的是这样的: - 我有一个文件夹。 - 在这个文件夹中,我有一个html.html文件。这是我的主要网站。 - 然后我有一个文件home.html。
中将Html.HTML看起来是这样的:
<html>
<head>
<title>
Struggeling with jQuery ajax! *******
</title>
</head>
<body>
<div="one">
Load the page here
</div>
</body>
</html>
和home.html的是这样的:
<html>
<head>
</head>
<body>
Please load this into the div! (this text will be displayed in other words)
</body>
</html>
如何在地球上我能得到这个使用jQuery?请帮帮我。我无法做到这一点。
============================================== =======================================
好吧,所以这是如何看起来像现在。在我的文件,我的Home.html:
<html>
<head>
<title>
Struggeling with jQuery ajax! *******
</title>
<script language="javascript" src="jQuery.js"></script>
<script>
$(document).ready(function() {
$("#one").load("html.html body");
});
</script>
</head>
<body>
<div id="one">
Load the page here
</div>
</body>
</html>
我下载的jQuery的开发版本,这是一个文件,其中home.html的所在(的jquery.js)。
然后在其他中将Html.HTML看起来是这样的:
<html>
<head>
</head>
<body>
Please load this into the div! (this text will be displayed in other words)
</body>
</html>
,但是这是行不通的。我不明白“请这个加载到DIV!(这几个字换句话说显示)”
我相信你可以在jQuery中使用'.load()'函数。 – tymeJV 2013-04-05 20:32:44
所以你有JavaScript,你已经搜索,决定去与jQuery,仍然没有代码发布? – adeneo 2013-04-05 20:35:42