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 8893329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:13:10+00:00 2026-06-14T23:13:10+00:00

I am learning to use javascript, ajax, python and django together. In my project,

  • 0

I am learning to use javascript, ajax, python and django together.

In my project, a user selects a language from a drop-down list. Then the selected is sent back to the server. Then the server sends the response back to the django template. This is done by javascript. In the django template, I need the response, for example, German, to update the html code. How to pass the response to the html code. The response can be seen in the range of ….

How to do it without reload the html page?

Thanks.

  • 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-06-14T23:13:12+00:00Added an answer on June 14, 2026 at 11:13 pm

    You could use jquery to send the ajax request and server could send the response with html content.
    For example,

    Server: When server receives the ajax request. This would return the html content i.e. a template which could be rendered to the client via ajax

    def update_html_on_client(request):
        language = request.GET.get('language', None)
        #for selected language do something
        cal_1 = ...
        return render_to_response('my_template.html', {'cal':cal_1}, content_instance = template.RequestContent(request))
    

    Template: This is example of ajax function you would use to generate ajax request. You can select the div in which you can populate the html response returned by the server.

    function getServerResponse(){
    $.ajax({
      url: 'your_url_here',
      data: {language:'German'},
      dataType:'html'
      success : function(data, status, xhr){
                   $('#server_response').html(data);
                 }
    });
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am learning to use xmlhttprequest/AJAX. In this sample code from w3schools, I do
I am learning AJAX in zend framework step by step. I use this question
I was learning some JavaScript, to select a file and use it to create
I am have a hard time learning how to use ajax and jquery to
I am learning to use GWT with App Engine in Eclipse. I included the
I am just learning to use Services, and am sort of stuck. I have
i am learning to use SO_SNDTIMEO and SO_RCVTIMEO to check the timeout. It is
I'm just learning to use lazy sequences in Clojure, and I'm not sure what
I am learning to use Subversion and am experimenting. I checked out a copy
I'm learning to use vlad the deployer and I've got a question. Since I'm

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.