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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:44:12+00:00 2026-06-16T06:44:12+00:00

i want to create an application in google app engine using python. I have

  • 0

i want to create an application in google app engine using python. I have to send a list of json string to python script.I have done the following code but ain’t worked.

$.post("/javascriptdata",{v:s},function(data,status) {});

In python script i have a class named javascriptdata to where data has to be send to

import wsgiref.handlers
import json
import sys
import cgi
from google.appengine.ext import webapp
from google.appengine.ext.webapp import Request
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext.webapp import template

class mainh(webapp.RequestHandler):
    def get(self):
        self.response.out.write(template.render("paint.html",{}))

class javascriptdata(webapp.RequestHandler):
    def post(self):
        self.response.headers['content-Type'] = 'html'
        data1=self.request.get('v')
        self.response.out.write("""<html><body>""")
        self.response.out.write(data1)
        self.response.out.write("""</body></html>""")


def main():
    app = webapp.WSGIApplication([
        ('/',mainh),("/save",javascriptdata)], debug=True)
    wsgiref.handlers.CGIHandler().run(app)


if __name__ == "__main__":
    main()

The javascriptdata is associated with the url “/save”. I have created a submit button named “save” that would redirect to /save but iam not getting any output. I know it may be a silly mistake but Iam struggling to sort it out. Please suggest me how to post and read the data for this code.

  • 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-16T06:44:13+00:00Added an answer on June 16, 2026 at 6:44 am

    This seems suspicious:

    $.post("/javascriptdata",{v:s},function(data,status) {});

    since you don’t have a /javascriptdata URL mapped in the python code. Perhaps you meant

    $.post('/save', ...?

    Alternatively, you could change the WSGIApplication init to be:

    ...("/javascriptdata",javascriptdata)...

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

Sidebar

Related Questions

I have a 'Message' class in a Google App Engine application and I want
I am building a web application on google app engine using python and jinja2.
I have a Python App Engine application where a user can log in using
I am building an application on google app engine with python and I have
I'm actually developing an application using Google Drive SDK. I don't want to create
Hello i'm planning to create an application on google app engine, the application will
I have created a form in my Google App Engine application for users to
I have a Google App Engine Java application, which uses Appengine datastore for its
I am new to python and google app. I have an already created application
I created a google web application from which I want to send emails. I've

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.