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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:51:01+00:00 2026-06-15T09:51:01+00:00

I am working on sencha from last 20 days or so i have learnt

  • 0

I am working on sencha from last 20 days or so i have learnt a lot , I have got access to device camera and capturing photo using that camera but the problem is that i want to show that captured image in a Div in my page using a button .. Couldn;t got the solution Please help if anyone knows .. Take a look at this ..

                            {
                       xtype:'button',
                       text:'Tap',
                       docked:'top',
                       handler:function(){

                       navigator.camera.getPicture(onSuccess, onFail, { quality: 50,
                                                   destinationType: Camera.DestinationType.FILE_URI });

                       function onSuccess(imageURI) {
                       var image = document.getElementById('myImage');
                       image.src = imageURI;
                       }

                       function onFail(message) {
                       Ext.Msg.alert('Failed because: ' + message);
                       }                           }
                       },
                       {
                       xtype:'container',
                       html:'<div style="border:solid;border-color:red">Hello</div>',
                       id:'picture',
                       },

                       {
                       xtype:'container',
                       html:'<div style="border:solid; border-color=green">Hellow</div>',
                       items:[
         {
               xtype:'button',
               text:'Get',
              }
           ]
             },

what i have to do now ??

  • 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-15T09:51:02+00:00Added an answer on June 15, 2026 at 9:51 am

    You need to do something with the element that has ID ‘myImages’. In the onSuccess function you are setting the src of that element accordingly, but where is the element actually used? You should add it to one of the containers, either in the initial definition or when onSuccess is called. If you want to wait until the button with text ‘Get’ is pressed then either have that button’s handler append the myImages element, or hide/show it.

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

Sidebar

Related Questions

I am working with sencha to build mobile app. I have created one page
I am working with this example to try and learn Sencha Touch. I have
I am working on a mobile application and using sencha touch charts. By default
Button Click of my Android App using Sencha Touch 2 is working fine in
I'm using the Sencha ExtJS Framework in Version 4.05 and i have the following
I am working on sencha touch2.0 app and I want to send data from
I've tried using the download from the sencha website http://www.sencha.com/learn/Tutorial:Taking_Sencha_Touch_Apps_Offline when uploaded to my
I'm currently working on a mobile app (implemented using Sencha Touch 2 and designed
I'm working on a project using Sencha Touch 2.0 and PhoneGap. I need to
I created my app using the sencha create app command. It is working locally

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.