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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:19:09+00:00 2026-05-27T17:19:09+00:00

Below is code from Store where i have hardcoded data for testing. `Ext.regStore(‘CalendarStore’, {

  • 0

Below is code from Store where i have hardcoded data for testing.

`Ext.regStore('CalendarStore', {
model: 'CalendarModel',
sorters: [{
    property: 'id',
    direction: 'ASC'
}],
proxy: {
    type: 'localstorage',
    id: 'calendar-app-store'
},

data: [
           { id: 1, title: 'January', image: 'jan.iPNG'}
         , { id: 2, title: 'Febuary'}
         , { id: 3, title: 'March'}
         , { id: 4, title: 'April'}
         , { id: 5, title: 'May'}
         , { id: 6, title: 'June'}
         , { id: 7, title: 'July'}
         , { id: 8, title: 'August'}
         , { id: 9, title: 'September'}
         , { id: 10, title: 'October'}
         , { id: 11, title: 'November'}
         , { id: 12, title: 'December'}
      ]

});`

and i am trying to load image i.e ‘jan.PNG’ which i have in store and source changes with month.i am able to display month name from {title} but not from {image}.All i get is a ?mark on the app.

I read that if i get ? mark then the src path is incorrect but if i give

'html : '<img style="height: 700px; width: 500px;" src="jan.iPNG "/>' '

or

src="http://www.mypics/jan.iPNG "/>' '

these display fine.

below is the view

'CalendarApp.views.viewCalendar = new Ext.form.FormPanel({
        id: 'viewCalendar',
        scroll: 'true',
        items:[{
                    xtype: 'textfield',
                    name: 'title'
                   // label: 'title'

               },
               {
                    xtype: 'panel',
                    name :'image',
                    html : '<img style="height: 700px; width:500px;"    src="'+'image'+'">' 
             }],
        dockedItems:[CalendarApp.views.calTopToolbar]
    });'

Also tried variation src=”image”> but the image doesnt display. Help tearing my hair off

  • 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-27T17:19:09+00:00Added an answer on May 27, 2026 at 5:19 pm

    First save the image in custom folder where your files are present.
    and use below code,

             {
             xtype: 'panel',
              icon: 'jan.png', // specify the path of the image
              width:100,        // if u want to specify the width for image
              height:80,       // if u want to specify the height for image
              iconMask: false,
              handler: jan   // if u want to handle the click event
             }
    

    another option is u can define the image in html file by

    <style>
          .NewIcon {
               -webkit-mask-box-image: url('../img/new_icon.png');
             }
    
    
    </style>
    

    and specify this New icon in the js file where you want to use it

          {
           xtype: 'panel',
              iconCls: 'NewIcon ', 
              width:100,        
              height:80,       
              iconMask: false,
              handler: newicon
             }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code to fetch the data from URL, store it in
The below code uses Ext.data.Store to retrieve a JSON with table metadata (for the
i have store file in Blob container as below code i.e: CloudBlob blob =
I have generated a XML file automatically from the below code. if (isset($_POST[song])&& $_POST['song']
I have an requirement of store and retrieve data from isolated storage file.I will
I got below code from http://msdn.microsoft.com/en-us/library/dd584174(office.11).aspx for adding custom property in webpart tool pane.
I am creating a random ID using the below code: from random import *
Below is the code from a plugin for Joomla. It works on it's own
Using the code below (from a console app I've cobbled together), I add seven
Below is my entire code from a User control that contains the YUI Uploader.

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.