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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:51:22+00:00 2026-06-06T04:51:22+00:00

I am using Tornado and I have the following code: class UserHandler(RequestHandler): def get(self):

  • 0

I am using Tornado and I have the following code:

class UserHandler(RequestHandler):
    def get(self):
        user = self.get_argument("username")
        self.set_cookie("user", user)
        out = tableize(user)
        self.render('chat.html',table=out)

now, chatter.html looks like this:

<iframe src="{{ static_url('mess.html') }}" width="500" height="400"></iframe>

where mess.html is:

<div id="chat">
    {% for x in table %}
        <b> x </b>
    {% end %}
</div>

My question is, how do I pass the ‘table’ argument to mess.html? I can’t figure out how to make it display properly.

  • 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-06T04:51:25+00:00Added an answer on June 6, 2026 at 4:51 am

    Have a look at {% include %} in the Tornado docs, it might do what you are trying to achieve. Instead of using an iframe, directly do {% include "mess.html" %}.

    If you want to keep the independent frame so you can refresh individually, you have to consider the iframe being a separate request. As such, you also have to provide its own RequestHandler where you get your cookie and then generate the table for your user. You then set the iframe src to be the URL you chose for this RequestHandler.

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

Sidebar

Related Questions

I'm using tornado and the TwitterMixin and I use the following basic code: class
Using Rails 3.2.0.rc2 and ruby 1.9.3p0 In app/views/requests/_form.html.erb I have the following code for
I'm using the Tornado framework (Python). I have the sluggable URLs working. But I
I have a basic app set up using Backbone.js and Tornado Web. When I
I'm using Tornado and I want to load some static files in the template.
When running a test using the Tornado AsyncHTTPTestCase I'm getting a stack trace that
I start 2 tornado instances, eg. tornado-8000 and tornado-8001, using nginx upstream. When I
Using Java,I have to fetch multiple sets of values from an XML file to
Using MVVM. I have a DataTemplate which I am using to display an expander
using chrome and ff so far have made a nasty glitch when using scrollTo

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.