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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:28:18+00:00 2026-05-26T15:28:18+00:00

Im pulling some data out of my webdb, turning it into html and wanting

  • 0

Im pulling some data out of my webdb, turning it into html and wanting to bind that to the html property of an extended xtype:

App.views.Homecard = Ext.extend(Ext.TabPanel, {
title: "Home",
iconCls: "home",
defaults: {
    styleHtmlContent: true
},
items: [{
        title: 'TabPanels',
        scroll: 'vertical', 
        html: getPresentations
        },
        {
        title: 'Toolbars',
        scroll: 'vertical', 
        html: '<p>Toolbars can be used as a title bar or as a '
        }],

});

SEE THE ‘html: returnHTML’ — this variable is getting built in a webdb callback.. I would like to call a refresh or an update on this page after I get that string done.. can someone help me with how?

Thanks!
Todd

  • 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-05-26T15:28:19+00:00Added an answer on May 26, 2026 at 3:28 pm

    First get a reference to the item object. You can do this in many ways and it depends on where you get the differentHTML object. Let say you modify your code like this so you can get the item object by id.

    {
    id: 'parent'
    title: "Home",
    iconCls: "home",
    defaults: {
        styleHtmlContent: true
    }
    

    Then use the following code to get to the item that needs to change it’s HTML. Afterwards call doLayout and doComponentLayout() since the different HTML probably takes different space.

    var item = Ext.getCmp('parent').items.items[0];
         item.update(differentHTML);
         item.doLayout();
         Ext.getCmp('parent').doComponentLayout();
    

    Note that this is a sort of hack. Normally what I would do is first have a model defined that will hold the data you are getting from your webdb. Then have a controller that will update the HTML by applying to a template. This way you can get reference to the item much easier and without the need of id. Also you can maintain much cleaner code by separating the formatting code from the actual data.
    You can start learning more about this with the following video: http://www.sencha.com/learn/xtemplates-part-i/.

    Live example http://jsfiddle.net/p5K4q/34/

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

Sidebar

Related Questions

I have some strings that I am pulling out of a database and I
I've been pulling my hair out trying to get some data to come across
I'm trying to stick some data into the app so I can then build
I'm trying to prep some data for a designer. I'm pulling data out of
I am working on an app that will be pulling data from a SQLite
The phrase was used as a warning that the code was pulling some serious
I spent some time trying to figure out why this query isn't pulling the
I'm writing a web application and need to initialize some parameters that I'm pulling
I am modifying a theme and pulling data out of my PODS tables. I
I'm trying to build a simple RDLC report that shows some data, and has

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.