Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7189879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:23:45+00:00 2026-05-28T19:23:45+00:00

Someone, ( @Denis ) helped me figure out this much, but I do not

  • 0

Someone, ( @Denis ) helped me figure out this much, but I do not quite understand what load() really achieves or why the reference to “some_html” is done.

I think that Denis meant this to be the python code to load the site originally, as I understand it.

def some_html():
    return render('my_template.tpl')

And this is the script which calls back python to get more data and it baffles me somewhat.

<script type="text/javascript">
    $('#result_from_server').load('/some_html');
</script>

What I can’t seem to understand is why the reference to the original Python method “/some_html” ? I would expect a reference to a new method in python, one which specializes in replying to that call from javascript.

The DIV with id=” result_from_server ” I guess will act as a pseudo variable or container in HTML to receive the result. That is fairly clear, I think.

<div id="result_from_server"></div>  

If anyone can help me understand how this request works I would appreciate it. I do understand that different types of data can be passed back from python. But I see no typing of any kind. I assume that means that this snippet is for passing text, then.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T19:23:45+00:00Added an answer on May 28, 2026 at 7:23 pm

    '/some_html' does not reference a Python method. It is as ignorant of Python as I am! In this case, it is the URL for the jQuery’s ajax call (the load method). I assume that your Python code’s end result is mapping a code template to a URL.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I asked this on server fault but really havent had much luck, hoping that
Someone on here helped put together this extremely useful query! SELECT * FROM results
Someone (w69rdy) in Stack Overflow helped me out with a great example to handle
Someone emailed me today that my app crashed on their device. I could not
Someone please correct me if I'm wrong, but parsing a yyyy/MM/dd (or other specific
Someone left the organisation but before leaving, he locked all the files for an
Someone sent me this email: Why do both of these alert to false? alert('a‌'
Someone please help me return this list properly from my view. I don't see
Someone recently mentioned the target .c.o in Makefiles for cross compatability, but I fail
Someone told me That Serialization was not the best way to send things over

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.