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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:14:52+00:00 2026-05-23T21:14:52+00:00

I am using HP webOS 3.0 and the Enyo framework. I have simple question

  • 0

I am using HP webOS 3.0 and the Enyo framework.

I have simple question that how can I show and hide images on click of a button. I have 2 images and I want to show images on click of one button and hide on click of another button.

I have two panes called left pane and right pane on a single view.
I have around 10 items on left pane.

On each of the item click appropriate view is called on right pane.

I am doing it with following code.

   showTaskView: function(){
      this.$.rightPane.selectViewByName("taskView");
   },

Now I want to know how can access the control’s property in the main view containing both left pane and right pane.

For example,
I want to show / hide image in the taskView displayed on the right pane on click of the button that is neither in the left pane or right pane but on the header part of the view that contains both left and right pane.

It is not allowing me to access the control’s image.setSrc method from the main view.
I have tried it with the following code.

editTask: function() {
   this.$.task.image.setSrc("images/image2.jpg");
}

and

editTask: function() {
   this.$.image.setSrc("images/image2.jpg");
}

It gives me the following error:

Cannot read property 'setSrc' of undefined
  • 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-23T21:14:53+00:00Added an answer on May 23, 2026 at 9:14 pm

    With VirtualList, your hash will only reference the currently “selected” row. “selected” being either the row receiving an event or one explicitly selected using prepareRow(). If you want to change every row, you should set a property and call refresh() on the list to cause it to rerender.

    The below should work (I think …)

    setupRow: function(inSender, inIndex) {
                     var row = this.data[inIndex];
                     if (row) {
                        this.$.caption1.setContent("Greet a " + row.task + ":");
                        this.$.star.setSrc("images/grey-star.png");
                        if(this.hideStart) this.$.star.hide();
                        this.$.caption2.setContent(row.assignto);
                        return true;
                     }
                   },
                   buttonClick: function(){
                   this.hideStar = true;
                   this.$.myVirtualList.refresh();
                }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using TortoiseSVN against VisualSVN I delete a source file that I should not have
Using VS2008, C#, .Net 2 and Winforms how can I make a regular Button
I currently have a Palm WebOS application that uses an Ajax.Request to connect to
I have a PhoneGap app that I'm testing on webOS, Android, and iPhone. I'm
I am new at Mojo framework and Palm webOS. I want to just retrieve
I have some simple OpenGL ES code in C++ that I've run on a
I have been thinking about a regular expression that can transform a list like
I have a suite of App Engine tests that are called using nose .
How do I hide my private API keys in/for my webOS - Enyo based
In a webOS app, I have a Mojo.Widget.Slider that I use to set an

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.