问题描述
如果您访问这里:示例您将看到我的问题.
页面加载,然后加载div id = content
看看JS/jQuery的源代码,如果您需要PHP,请告诉我.我不太确定是使用JS还是PHP.我使用了 jQuery地址插件,所以也许我没有正确使用它,但这杀死了我./p>
关于我可能做错了什么的任何想法?在Firebug中,页面会加载,并且不会停止.如果有,请尝试一下.
感谢您的帮助!
这行代码:
$('.content').load('http://laynestaley.co.uk/test/'+fragment+'?ajax=1');
实际上是将整个页面加载到<div class='content'></div>
中.您的服务器端代码一定不能按照预期的方式执行该AJAX调用(只是再次加载/test/
的索引页).
if you visit here: Example You will see my problem.
The page loads, then loads all the same content within a div id=content
Have a look at the source for the JS/jQuery and if you need the PHP just let me know. Im not too sure if its the JS or PHP that's doing this. I use the jQuery Address Plugin so maybe im not using it properly but this is killing me.
any ideas on what i could be doing wrong? in Firebug the page loads and simply doesn't stop. Try it out if you have it.
Any help is appreciated!!
This line of code:
$('.content').load('http://laynestaley.co.uk/test/'+fragment+'?ajax=1');
Is actually loading the entire page into <div class='content'></div>
. Your server-side code must not be executing the way you expect it to with that AJAX call (It's just loading the index page of /test/
again).
这篇关于页面加载内容,内部内容时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!