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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:06:49+00:00 2026-06-07T23:06:49+00:00

I am just learning python and python web apps so please forgive my lack

  • 0

I am just learning python and python web apps so please forgive my lack of knowledge.

I am writing a web app in python with cherrypy + mako (+ html), and now I am diving into the javascript part of it.
Honestly, the rest was already enough to learn…
So I was wondering about using a python framework to sort of abstract the javascript syntax from me.
(I am mostly a c* dev, python is already different enough to keep me busy)

I don’t (yet) need any fancy javascript, although I have already started using jquery and jquery-ui, but I don’t understand the syntax well enough and it takes me a long time to do anything…
(For example I have not yet found how to get the javascript and mako to interact with each other in a client server way.)

I have learned about pyjamas and other frameworks as such. What would you recommend?

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

    It all depends on what you need the server and client to communicate about. If you give us a specific problem we can give more specific answers.

    Here’s a javascript ajax call. It’s straight javascript (no framework) and what you would refer to as “not fancy”.

    function AddToCart_Clicked(SKU, Quantity)
    {
        // code for IE7+, Firefox, Chrome, Opera, Safari
        if(window.XMLHttpRequest)
            xmlhttp=new XMLHttpRequest();
        else// code for IE6, IE5
            xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    
        xmlhttp.onreadystatechange=function()
        {
            if (xmlhttp.readyState==4 && xmlhttp.status==200)
            {
                document.getElementById('HeaderShoppingCartlink').innerHTML = 'Shopping Cart (' + xmlhttp.responseText + ')';
            }
        }
    
        xmlhttp.open("GET","/ProductNavigation/AddToCartJS?SKU=" + SKU + "&Quantity=" + Quantity, true);
        xmlhttp.send();
        }
    

    This function adds an item to a user’s shopping cart. The function sends a GET request to the Cherrypy function AddToCartJS in the class ProductNavigation with the variables SKU and Quantity. The CherryPy function looks like this.

    @cherrypy.expose
    def AddToCartJS(self, SKU, Quantity):
        CurrentShoppingCart = ShoppingCart()
        CartID = CurrentShoppingCart.AddToCart(SKU, Quantity)
        return CurrentShoppingCart.GetCartCount()
    

    Hope this helps.

    Andrew

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

Sidebar

Related Questions

I just start learning Python + Tornado for my web servers. Every time I
I am learning Python and building my first web app. I have been going
I am just learning python and Qt these days. So please consider that this
I'm developing a Python web app as a learning exercise, and I am looking
I am just beginning to start learning web application development, using python. I am
I have just started learning python version 3 and trying to create a file
So ive just started learning python on WAMP, ive got the results of a
I'm just learning about python. I'm fairly new. I have the following code that
I just started using/learning Python and have some questions. I have a text file
Hi thanks in advance for your help. I'm just getting started learning Python and

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.