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

  • Home
  • SEARCH
  • 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 8548343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:28:25+00:00 2026-06-11T13:28:25+00:00

i am currently writing a python web-application running on google-app-engine using the webapp2 framework.

  • 0

i am currently writing a python web-application running on google-app-engine using the webapp2 framework. Since i am not the web-guy i need an advice how to solve the following problem:

Assumed i have a very simple web order system where you put some articles in the shopping card and proceed to the checkout form… On the checkout form i need to display the total cost of the order. The problem is that there is also a combobox where the customer can choose a shipping method. Each shipping method has its individual transportation costs.

The question is how can i calculate and update the total cost (including the selected shipping method and its transportation costs) without reloading the whole page?
Doing the calculations with client side Javascript seems to be inappropriate solution the me. But who to do the calculation on the server-side without reloading the whole page?

  • 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-11T13:28:26+00:00Added an answer on June 11, 2026 at 1:28 pm

    You can have the browser ask for a partial update using jQuery. Since you are not the web-guy I assume someone else is. He will probably know how to do that. You can then have the server perform the calculations and return either a html fragment or the result in json format.

    You should have a look at the jQuery.load() method.

    For the appengine part it would look something like:

    class CalculateCost(webapp.RequestHandler):
        def get(self):
            shipping_method = self.request.get('shipping_method')
            # calculate your cost here
            self.response.headers['Content-Type'] = 'text/plain'
            self.response.out.write('%d' % cost)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently writing a web crawler (using the python framework scrapy ). Recently I
We're currently writing a web application based on a threaded python web server framework
I am writing a web app on google app engine with python. I am
I'm currently writing a small python app that embeds cherrypy and django using py2app.
I've started messing around with Google App Engine, writing Python. I love Visual Studio
I'm writing a web app using python with web.py, and I want to implement
I am currently writing a non-web program using mostly python and have gotten to
I'm currently writing an app in Python and need to provide localization for it.
I am currently writing an app in python that needs to generate large amount
I am currently writing a small application with Python (3.1), and like a good

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.