Ask the expert, Daniel pointing under the page to the bottom of the automatic loading of the class capacity how to get

Source: Internet
Author: User
Is there any such video or code case to use? Thank you

Reply content:

Is there any such video or code case to use? Thank you

HTML page:

                                    测试内容            

PHP Script:

test.php


  
   

@Eapen's right.

I don't know if you've ever used Django, it's probably wrong and not tested.

Update

urls.py

urlpatterns+=patterns('mydjango.getmore',    (r'^test.html$', 'test'),#先显示test页面    (r'^getinfo.html$', 'getinfo'),#ajax提交获得新的数据)

views.py

#先显示test页面def test(request):    return render_to_response('test.html',locals())#ajax提交获得新的数据def getinfo(request):    return render_to_response('getinfo.html',locals())

Test.html

            
  
                                                测试内容                            测试内容                            测试内容                    

Getinfo.html

            自动加载的内容        

In fact, is the main core point or JS and the use of Ajax ...
JS to determine whether the end of the bottom of the text with Ajax asynchronous loading content ...
Specific JS and Ajax upstairs friends have helped you to write well ...
What are you talking about? database operation what, Ajax request URL corresponding to the PHP inside write just

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.